:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --primary-light: #3b82f6;
  --accent: #b8860b;
  --accent-dark: #8b6508;
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --text: #0f172a;
  --text-muted: #475569;
  --text-inverse: #f8fafc;
  --border: #cbd5e1;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
  --sidebar-width: 260px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #020617;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --border: #334155;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.5), 0 10px 10px rgba(0,0,0,0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

img, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid transparent;
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-primary {
  background: rgba(26, 86, 219, 0.1);
  color: var(--primary);
}

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

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59,130,246,0.4) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(16,185,129,0.2) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(59,130,246,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.landing-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 2s; animation-duration: 14s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 40%; top: 10%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 55%; top: 70%; animation-delay: 1s; animation-duration: 16s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: 3s; animation-duration: 22s; }
.particle:nth-child(6) { left: 85%; top: 80%; animation-delay: 5s; animation-duration: 15s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 15%; top: 90%; animation-delay: 6s; animation-duration: 19s; }
.particle:nth-child(8) { left: 50%; top: 40%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(9) { left: 90%; top: 50%; animation-delay: 7s; animation-duration: 13s; width: 7px; height: 7px; }
.particle:nth-child(10) { left: 35%; top: 85%; animation-delay: 4.5s; animation-duration: 21s; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  border-color: #fff;
  color: #fff;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.hero-actions .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
}

.hero-actions .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: all var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.8);
  border-bottom: 1px solid rgba(51,65,85,0.5);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn {
  margin-left: 0.5rem;
}

.nav-link-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-link-btn:hover {
  color: var(--text);
}

.nav-link-btn:hover::after {
  width: 100%;
}

.nav-guest {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(26, 86, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2vw, 2rem);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: scale(1.03);
  z-index: 1;
}

.plan-card.popular:hover {
  transform: scale(1.03) translateY(-2px);
}

.plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
}

.plan-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.plan-features li.disabled::before {
  background: var(--text-muted);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  gap: 1rem;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--text-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

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

.form-input.error {
  border-color: #ef4444;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.form-input.error + .form-error {
  display: block;
}

.floating-label {
  position: relative;
}

.floating-label .form-input {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.floating-label label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition);
  margin-bottom: 0;
}

.floating-label .form-input:focus ~ label,
.floating-label .form-input:not(:placeholder-shown) ~ label {
  top: 0.25rem;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}

.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

[data-theme="dark"] .footer {
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 0.55rem 0;
  transition: color var(--transition);
}

/* Legal modals */
.modal-legal .modal-content {
  max-width: 720px;
  max-height: 80vh;
  overflow-y: auto;
}
.legal-section {
  margin-bottom: 1.5rem;
}
.legal-section h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.legal-section h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0.75rem 0 0.25rem;
}
.legal-section p, .legal-section li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.legal-section ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}
.legal-section li {
  margin-bottom: 0.25rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

/* RGPD consent */
.rgpd-consent {
  margin-top: 0.5rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 1rem;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-content .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 1.25rem;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-content h2 {
  margin-bottom: 0.5rem;
}

.modal-content .form-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-content .form-footer .btn {
  flex: 1;
}

.modal-content .form-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-content .form-link a {
  color: var(--primary);
  font-weight: 600;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: rgba(255,255,255,0.7);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header .nav-logo {
  color: #fff;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.sidebar-nav a.active {
  background: rgba(26,86,219,0.2);
  color: var(--primary-light);
}

.sidebar-nav a.active::before {
  content: '';
  width: 3px;
  height: 100%;
  background: var(--primary-light);
  border-radius: 2px;
  position: absolute;
  left: 0;
}

.sidebar-nav .nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  padding: 0.75rem 0.75rem 0.25rem;
  margin-top: 0.5rem;
}

.sidebar-nav .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}

.sidebar-footer .user-info:hover {
  background: rgba(255,255,255,0.06);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-user-meta {
  flex: 1;
  min-width: 0;
}

.sidebar-user-meta strong {
  display: block;
  font-size: 0.8125rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: clamp(1.5rem, 3vw, 2rem);
  min-height: 100vh;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.stat-card-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.stat-card-change.positive { color: var(--accent); }
.stat-card-change.negative { color: #ef4444; }

.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-toolbar .form-input {
  max-width: 320px;
}

.table-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.data-table td {
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(26,86,219,0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.table-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.table-status.active::before { background: var(--accent); }
.table-status.pending::before { background: #f59e0b; }
.table-status.inactive::before { background: var(--text-muted); }
.table-status.suspended::before { background: #ef4444; }

.table-actions {
  display: flex;
  gap: 0.375rem;
}

.table-actions .btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.wizard {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  counter-reset: step;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  counter-increment: step;
}

.wizard-step::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.wizard-step.active::before {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.wizard-step.completed::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.wizard-step.completed::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
}

.wizard-step:not(:last-child)::after {
  content: '';
  width: clamp(2rem, 6vw, 4rem);
  height: 2px;
  background: var(--border);
  margin: 0 0.75rem;
}

.wizard-step.active:not(:last-child)::after {
  background: var(--primary);
}

.wizard-step.completed:not(:last-child)::after {
  background: var(--accent);
}

.wizard-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.wizard-content h3 {
  margin-bottom: 0.5rem;
}

.wizard-content .form-group:last-child {
  margin-bottom: 0;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.wizard-nav .btn {
  min-width: 120px;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  pointer-events: all;
  animation: toast-in 0.3s ease forwards;
  max-width: 380px;
  min-width: 280px;
}

.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
}

.toast.success .toast-icon { background: var(--accent); }
.toast.error .toast-icon { background: #ef4444; }
.toast.warning .toast-icon { background: #f59e0b; }
.toast.info .toast-icon { background: var(--primary); }

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(15,23,42,0.7);
}

.loading-overlay p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.animate-fade-in {
  animation: fade-in 0.5s ease forwards;
}

.animate-slide-up {
  animation: slide-up 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-60px) translateX(-10px);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(20px);
    opacity: 0.7;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 0.625rem 0.75rem;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background: var(--bg);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-guest {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-guest .btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.popular {
    transform: none;
  }

  .plan-card.popular:hover {
    transform: translateY(-2px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .wizard-step span {
    display: none;
  }

  .wizard-step:not(:last-child)::after {
    width: 1.5rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
  }

  .toast {
    max-width: none;
    min-width: 0;
  }
}

/* === WIZARD JS STYLES === */
.wiz-breadcrumb{display:flex;align-items:center;justify-content:center;gap:4px;margin-bottom:24px;flex-wrap:wrap}
.wiz-step-badge{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;color:#94a3b8;background:#f1f5f9;cursor:pointer;transition:all .2s}
.wiz-step-badge.active{background:#1a56db;color:#fff}
.wiz-step-badge.done{background:#dbeafe;color:#1a56db}
.wiz-step-num{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;background:rgba(0,0,0,0.1)}
.wiz-step-badge.active .wiz-step-num{background:rgba(255,255,255,0.2)}
.wiz-step-badge.done .wiz-step-num{background:rgba(26,86,219,0.15)}
.wiz-step-label{white-space:nowrap}
@media(max-width:768px){.wiz-step-label{display:none}}
.wiz-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}
.wiz-header h2{font-size:22px;font-weight:700}
.wiz-progress{display:flex;align-items:center;gap:12px}
.wiz-progress-text{font-size:13px;color:#64748b;font-weight:500}
.wiz-progress-bar{width:140px;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}
.wiz-progress-fill{height:100%;background:linear-gradient(90deg,#1a56db,#3b82f6);border-radius:3px;transition:width .3s}
.wiz-form{background:#fff;border-radius:16px;border:1px solid #e2e8f0;padding:32px;margin-bottom:16px}
.wiz-step-content h3{font-size:20px;font-weight:700;margin-bottom:4px;color:#0f172a}
.wiz-subtitle{font-size:14px;color:#64748b;margin-bottom:20px}
.wiz-ref{font-size:12px;color:#1a56db;font-weight:500}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field-full{grid-column:1/-1}
.field-wrap{display:flex;flex-direction:column;gap:4px}
.field-wrap label{font-size:13px;font-weight:600;color:#475569}
.field-wrap input,.field-wrap select,.field-wrap textarea{padding:10px 12px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:inherit;color:#1e293b;background:#fff;transition:border-color .2s;outline:none}
.field-wrap input:focus,.field-wrap select:focus,.field-wrap textarea:focus{border-color:#1a56db;box-shadow:0 0 0 3px rgba(26,86,219,0.1)}
.field-wrap small{font-size:11px;color:#94a3b8}
.field-error{border-color:#ef4444!important}
.wiz-regime-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:16px}
.wiz-regime-card{padding:16px;border:2px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .2s;background:#fff}
.wiz-regime-card:hover{border-color:#93c5fd;box-shadow:0 2px 8px rgba(26,86,219,0.1)}
.wiz-regime-card.selected{border-color:#1a56db;background:#eff6ff}
.wiz-regime-title{font-size:14px;font-weight:700;color:#0f172a;margin-bottom:4px}
.wiz-regime-desc{font-size:12px;color:#64748b;margin-bottom:4px;line-height:1.4}
.wiz-regime-ref{font-size:11px;color:#1a56db;font-weight:500}
.wiz-regime-detail{margin-top:20px;padding:20px;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0}
.wiz-regime-detail h4{font-size:16px;margin-bottom:12px}
.wiz-remuneracao-summary{padding:16px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;font-size:14px;color:#166534}
.wiz-checklist{display:flex;flex-direction:column;gap:8px}
.wiz-check-item{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#f8fafc;border-radius:8px;font-size:14px;color:#475569;cursor:default}
.wiz-check-item input[type=checkbox]{accent-color:#10b981;width:16px;height:16px}
.wiz-compliance{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-radius:12px;margin-bottom:16px}
.wiz-sema-level{font-size:16px;font-weight:700}
.wiz-sema-score{display:flex;align-items:center;gap:12px}
.wiz-score-bar{width:100px;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}
.wiz-score-bar div{height:100%;border-radius:4px;transition:width .5s}
.sema-verde{background:#f0fdf4;border:2px solid #10b981;color:#166534}
.sema-verde .wiz-score-bar div{background:#10b981}
.sema-amarelo{background:#fefce8;border:2px solid #facc15;color:#854d0e}
.sema-amarelo .wiz-score-bar div{background:#facc15}
.sema-vermelho{background:#fef2f2;border:2px solid #ef4444;color:#991b1b}
.sema-vermelho .wiz-score-bar div{background:#ef4444}
.sema-indefinido{background:#f8fafc;border:2px solid #cbd5e1;color:#64748b}
.sema-indefinido .wiz-score-bar div{background:#94a3b8}
.wiz-blockers{padding:16px;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-bottom:16px}
.wiz-blockers ul{margin:8px 0 0 16px}
.wiz-blockers li{font-size:13px;color:#991b1b;margin-bottom:4px}
.wiz-checklist h4{font-size:14px;margin-bottom:8px;color:#0f172a}
.wiz-checklist ul{list-style:none;padding:0;margin:0}
.wiz-checklist li{font-size:13px;padding:6px 10px;margin-bottom:4px;border-radius:6px;border:1px solid #e2e8f0}
.wiz-checklist li.chk-ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.wiz-checklist li.chk-warn{background:#fefce8;border-color:#fef08a;color:#854d0e}
.wiz-checklist li.chk-block{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.wiz-review-sections{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
.wiz-review-section{padding:14px;background:#f8fafc;border-radius:10px;border:1px solid #e2e8f0}
.wiz-review-section h4{font-size:13px;color:#64748b;margin-bottom:4px;text-transform:uppercase;letter-spacing:0.3px}
.wiz-review-section p{font-size:14px;color:#0f172a;font-weight:500}
.wiz-export-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding-top:20px;border-top:1px solid #e2e8f0}
.wiz-nav{display:flex;justify-content:space-between;align-items:center;margin-top:16px}
.wiz-nav-right{display:flex;gap:8px}
.checkbox-group{display:flex;flex-wrap:wrap;gap:8px}
.checkbox-pill{display:flex;align-items:center;gap:6px;padding:8px 14px;border:1.5px solid #e2e8f0;border-radius:20px;font-size:13px;color:#475569;cursor:pointer;transition:all .2s;background:#fff}
.checkbox-pill:hover{border-color:#93c5fd}
.checkbox-pill input[type=checkbox]{accent-color:#1a56db;width:15px;height:15px}
.cct-modal{padding:8px}
.cct-modal h3{font-size:20px;margin-bottom:4px}
.cct-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:16px 0}
.cct-card{padding:16px;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .2s;background:#fff}
.cct-card:hover{border-color:#1a56db;box-shadow:0 2px 8px rgba(26,86,219,0.1)}
.cct-badge{display:inline-block;padding:2px 8px;border-radius:4px;background:#dbeafe;color:#1a56db;font-size:11px;font-weight:700;margin-bottom:8px}
.cct-nome{font-size:14px;font-weight:600;color:#0f172a;margin-bottom:4px}
.cct-sector{font-size:12px;color:#64748b}
.cct-bte{font-size:11px;color:#1a56db;margin-top:4px}
.nif-status{font-size:14px;font-weight:700}
@media(max-width:768px){.form-grid{grid-template-columns:1fr}.wiz-review-sections{grid-template-columns:1fr}.wiz-regime-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.wiz-regime-grid{grid-template-columns:1fr}}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .wizard-step::before {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .wizard-step:not(:last-child)::after {
    width: 1rem;
    margin: 0 0.5rem;
  }
}

/* Checkout modal */
#checkout-card { font-family: monospace; letter-spacing: 1px }
#checkout-expiry { font-family: monospace }
#checkout-cvv { font-family: monospace }
#checkout-btn { transition: all .2s ease }
#checkout-btn:disabled { opacity: 0.6; cursor: not-allowed }

/* Analise Contract */
.analise-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  margin-bottom: 16px;
  background: #f8fafc;
}
.analise-dropzone:hover,
.analise-dropzone.dragover {
  border-color: #1a56db;
  background: #eff6ff;
}
.analise-dropzone-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.analise-dropzone p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 4px;
}
.analise-dropzone p strong {
  color: #1a56db;
}
.analise-dropzone-hint {
  font-size: 12px !important;
  color: #94a3b8 !important;
}
#analise-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#analise-resultados h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 16px;
  margin-bottom: 8px;
}
#analise-resultados .table td {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: 2px solid #ef4444;
}
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.pwd-strength-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
#pwd-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.copy-btn {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.copy-btn:hover {
  background: #dbeafe;
  color: #1a56db;
}
.search-input {
  max-width: 300px;
  padding: 8px 12px 8px 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z' clip-rule='evenodd'/%3E%3C/svg%3E") 10px center no-repeat;
  background-size: 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
