/* ==========================================================================
   Vetri AI Interview Coach — Design System
   ========================================================================== */

:root {
  --primary: #2563EB;
  --secondary: #4F46E5;
  --accent: #06B6D4;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --transition: all 0.25s ease;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg: #0F172A;
  --card-bg: #1E293B;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] body { background: var(--bg); color: var(--text-main); }
[data-theme="dark"] .navbar-glass { background: rgba(15, 23, 42, 0.85); }
[data-theme="dark"] .nav-link-custom { color: var(--text-main) !important; }
[data-theme="dark"] .card-modern,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .chat-window,
[data-theme="dark"] .floating-chat-window,
[data-theme="dark"] .auth-card { background: var(--card-bg); color: var(--text-main); }
[data-theme="dark"] .chat-bubble.ai { background: #2A3B5C; color: var(--text-main); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: #0F172A; color: var(--text-main); border-color: #334155; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background: #0F172A; color: var(--text-main); }
[data-theme="dark"] .table { color: var(--text-main); }
[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
[data-theme="dark"] .btn-light { background: #334155; color: var(--text-main); border: none; }
[data-theme="dark"] .bg-white { background: var(--card-bg) !important; }
[data-theme="dark"] .dropdown-menu { background: var(--card-bg); }
[data-theme="dark"] .dropdown-item { color: var(--text-main); }
[data-theme="dark"] .dropdown-item:hover { background: #334155; }

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
}

a { text-decoration: none; }

/* ---------- Utility classes ---------- */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.section-padding { padding: var(--spacing-lg) 0; }
.rounded-xl { border-radius: var(--border-radius-lg) !important; }

/* ---------- Navbar ---------- */
.navbar-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1030;
}
.navbar-glass.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand-logo {
  font-weight: 700;
  font-size: 1.4rem;
}
.navbar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  animation: brandGradientShift 6s ease infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}
.navbar-brand-icon-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
@keyframes brandGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar-brand-title {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.navbar-brand-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}
.nav-link-custom {
  font-weight: 500;
  color: var(--text-main) !important;
  position: relative;
  margin: 0 6px;
}
.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link-custom.active::after,
.nav-link-custom:hover::after { width: 70%; left: 15%; }
.nav-link-custom.active,
.nav-link-custom:hover { color: var(--primary) !important; }

/* ---------- Buttons ---------- */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-outline-gradient {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
}
.btn-outline-gradient:hover {
  background: var(--primary);
  color: #fff;
}
.btn-rounded { border-radius: 50px !important; }

/* ---------- Cards ---------- */
.card-modern {
  background: var(--card-bg);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  transition: var(--transition);
}
.card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
/* Highlighted/featured variant — use instead of Bootstrap's bg-gradient-primary
   utility on a .card-modern element, since both share the same specificity and
   .card-modern (loaded after Bootstrap) would otherwise silently win and hide
   the gradient + white text. */
.card-highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
}
.card-highlight p, .card-highlight small,
.card-highlight h1, .card-highlight h2, .card-highlight h3,
.card-highlight h4, .card-highlight h5, .card-highlight h6 {
  color: #fff !important;
}
.card-highlight .icon-circle {
  background: #fff !important;
  color: var(--primary) !important;
}
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-md);
}
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.5rem;
}

/* ---------- Forms ---------- */
.form-floating-modern .form-control,
.form-floating-modern .form-select {
  border-radius: var(--border-radius-sm);
  border: 1.5px solid #E2E8F0;
  padding: 12px 16px;
  transition: var(--transition);
}
.form-floating-modern .form-control:focus,
.form-floating-modern .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.auth-card {
  max-width: 460px;
  margin: 60px auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Sidebar (Dashboard) — STICKY (stops before footer) ---------- */
.sidebar {
  width: 260px;
  position: sticky;
  top: 76px;
  align-self: flex-start;
  height: calc(100vh - 76px);
  overflow-y: auto;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) var(--spacing-sm);
  transition: var(--transition);
  z-index: 1020;
}
.sidebar .nav-link {
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  padding: 10px 16px;
  margin-bottom: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.sidebar.collapsed { margin-left: -260px; }

.dashboard-layout { display: flex; }
.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 24px;
}

footer { position: relative; z-index: 200; }

/* ---------- Mobile Sidebar ---------- */

@media (max-width: 991.98px) {

    .sidebar {
        left: -260px;
        margin-left: 0;
        top: 76px;
        height: calc(100vh - 76px);

        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

}

/* ---------- Timeline (How It Works) ---------- */
.timeline-step {
  text-align: center;
  padding: var(--spacing-sm);
}
.timeline-step .icon-circle { margin: 0 auto 12px; }
.timeline-arrow { color: var(--primary); font-size: 1.5rem; }

/* ---------- Mock Interview Chat ---------- */
.chat-window {
  height: 60vh;
  min-height: 420px;
  overflow-y: auto;
  padding: var(--spacing-sm);
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}
.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  margin-bottom: 14px;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}
.chat-bubble.ai {
  background: #EEF2FF;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-dots span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-right: 3px;
  animation: blink 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.feedback-card { border-left: 4px solid var(--primary); }
.feedback-section {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--border-radius-sm);
}
.feedback-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feedback-text { color: var(--text-main); font-size: 0.92rem; }
.feedback-text p:last-child { margin-bottom: 0 !important; }
.feedback-text ul { margin-bottom: 6px; }
.chat-bubble p:last-child,
.chat-bubble ul:last-child { margin-bottom: 0 !important; }
.confidence-meter { height: 8px; border-radius: 4px; background: #E2E8F0; overflow: hidden; }
.confidence-meter-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--accent)); }

/* ---------- Floating Chat Button ---------- */
.floating-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: none;
  z-index: 1040;
  transition: var(--transition);
}
.floating-chat-btn:hover { transform: scale(1.08); }

.floating-chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-height: 460px;
  background: #fff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1040;
}
.floating-chat-window.open { display: flex; }
.floating-chat-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
}
.floating-chat-body { flex: 1; overflow-y: auto; padding: 12px; }
.floating-chat-input { border-top: 1px solid #E2E8F0; padding: 10px; display: flex; gap: 8px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 1040;
}
.back-to-top.show { display: flex; }

/* ---------- Progress / badges ---------- */
.badge-difficulty-beginner { background: var(--success); }
.badge-difficulty-intermediate { background: var(--warning); }
.badge-difficulty-advanced { background: var(--danger); }

/* ---------- Toasts ---------- */
.toast-container-custom {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1080;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Hero: eyebrow badge ---------- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 7px 16px;
  border-radius: 50px;
}
[data-theme="dark"] .hero-eyebrow { background: rgba(37, 99, 235, 0.18); }
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseDot 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-stats h3 { font-size: 1.9rem; }

/* ---------- Hero: animated gradient blobs ---------- */
.blob-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.32; }
.blob-1 { width: 420px; height: 420px; background: var(--primary); top: -140px; left: -110px; animation: blobFloat 15s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: var(--accent); bottom: -160px; right: -90px; animation: blobFloat 19s ease-in-out infinite reverse; }
.blob-3 { width: 260px; height: 260px; background: var(--secondary); top: 42%; left: 58%; animation: blobFloat 17s ease-in-out infinite; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -26px) scale(1.12); }
}
.hero-section .container { z-index: 1; }

/* ---------- Hero: mock interview chat card ---------- */
.mock-chat-card { max-width: 440px; margin-left: auto; position: relative; }
.mock-chat-body {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.mock-chat-body .chat-bubble { margin-bottom: 0; max-width: 90%; }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 5px;
  animation: blink 1.4s infinite;
}

/* ---------- CTA glow ---------- */
.cta-glow { position: relative; overflow: hidden; }
.cta-glow::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 55%);
  animation: blobFloat 12s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .blob, .hero-floating-card, .eyebrow-dot, .live-dot, .cta-glow::after { animation: none !important; }
}

/* ---------- Interview Report ---------- */
.report-brand-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  flex-shrink: 0;
}
.score-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(#fff calc(var(--pct, 0) * 1%), rgba(255,255,255,0.25) 0);
  flex-shrink: 0;
}
.score-ring-inner {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--primary-dark, #1e40af);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.metric-mini-card { text-align: center; padding: 16px 10px; }
.metric-mini-card .icon-circle { width: 38px; height: 38px; font-size: 1rem; }
.metric-mini-card .progress { height: 5px; margin-top: 6px; }
.readiness-gauge-wrap { text-align: center; }
.area-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.area-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 0.92rem; }
.area-list.good li i { color: #16A34A; }
.area-list.weak li i { color: #DC2626; }
.area-list.improve li { align-items: center; }
.area-list.improve li i { color: var(--primary); font-size: 0.5rem; margin-top: 2px; }
.qna-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
}
.result-icon-correct { color: #16A34A; }
.result-icon-partial { color: #F59E0B; }
.result-icon-wrong { color: #DC2626; }
.trainer-quote {
  border-left: 4px solid var(--primary);
  background: rgba(37, 99, 235, 0.05);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-style: italic;
}
.next-steps-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.next-steps-list i { color: #16A34A; }
.report-footer-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 14px;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Dashboard: gradient banner with readiness donut ---------- */
.dash-welcome-banner-grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: var(--border-radius-lg, 20px);
  padding: 28px 30px;
}
.readiness-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--pct, 0) * 1%), rgba(255,255,255,0.28) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.readiness-donut span {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* ---------- Dashboard welcome banner ---------- */
.dash-welcome-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--border-radius-lg, 20px);
  padding: 28px 30px;
}
[data-theme="dark"] .dash-welcome-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- Hero mascot ---------- */
.hero-mascot {
  display: block;
  width: 230px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 14px 22px rgba(37, 99, 235, 0.18));
}
.mascot-wave {
  transform-origin: 224px 190px;
  animation: mascotWave 2.4s ease-in-out infinite;
}
@keyframes mascotWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-18deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
}
.hero-float-chip {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: floatY 4s ease-in-out infinite;
  z-index: 3;
}
.hero-float-chip-chat { animation-delay: 1s; }
@media (max-width: 991px) {
  .hero-mascot, .hero-float-chip { display: none; }
}

/* Hero mock-chat card: listening waveform + instant-feedback footer strip */
.mock-chat-listening {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color, #E2E8F0);
}
.listening-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.listening-wave span {
  display: inline-block;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: listeningBar 1.2s ease-in-out infinite;
}
.listening-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.listening-wave span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.listening-wave span:nth-child(3) { height: 16px; animation-delay: 0.3s; }
.listening-wave span:nth-child(4) { height: 10px; animation-delay: 0.45s; }
.listening-wave span:nth-child(5) { height: 5px; animation-delay: 0.6s; }
@keyframes listeningBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.mock-chat-footer {
  margin-top: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
}

/* Built for Your Course tech chips */
.tech-chip {
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  transition: var(--transition);
}
.tech-chip:hover { background: rgba(37, 99, 235, 0.06); transform: translateY(-3px); }

/* CTA readiness score card */
.cta-readiness-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 190px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Footer ---------- */
.footer-modern { position: relative; overflow: hidden; }
.footer-heading { position: relative; display: inline-block; padding-bottom: 8px; }
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover { opacity: 1; padding-left: 4px; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-social:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .sidebar { position: fixed; top: 76px; left: 0; z-index: 1020; margin-left: -260px; }
  .sidebar.show { margin-left: 0; }
  .dashboard-main { width: 100%; }
}
@media (max-width: 576px) {
  .hero-section { padding: 70px 0 40px; text-align: center; }
  .floating-chat-window { width: 92vw; right: 4vw; }
  .mock-chat-card { margin: 0 auto; }
  .hero-stats { justify-content: center; }
}

/* ==============================
   TERMS & CONDITIONS
   BLUE THEME
================================ */

.terms-section {
    margin-top: 110px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.terms-container {
    max-width: 1000px;
    margin: auto;
}


/* Main Card */

.legal-page-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(37, 99, 235, 0.12);

    border: 1px solid #e5efff;
}


/* Header */

.legal-page-header {
    padding: 22px 30px;
    text-align: center;

    background: linear-gradient(
        135deg,
        #164e9c 0%,
        #2563eb 50%,
        #3b82f6 100%
    );
}

.legal-page-header h1 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;

    letter-spacing: -0.3px;
}


/* Body */

.legal-page-body {
    padding: 42px 40px 38px;

    background: #ffffff;
}


/* List */

.legal-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.legal-list li {
    position: relative;

    padding-left: 25px;
    margin-bottom: 20px;

    color: #334155;

    font-size: 17px;
    line-height: 1.75;

    font-weight: 400;
}


/* Blue Bullet */

.legal-list li::before {
    content: "•";

    position: absolute;
    left: 0;
    top: 0;

    color: #2563eb;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
}


/* Strong Text */

.legal-list li strong {
    color: #1e40af;
    font-weight: 700;
}


/* Email Link */

.legal-list li a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}

.legal-list li a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* Bottom Links */

.legal-bottom-links {
    margin-top: 25px;
}

.legal-bottom-links a {
    display: inline-block;

    color: #2563eb;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    margin: 0 18px;

    transition: all 0.2s ease;
}

.legal-bottom-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


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

@media (max-width: 768px) {

    .terms-section {
        margin-top: 90px;
        padding: 0 15px;
    }

    .legal-page-header {
        padding: 20px;
    }

    .legal-page-header h1 {
        font-size: 25px;
    }

    .legal-page-body {
        padding: 30px 25px;
    }

    .legal-list li {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 17px;
    }

    .legal-bottom-links a {
        margin: 5px 10px;
    }
}


@media (max-width: 480px) {

    .terms-section {
        margin-top: 80px;
    }

    .legal-page-card {
        border-radius: 14px;
    }

    .legal-page-header h1 {
        font-size: 22px;
    }

    .legal-page-body {
        padding: 25px 20px;
    }

    .legal-list li {
        padding-left: 21px;
        font-size: 14px;
    }

    .legal-list li::before {
        font-size: 21px;
    }

    .legal-bottom-links a {
        display: block;
        margin: 10px 0;
    }
}

/* ==============================
   PRIVACY POLICY
================================ */

.legal-intro {
    margin: 0 0 12px;

    color: #334155;

    font-size: 17px;
    line-height: 1.75;
}

.legal-intro strong {
    color: #1e40af;
}


.legal-updated {
    margin-bottom: 32px;

    color: #64748b;

    font-size: 14px;
}

.legal-updated strong {
    color: #475569;
}


/* Privacy Sections */

.privacy-section {
    margin-top: 30px;
}

.privacy-section h5 {
    margin-bottom: 12px;

    color: #1e40af;

    font-size: 20px;
    font-weight: 700;
}

.privacy-section p {
    margin-bottom: 12px;

    color: #475569;

    font-size: 16px;
    line-height: 1.75;
}


/* Privacy Lists */

.privacy-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.privacy-list li {
    position: relative;

    padding-left: 25px;
    margin-bottom: 12px;

    color: #475569;

    font-size: 16px;
    line-height: 1.7;
}

.privacy-list li::before {
    content: "•";

    position: absolute;
    left: 0;
    top: 0;

    color: #2563eb;

    font-size: 23px;
    font-weight: 700;
}

.privacy-list li strong {
    color: #1e40af;
}


/* Privacy Links */

.privacy-section a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}

.privacy-section a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* Last Section */

.privacy-section.last-section {
    margin-bottom: 0;
}


/* Mobile */

@media (max-width: 768px) {

    .legal-intro {
        font-size: 15px;
        line-height: 1.65;
    }

    .privacy-section {
        margin-top: 25px;
    }

    .privacy-section h5 {
        font-size: 18px;
    }

    .privacy-section p,
    .privacy-list li {
        font-size: 15px;
        line-height: 1.65;
    }

    .legal-updated {
        margin-bottom: 25px;
    }
}


@media (max-width: 480px) {

    .legal-intro {
        font-size: 14px;
    }

    .privacy-section h5 {
        font-size: 17px;
    }

    .privacy-section p,
    .privacy-list li {
        font-size: 14px;
    }

    .privacy-list li {
        padding-left: 21px;
    }
}


.footer-company-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-company-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =========================================
   MODERN VETRI AI COACH NAVBAR
========================================= */

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1050;

    padding: 12px 0;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(37, 99, 235, 0.08);

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================
   BRAND
========================================= */

.modern-brand {
    gap: 11px;
    text-decoration: none;

    min-width: 225px;
}

.brand-logo-wrapper {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #eff6ff,
        #dbeafe
    );

    box-shadow:
        0 5px 15px rgba(37, 99, 235, 0.12);
}

.modern-logo {
    width: 38px;
    height: 38px;

    object-fit: contain;
}


.brand-content {
    line-height: 1;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;

    color: #172554;

    letter-spacing: -0.3px;
}

.brand-title span {
    background: linear-gradient(
        135deg,
        #2563eb,
        #6366f1
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.brand-tagline {
    margin-top: 5px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1.4px;

    color: #64748b;

    text-transform: uppercase;
}

.brand-tagline span {
    color: #3b82f6;
    margin: 0 3px;
}


/* =========================================
   NAVIGATION
========================================= */

.modern-nav {
    gap: 5px;
}

.modern-nav-link {
    position: relative;

    padding: 9px 15px !important;

    border-radius: 10px;

    color: #475569 !important;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.modern-nav-link:hover {
    color: #2563eb !important;

    background: #eff6ff;
}

.modern-nav-link.active {
    color: #2563eb !important;

    background: #eff6ff;
}


/* Active small indicator */

.modern-nav-link.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #2563eb;

    transform: translateX(-50%);
}


/* =========================================
   DASHBOARD
========================================= */

.dashboard-nav-link {
    display: flex !important;
    align-items: center;

    gap: 7px;

    margin-left: 3px;

    padding: 9px 14px !important;

    border-radius: 10px;

    color: #2563eb !important;

    background: #eff6ff;

    font-size: 14px;
    font-weight: 700;

    transition: all 0.25s ease;
}

.dashboard-nav-link:hover {
    color: #ffffff !important;

    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    transform: translateY(-1px);
}

.dashboard-nav-link i {
    font-size: 14px;
}


/* =========================================
   THEME BUTTON
========================================= */

.theme-toggle {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #2563eb;

    background: #eff6ff;

    text-decoration: none;

    transition: all 0.25s ease;
}

.theme-toggle:hover {
    color: #ffffff;

    background: #2563eb;

    transform: rotate(8deg);
}


/* =========================================
   PROFILE
========================================= */

.profile-trigger {
    padding: 4px 7px 4px 5px;

    border-radius: 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    transition: all 0.25s ease;
}

.profile-trigger:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.profile-image,
.profile-icon {
    width: 36px;
    height: 36px;

    border-radius: 10px;
}

.profile-image {
    object-fit: cover;
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #dbeafe;

    font-size: 18px;
}

.profile-name {
    margin-left: 7px;

    max-width: 100px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #334155;

    font-size: 13px;
    font-weight: 700;
}

.profile-arrow {
    margin-left: 6px;

    color: #64748b;

    font-size: 10px;
}


/* =========================================
   DROPDOWN
========================================= */

.modern-dropdown {
    min-width: 235px;

    margin-top: 10px !important;

    padding: 8px;

    border: 1px solid #e2e8f0;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.12);
}

.dropdown-user-info {
    padding: 10px 12px;
}

.dropdown-user-name {
    color: #0f172a;

    font-size: 14px;
    font-weight: 700;
}

.dropdown-user-email {
    margin-top: 3px;

    color: #94a3b8;

    font-size: 11px;

    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-dropdown .dropdown-item {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 10px;

    border-radius: 9px;

    color: #475569;

    font-size: 13px;
    font-weight: 600;
}

.modern-dropdown .dropdown-item:hover {
    color: #2563eb;

    background: #eff6ff;
}

.dropdown-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #2563eb;

    background: #eff6ff;
}

.logout-item {
    color: #dc2626 !important;
}

.logout-item:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

.logout-item .dropdown-icon {
    color: #dc2626;
    background: #fef2f2;
}


/* =========================================
   LOGIN
========================================= */

.login-btn {
    padding: 9px 15px;

    color: #2563eb;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    background: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.25s ease;
}

.login-btn:hover {
    color: #1d4ed8;

    background: #eff6ff;

    border-color: #93c5fd;
}


/* =========================================
   REGISTER / GET STARTED
========================================= */

.register-btn {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 10px 17px;

    color: #ffffff;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.20);

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.25s ease;
}

.register-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(37, 99, 235, 0.28);
}

.register-btn i {
    transition: transform 0.2s ease;
}

.register-btn:hover i {
    transform: translateX(3px);
}


/* =========================================
   MOBILE TOGGLER
========================================= */

.modern-toggler {
    width: 42px;
    height: 42px;

    padding: 8px;

    display: flex;

    flex-direction: column;
    justify-content: center;

    gap: 5px;

    border-radius: 10px;

    background: #eff6ff;

    border: 1px solid #dbeafe !important;
}

.modern-toggler span {
    display: block;

    width: 20px;
    height: 2px;

    margin: auto;

    border-radius: 5px;

    background: #2563eb;
}


/* =========================================
   NAVBAR SPACE
========================================= */

.navbar-space {
    height: 78px;
}


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

@media (max-width: 991px) {

    .modern-navbar {
        padding: 10px 0;
    }

    .modern-brand {
        min-width: auto;
    }

    .navbar-collapse {
        margin-top: 15px;

        padding: 15px;

        border-radius: 16px;

        background: rgba(255, 255, 255, 0.97);

        box-shadow:
            0 15px 35px rgba(15, 23, 42, 0.10);
    }

    .modern-nav {
        width: 100%;

        gap: 4px;

        margin-bottom: 12px;
    }

    .modern-nav-link,
    .dashboard-nav-link {
        width: 100%;

        margin-left: 0;

        padding: 11px 13px !important;
    }

    .modern-nav-link.active::after {
        display: none;
    }

    .navbar-actions {
        justify-content: flex-start;

        padding-top: 12px;

        border-top: 1px solid #e2e8f0;
    }

}


@media (max-width: 576px) {

    .brand-title {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .brand-logo-wrapper {
        width: 42px;
        height: 42px;
    }

    .modern-logo {
        width: 34px;
        height: 34px;
    }

    .profile-name {
        display: none;
    }

    .profile-arrow {
        margin-left: 5px;
    }

    .navbar-space {
        height: 70px;
    }

}

.modern-navbar {
    background: #ffffff;

    border-bottom: 1px solid #eef2f7;

    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}



.dashboard-main {
    font-size: 15px;
}

.dashboard-main p {
    font-size: 15px;
    line-height: 1.6;
}

.dashboard-main .text-muted {
    font-size: 14.5px;
}

.dashboard-main h5 {
    font-size: 19px;
}

.dashboard-main h6 {
    font-size: 16px;
}

.dashboard-main .small {
    font-size: 13.5px;
}

.dashboard-main .btn {
    font-size: 14px;
}

.dashboard-main .badge {
    font-size: 12.5px;
}

/* =========================================
   REPORTS PAGE
========================================= */

.reports-hero {
    position: relative;
    overflow: hidden;
}

.report-hero-text {
    font-size: 14px;
    line-height: 1.6;
}

.report-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

/* Search */

.report-search {
    border-radius: 16px;
}

.report-search .form-control {
    font-size: 15px;
    padding: 11px 8px;
}

.report-search .form-control:focus {
    box-shadow: none;
}

/* Report Card */

.report-card {
    padding: 22px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

/* Role */

.report-role {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.report-role-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.report-role h5 {
    font-size: 17px;
    line-height: 1.35;
    word-break: break-word;
}

.report-date {
    font-size: 13px;
}

/* Score */

.report-score {
    min-width: 65px;
    text-align: right;
    white-space: nowrap;
}

.report-score strong {
    font-size: 24px;
    font-weight: 800;
    color: #2563eb;
}

.report-score span {
    font-size: 12px;
    color: #94a3b8;
}

/* Interview Type */

.report-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
}

/* Readiness */

.report-readiness {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.readiness-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* Empty State */

.report-empty {
    padding: 70px 20px !important;
    border-radius: 20px;
}

.empty-report-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 22px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.report-empty h5 {
    font-size: 19px;
}

.report-empty p {
    font-size: 15px;
}


/* Mobile */

@media (max-width: 576px) {

    .report-card {
        padding: 18px;
    }

    .report-header-icon {
        width: 50px;
        height: 50px;
        font-size: 21px;
        border-radius: 15px;
    }

    .report-role h5 {
        font-size: 16px;
    }

    .report-score strong {
        font-size: 21px;
    }

    .report-date {
        font-size: 12.5px;
    }

}

/* =========================================
   LEADERBOARD
========================================= */

.leaderboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.18);
}

.leaderboard-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.leaderboard-hero h3 {
    font-size: 28px;
}

.leaderboard-hero p {
    font-size: 14px;
    opacity: 0.8;
}

.my-rank-card {
    min-width: 125px;
    padding: 13px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.18);
}

.my-rank-card span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.my-rank-card strong {
    display: block;
    font-size: 25px;
    margin-top: 2px;
}


/* =========================================
   TOP THREE
========================================= */

.top-three-section {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: end;
    gap: 18px;
}

.top-player {
    position: relative;
    text-align: center;
    padding: 25px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    transition: all 0.3s ease;
}

.top-player:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(37,99,235,0.12);
}

.first-player {
    padding-top: 34px;
    padding-bottom: 32px;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
    border: 2px solid rgba(37,99,235,0.15);
    box-shadow: 0 15px 40px rgba(37,99,235,0.12);
}

.rank-medal {
    font-size: 38px;
    margin-bottom: 5px;
}

.crown-icon {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.player-avatar {
    width: 58px;
    height: 58px;
    margin: 5px auto 12px;
    border-radius: 50%;
    background: rgba(37,99,235,0.09);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.first-player .player-avatar {
    width: 66px;
    height: 66px;
    font-size: 28px;
    background: #2563eb;
    color: #fff;
}

.player-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 9px;
}

.player-score {
    color: #2563eb;
    font-size: 25px;
    font-weight: 800;
}

.player-score span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.top-player small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

.you-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================
   TABLE
========================================= */

.leaderboard-table-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.leaderboard-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #eef2f7;
}

.leaderboard-table-header h5 {
    font-size: 18px;
}

.leaderboard-table-header p {
    font-size: 13px;
}

.ranking-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.leaderboard-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    padding: 14px 22px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
}

.leaderboard-table tbody td {
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: #f8fbff;
}


/* My Row */

.my-ranking-row {
    background: rgba(37,99,235,0.06) !important;
    box-shadow: inset 4px 0 0 #2563eb;
}

.rank-number {
    font-size: 19px;
    font-weight: 700;
    min-width: 45px;
}

.rank-number span {
    font-size: 14px;
    color: #64748b;
}


/* Candidate */

.candidate-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.candidate-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37,99,235,0.09);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.candidate-name {
    font-weight: 700;
    font-size: 14px;
}

.you-table-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
}


/* Interview Count */

.interview-count {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}


/* Score */

.score-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 145px;
}

.score-progress {
    width: 90px;
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.score-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.score-value {
    font-size: 14px;
    font-weight: 800;
    color: #2563eb;
}


/* Empty */

.leaderboard-empty {
    text-align: center;
    padding: 65px 20px;
}

.empty-trophy {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    border-radius: 22px;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .leaderboard-hero {
        padding: 22px;
    }

    .leaderboard-hero-content {
        align-items: flex-start;
    }

    .leaderboard-hero h3 {
        font-size: 23px;
    }

    .my-rank-card {
        min-width: 100px;
    }

    .top-three-section {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .first-player {
        order: -1;
    }

    .top-player {
        padding: 22px;
    }

    .leaderboard-table-header {
        padding: 18px;
    }

    .leaderboard-table tbody td,
    .leaderboard-table thead th {
        padding: 13px 15px;
    }

    .score-progress {
        display: none;
    }

}

/* =========================================
   MODERN DASHBOARD
========================================= */

.dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 34px;
    background:
        radial-gradient(circle at 85% 20%, rgba(99,102,241,.16), transparent 30%),
        radial-gradient(circle at 60% 100%, rgba(37,99,235,.10), transparent 35%),
        #ffffff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 15px 45px rgba(15,23,42,.06);
}

.dashboard-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 50px;
    background: rgba(37,99,235,.08);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.dashboard-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -1.2px;
    margin: 15px 0 8px;
}

.dashboard-title span {
    background: linear-gradient(90deg,#2563eb,#7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-subtitle {
    max-width: 650px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

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


/* READINESS */

.readiness-card {
    min-width: 190px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(248,250,252,.9);
    border: 1px solid rgba(15,23,42,.06);
    text-align: center;
}

.readiness-ring {
    --size: 125px;

    width: var(--size);
    height: var(--size);
    margin: auto;
    border-radius: 50%;

    background:
        conic-gradient(
            #2563eb calc(var(--score) * 1%),
            #e2e8f0 0
        );

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.readiness-ring::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: white;
    border-radius: 50%;
}

.readiness-ring-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.readiness-ring-inner strong {
    font-size: 26px;
    font-weight: 800;
}

.readiness-ring-inner span {
    color: #64748b;
    font-size: 11px;
}

.readiness-info {
    margin-top: 12px;
}

.readiness-info small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.readiness-info h6 {
    margin: 3px 0 0;
}


/* STAT CARDS */

.dashboard-stat-card {
    height: 100%;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all .25s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15,23,42,.09);
}

.stat-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.stat-blue {
    background: rgba(37,99,235,.10);
    color: #2563eb;
}

.stat-purple {
    background: rgba(124,58,237,.10);
    color: #7c3aed;
}

.stat-orange {
    background: rgba(245,158,11,.12);
    color: #d97706;
}

.stat-green {
    background: rgba(16,185,129,.10);
    color: #059669;
}

.stat-content span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 3px;
}

.stat-content h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
}

.stat-content small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}


/* PANELS */

.dashboard-panel {
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(15,23,42,.035);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.panel-header h5 {
    font-weight: 800;
    margin: 3px 0 0;
}

.panel-eyebrow {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.2px;
}

.panel-link {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #2563eb;
}

.ai-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(124,58,237,.10);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* INTERVIEW LIST */

.interview-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.interview-row:last-child {
    border-bottom: 0;
}

.interview-role-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(37,99,235,.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interview-info {
    flex: 1;
}

.interview-info h6 {
    font-weight: 700;
    margin: 0 0 4px;
}

.interview-info span {
    font-size: 10px;
    color: #94a3b8;
}

.interview-score {
    text-align: right;
}

.interview-score strong {
    display: block;
    font-size: 17px;
}

.interview-score span {
    font-size: 9px;
    color: #94a3b8;
}

.view-report-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f8fafc;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .2s;
}

.view-report-btn:hover {
    background: #2563eb;
    color: #fff;
}


/* INSIGHTS */

.insight-block {
    padding: 16px;
    border-radius: 17px;
    margin-bottom: 13px;
}

.strength-block {
    background: rgba(16,185,129,.055);
}

.improvement-block {
    background: rgba(239,68,68,.045);
}

.insight-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.insight-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-icon.success {
    background: rgba(16,185,129,.12);
    color: #059669;
}

.insight-icon.danger {
    background: rgba(239,68,68,.10);
    color: #dc2626;
}

.insight-title small {
    display: block;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.insight-title strong {
    display: block;
    font-size: 12px;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    padding: 5px 0;
}

.strength-block .insight-list i {
    color: #10b981;
}

.improvement-block .insight-list i {
    color: #ef4444;
}

.insight-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}


/* PROFILE */

.completion-value {
    font-size: 20px;
    color: #2563eb;
}

.completion-bar {
    height: 9px;
    background: #eef2f7;
    border-radius: 50px;
    overflow: hidden;
}

.completion-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
}

.profile-complete {
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(16,185,129,.08);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
}


/* TOPICS */

.topic-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.topic-row:last-child {
    border-bottom: 0;
}

.topic-number {
    font-size: 12px;
    font-weight: 800;
    color: #cbd5e1;
}

.topic-info {
    flex: 1;
}

.topic-info strong {
    display: block;
    font-size: 12px;
}

.topic-info small {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    margin-top: 2px;
}

.topic-badge {
    padding: 5px 9px;
    border-radius: 50px;
    color: #fff;
    font-size: 9px;
}


/* EMPTY STATE */

.empty-dashboard {
    text-align: center;
    padding: 35px 20px;
}

.empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 21px;
}

.empty-dashboard h6 {
    font-weight: 700;
}

.empty-dashboard p {
    color: #94a3b8;
    font-size: 11px;
    max-width: 400px;
    margin: 0 auto 15px;
}

.empty-insight {
    text-align: center;
    padding: 30px 15px;
}

.empty-insight > i {
    font-size: 34px;
    color: #c4b5fd;
    display: block;
    margin-bottom: 12px;
}

.empty-insight p {
    color: #94a3b8;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 767px) {

    .dashboard-hero {
        padding: 24px;
        border-radius: 22px;
    }

    .dashboard-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .readiness-card {
        width: 100%;
    }

    .dashboard-title {
        font-size: 27px;
    }

    .dashboard-stat-card {
        padding: 17px;
    }

    .dashboard-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .interview-row {
        flex-wrap: wrap;
    }

    .interview-info {
        min-width: calc(100% - 60px);
    }

    .interview-score {
        margin-left: 56px;
    }

}

/* =========================================================
   GLOBAL TYPOGRAPHY - READABILITY IMPROVEMENT
   ========================================================= */

/* Base text */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Main dashboard content */
.dashboard-main {
    font-size: 0.95rem;
}

/* Page headings */
.dashboard-main h3 {
    font-size: 1.55rem;
}

.dashboard-main h5 {
    font-size: 1.15rem;
}

.dashboard-main h6 {
    font-size: 1rem;
}

/* Card titles */
.card-modern h5 {
    font-size: 1.15rem;
}

.card-modern h6 {
    font-size: 1rem;
}

/* Card paragraph text */
.card-modern p {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Text that currently uses Bootstrap .small */
.card-modern .small {
    font-size: 0.9rem !important;
    line-height: 1.5;
}

/* Muted text */
.text-muted {
    font-size: 0.92rem;
}

/* Keep headings from becoming too small when combined with text-muted */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

/* Form labels */
.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
}

/* Form inputs */
.form-control,
.form-select {
    font-size: 0.95rem;
}

/* Form placeholders */
.form-control::placeholder {
    font-size: 0.92rem;
}

/* Tables */
.table {
    font-size: 0.92rem;
}

.table th {
    font-size: 0.9rem;
    font-weight: 600;
}

.table td {
    font-size: 0.92rem;
}

/* Table small text */
.table .small {
    font-size: 0.88rem !important;
}

/* Badges */
.badge {
    font-size: 0.78rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    font-size: 0.92rem;
}

.btn-sm {
    font-size: 0.84rem;
}

/* Navigation/sidebar text */
.dashboard-layout .nav-link {
    font-size: 0.92rem;
}

/* Search input */
.input-group .form-control {
    font-size: 0.95rem;
}

/* Hero eyebrow */
.hero-eyebrow {
    font-size: 0.8rem;
}

/* Hero paragraph */
.hero-section p {
    font-size: 1rem;
    line-height: 1.65;
}

/* Alert messages */
.alert {
    font-size: 0.92rem;
}

/* Profile page */
.profile-card,
.profile-card p {
    font-size: 0.95rem;
}

/* Settings */
.form-check-label {
    font-size: 0.95rem;
}

/* Authentication pages */
.auth-card {
    font-size: 0.95rem;
}

.auth-card .text-muted {
    font-size: 0.92rem;
}

/* About page feature descriptions */
.section-padding .text-muted {
    line-height: 1.6;
}

/* Pricing page */
.container .text-muted {
    line-height: 1.55;
}

/* Modal text */
.modal-body {
    font-size: 0.95rem;
}

.modal-body .small {
    font-size: 0.9rem !important;
}

/* Mobile readability */
@media (max-width: 768px) {

    body {
        font-size: 15.5px;
    }

    .dashboard-main h3 {
        font-size: 1.35rem;
    }

    .dashboard-main h5 {
        font-size: 1.05rem;
    }

    .dashboard-main h6 {
        font-size: 0.98rem;
    }

    .card-modern p {
        font-size: 0.92rem;
    }

    .card-modern .small {
        font-size: 0.88rem !important;
    }

    .table {
        font-size: 0.88rem;
    }

    .table th,
    .table td {
        font-size: 0.88rem;
    }

    .form-label {
        font-size: 0.92rem;
    }

    .btn {
        font-size: 0.9rem;
    }
}

