/* ------------------------------------------------------------------
   Theme & Variables (Premium Palette)
   ------------------------------------------------------------------ */
:root {
  /* Pine Green Palette */
  --primary-h: 174;
  --primary-s: 90%;
  --primary-l: 25%;
  /* Deep Pine */
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-dark: hsl(var(--primary-h), var(--primary-s), 15%);
  --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);

  --success: hsl(150, 60%, 45%);
  --warning: hsl(35, 90%, 60%);
  --danger: hsl(0, 70%, 55%);
  --info: hsl(200, 80%, 55%);

  /* Neutrals - High Contrast clean */
  --bg-body: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-color: rgba(0, 0, 0, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Spacing */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --header-height: 54px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for theme change */
body,
.card,
.navbar,
.auth-card,
.modal-content,
.form-input,
.btn,
input,
select,
textarea {
  transition: var(--theme-transition);
}

/* Global Selection Styling */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  cursor: pointer;
}




/* ------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Canvas - Full Page Coverage */
#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Ensure body allows full height canvas */
body {
  position: relative;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ------------------------------------------------------------------
   Layout Components
   ------------------------------------------------------------------ */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Auth Layout */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--primary-light) 100%);
  overflow-y: auto;
}

.auth-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  text-align: center;
  animation: slideUp 0.4s ease-out;
  margin: auto;
}

@media (max-height: 700px) {
  .auth-wrapper {
    align-items: flex-start;
    padding-top: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------
   UI Elements
   ------------------------------------------------------------------ */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  background: var(--bg-card);
}

input:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder,
input:focus::-moz-placeholder,
textarea:focus::-moz-placeholder,
input:focus:-moz-placeholder,
textarea:focus:-moz-placeholder,
input:focus:-ms-input-placeholder,
textarea:focus:-ms-input-placeholder {
  color: transparent !important;
}

input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent !important;
}

/* OTP Redesign */
.otp-wrapper {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-box {
  width: 54px;
  height: 60px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: white;
  transition: all 0.2s ease;
}

.otp-box:focus {
  outline: none;
  border: 2px solid var(--primary);
}

.otp-box.filled {
  border-color: var(--primary);
}

/* Success & Error Animations */
.otp-box.success {
  border-color: var(--success) !important;
  background: #ecfdf5 !important;
  color: var(--success);
  animation: pulseSuccess 0.5s ease-in-out;
}

.otp-box.error {
  border-color: var(--danger) !important;
  background: #fef2f2 !important;
  color: var(--danger);
  animation: shakeError 0.4s ease-in-out;
}

@keyframes pulseSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Checkmark Success Animation */
.success-checkmark {
  width: auto;
  min-width: 280px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-branding {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.success-branding img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.success-branding h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.5px;
}

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

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--success);
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotatePlaceholder 4.25s ease-in;
}

.check-icon::before, .check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: transparent;
  transform: rotate(-45deg);
}

.icon-line {
  height: 5px;
  background-color: var(--success);
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(var(--success), 0.5);
  box-sizing: content-box;
  position: absolute;
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: transparent;
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: -8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0px; top: 35px; }
  100% { width: 47px; right: 8px; top: 38px; }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}



.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ------------------------------------------------------------------
   Loading Spinners & Skeletons
   ------------------------------------------------------------------ */

/* Spinner Container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 1rem;
}

/* Primary Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

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

/* Dots Loader */
.dots-loader {
  display: flex;
  gap: 0.5rem;
}

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

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

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

.dots-loader span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg,
      var(--border-color) 25%,
      var(--bg-body) 50%,
      var(--border-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text-sm {
  height: 0.75rem;
  width: 60%;
}

.skeleton-title {
  height: 1.5rem;
  width: 40%;
  margin-bottom: 1rem;
}

.skeleton-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Loading Text */
.loading-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Inline Spinner (for buttons) */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

/* Pulse Animation for status */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ------------------------------------------------------------------
   Modals
   ------------------------------------------------------------------ */
/* ------------------------------------------------------------------
   Modals
   ------------------------------------------------------------------ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  width: 600px;
  max-width: 90%;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.open .modal-content {
  transform: scale(1);
}

/* ------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------------------------
   RESPONSIVE DESIGN - Mobile First Approach
   ------------------------------------------------------------------ */

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
}

/* Fluid Typography */
h1,
.hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* ------------------------------------------------------------------
   Tablet Breakpoint (max-width: 768px)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Show hamburger menu */
  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  /* Mobile navigation */
  .navbar {
    padding: 1rem;
  }

  .navbar .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 100;
  }

  .navbar .nav-links.open {
    right: 0;
  }

  .navbar .nav-links .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  /* Container adjustments */
  .container {
    padding: 1rem;
  }

  /* Auth cards */
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }

  /* Tabs - horizontal scroll */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

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

  .tab-btn {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Grid layouts - stack on tablet/mobile */
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Flex rows - stack on mobile */
  .row,
  [style*="display: flex"][style*="gap: 1rem"],
  [style*="display:flex"][style*="gap:1rem"] {
    flex-direction: column !important;
  }

  [style*="flex: 1"],
  [style*="flex:1"] {
    flex: none !important;
    width: 100% !important;
  }

  /* Cards and Jobs */
  .card,
  .job-card,
  .role-card {
    padding: 1rem;
  }

  .role-card {
    width: 100%;
    max-width: none;
  }

  /* Modals - full width on mobile */
  .modal-content {
    width: 95% !important;
    max-width: none !important;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    padding: 1.5rem;
  }

  /* Form improvements for touch */
  .form-input,
  .btn {
    min-height: 44px;
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  .btn {
    padding: 0.875rem 1.25rem;
  }

  /* Tables - responsive */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Search/Filter sections */
  [style*="display: grid"][style*="align-items: end"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  [style*="display: grid"][style*="align-items: end"] .form-group {
    width: 100%;
  }

  [style*="display: grid"][style*="align-items: end"] button {
    width: 100%;
  }

  /* Landing page role cards */
  .role-cards {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
  }

  /* Job card actions */
  .job-card [style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 1rem;
  }
}

/* ------------------------------------------------------------------
   Mobile Breakpoint (max-width: 480px)
   ------------------------------------------------------------------ */
@media (max-width: 480px) {

  /* Even smaller padding */
  .container {
    padding: 0.75rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  /* Auth wrapper */
  .auth-wrapper {
    padding: 1rem 0.5rem;
  }

  .auth-card {
    padding: 1.25rem;
    margin: 0.5rem;
    border-radius: var(--radius-md);
  }

  /* Tabs - smaller */
  .tab-btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Buttons stack full width */
  .btn {
    width: 100%;
  }

  [style*="display: flex"][style*="gap: 0.5rem"] {
    flex-direction: column !important;
  }

  /* Form group spacing */
  .form-group {
    margin-bottom: 1rem;
  }

  /* Salary inputs - stack the min-max */
  [style*="display:flex"][style*="gap:0.5rem"][style*="align-items:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  [style*="display:flex"][style*="gap:0.5rem"][style*="align-items:center"] span {
    display: none;
  }

  /* Badge wrap */
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  /* Export buttons */
  [style*="margin-top: 1rem"][style*="display: flex"][style*="gap: 0.5rem"] {
    flex-direction: column !important;
  }

  /* Nav links in mobile menu */
  .navbar .nav-links {
    width: 85%;
  }

  /* Modal full screen */
  .modal-content {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Loading container */
  .loading-container {
    padding: 2rem 1rem;
  }

  .spinner-lg {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------------------------------------------
   Large Desktop (min-width: 1200px)
   ------------------------------------------------------------------ */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 3.5rem;
  }
}

/* ------------------------------------------------------------------
   Touch Device Improvements
   ------------------------------------------------------------------ */
@media (hover: none) and (pointer: coarse) {

  /* Larger tap targets */
  .nav-link,
  .tab-btn,
  .btn,
  .option {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch */
  .card:hover,
  .job-card:hover,
  .role-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Print Styles
   ------------------------------------------------------------------ */
@media print {

  .navbar,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card,
  .job-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ------------------------------------------------------------------
   Profile Completeness Widget (Premium)
   ------------------------------------------------------------------ */
.completeness-widget {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.completeness-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gauge-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-percentage {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.gauge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.next-steps-container {
  margin-top: 2rem;
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: default;
}

.step-item.completed {
  color: var(--text-main);
}

.step-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.step-item.completed .step-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-label {
  font-weight: 500;
}

.step-item:not(.completed) .step-label {
  opacity: 0.8;
}

.step-bonus {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------
   User Email Display (Header Chip)
   ------------------------------------------------------------------ */
.user-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 99px;
  font-size: 0.825rem;
  font-weight: 650;
  border: 1.5px solid rgba(var(--primary-h), var(--primary-s), 85%);
  margin-right: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.user-email-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: white;
}

.user-email-chip .icon {
  font-size: 0.9rem;
  opacity: 0.8;
}