:root {
  --bs-primary: #312e81;
  --bs-primary-rgb: 49, 46, 129;
  --bs-secondary: #fb7185;
  --bs-secondary-rgb: 251, 113, 133;
  --bs-link-color: #312e81;
  --bs-link-hover-color: #fb7185;
  --bs-body-bg: #f9fafb;
  --bs-body-color: #1f2937;
  --factimeo-gradient: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  --factimeo-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --factimeo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  background-color: #f9fafb;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

main.container {
  max-width: 1400px;
}

.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  --bs-btn-bg: #312e81;
  --bs-btn-border-color: #312e81;
  --bs-btn-hover-bg: #1e1b4b;
  --bs-btn-hover-border-color: #1e1b4b;
  --bs-btn-active-bg: #1e1b4b;
  --bs-btn-active-border-color: #1e1b4b;
  --bs-btn-disabled-bg: #312e81;
  --bs-btn-disabled-border-color: #312e81;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 46, 129, 0.4);
}

.btn-secondary {
  --bs-btn-bg: #fb7185;
  --bs-btn-border-color: #fb7185;
  --bs-btn-hover-bg: #e11d48;
  --bs-btn-hover-border-color: #e11d48;
  --bs-btn-active-bg: #e11d48;
  --bs-btn-active-border-color: #e11d48;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 113, 133, 0.4);
}

.btn-outline-primary {
  --bs-btn-color: #312e81;
  --bs-btn-border-color: #312e81;
  --bs-btn-hover-bg: #312e81;
  --bs-btn-hover-border-color: #312e81;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1e1b4b;
  --bs-btn-active-border-color: #1e1b4b;
}

.btn-outline-secondary {
  --bs-btn-color: #fb7185;
  --bs-btn-border-color: #fb7185;
  --bs-btn-hover-bg: #fb7185;
  --bs-btn-hover-border-color: #fb7185;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #e11d48;
  --bs-btn-active-border-color: #e11d48;
}

.btn-light {
  background-color: #fff;
  border-color: #e5e7eb;
  color: #374151;
}
.btn-light:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #312e81;
}

.navbar-factimeo {
  background: var(--factimeo-gradient);
  box-shadow: var(--factimeo-shadow-lg);
  padding: 0.75rem 0;
}
.navbar-factimeo .navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff !important;
}
.navbar-factimeo .navbar-brand i {
  color: #fb7185;
}
.navbar-factimeo .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}
.navbar-factimeo .nav-link:hover, .navbar-factimeo .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
}
.navbar-factimeo .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15);
}
.navbar-factimeo .nav-link i {
  margin-right: 0.25rem;
}
.navbar-factimeo .dropdown-menu {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--factimeo-shadow-lg);
  padding: 0.5rem;
}
.navbar-factimeo .dropdown-menu .dropdown-item {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
}
.navbar-factimeo .dropdown-menu .dropdown-item:hover {
  background-color: rgba(49, 46, 129, 0.1);
  color: #312e81;
}
.navbar-factimeo .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-landing {
  background: transparent;
  position: absolute;
  width: 100%;
  z-index: 100;
}
.navbar-landing .navbar-brand {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}
.navbar-landing .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.navbar-landing .btn-outline-light:hover {
  background: white;
  color: var(--primary);
}
@media (max-width: 991px) {
  .navbar-landing .navbar-collapse {
    background: #312e81;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--factimeo-shadow);
  transition: all 0.2s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--factimeo-shadow-lg);
}

.card-header {
  border-bottom: 1px solid #f3f4f6;
  padding: 1rem 1.25rem;
  font-weight: 600;
}
.card-header.bg-primary {
  background: var(--factimeo-gradient) !important;
  border-bottom: none;
  color: #fff;
}
.card-header.bg-primary h5, .card-header.bg-primary h6 {
  color: #fff;
}
.card-header.bg-secondary {
  background: #fb7185 !important;
  border-bottom: none;
  color: #fff;
}

.card-body {
  padding: 1.25rem;
}

.card-stats {
  border-left: 4px solid;
  transition: all 0.2s ease;
}
.card-stats:hover {
  transform: translateX(4px);
}
.card-stats.card-link {
  cursor: pointer;
}
.card-stats.card-link:hover {
  transform: translateY(-2px) translateX(4px);
  box-shadow: var(--factimeo-shadow-lg);
}
.card-stats.primary {
  border-left-color: #312e81;
}
.card-stats.secondary {
  border-left-color: #fb7185;
}
.card-stats.success {
  border-left-color: #10b981;
}
.card-stats.warning {
  border-left-color: #f59e0b;
}
.card-stats.info {
  border-left-color: #06b6d4;
}
.card-stats.danger {
  border-left-color: #ef4444;
}
.card-stats .stats-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.5rem;
}
.card-stats .stats-icon.primary {
  background-color: rgba(49, 46, 129, 0.1);
  color: #312e81;
}
.card-stats .stats-icon.secondary {
  background-color: rgba(251, 113, 133, 0.1);
  color: #fb7185;
}
.card-stats .stats-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}
.card-stats .stats-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-control,
.form-select {
  border-radius: 0.5rem;
  border-color: #d1d5db;
  padding: 0.625rem 0.875rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.15);
}
.form-control::placeholder,
.form-select::placeholder {
  color: #9ca3af;
}

.form-control-sm,
.form-select-sm {
  padding: 0.375rem 0.625rem;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid,
.was-validated .form-check-input:valid {
  border-color: #d1d5db;
  background-image: none;
}
.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus,
.was-validated .form-check-input:valid:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.15);
}

.was-validated .form-check-input:valid ~ .form-check-label {
  color: inherit;
}

.was-validated .valid-feedback {
  display: none !important;
}

.form-check-input {
  border-radius: 0.25rem;
}
.form-check-input:checked {
  background-color: #312e81;
  border-color: #312e81;
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.15);
}

.input-group-text {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.table {
  --bs-table-hover-bg: rgba($primary, 0.04);
}
.table thead {
  background-color: #f9fafb;
}
.table thead th {
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 2px solid #e5e7eb;
}
.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}
.table tbody tr:hover {
  background-color: rgba(49, 46, 129, 0.04);
}

.badge {
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
}

.badge.bg-primary {
  background-color: #312e81 !important;
}

.badge.bg-secondary {
  background-color: #fb7185 !important;
}

.badge-soft-primary {
  background-color: rgba(49, 46, 129, 0.1);
  color: #312e81;
}

.badge-soft-secondary {
  background-color: rgba(251, 113, 133, 0.1);
  color: #e11d48;
}

.badge-soft-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}

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

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

.alert {
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
.alert.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #065f46;
}
.alert.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}
.alert.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #92400e;
}
.alert.alert-info {
  background-color: rgba(49, 46, 129, 0.1);
  color: #1e1b4b;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.page-header h1, .page-header h2 {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.page-header .page-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}
.page-header .page-actions {
  display: flex;
  gap: 0.5rem;
}

.invoice-item {
  border: 1px solid #e5e7eb !important;
  border-left: 4px solid #312e81 !important;
  border-radius: 0.5rem !important;
  background-color: #fff;
  transition: all 0.2s ease;
}
.invoice-item:hover {
  border-left-color: #fb7185 !important;
  box-shadow: var(--factimeo-shadow);
}

.invoice-totals {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.invoice-totals .total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.invoice-totals .total-row.total-final {
  border-top: 2px solid #312e81;
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #312e81;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-badge.status-draft {
  background-color: #f3f4f6;
  color: #4b5563;
}
.status-badge.status-draft::before {
  background-color: #9ca3af;
}
.status-badge.status-issued {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.status-badge.status-issued::before {
  background-color: #f59e0b;
}
.status-badge.status-paid {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.status-badge.status-paid::before {
  background-color: #10b981;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}
.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.1) 0%, rgba(251, 113, 133, 0.1) 100%);
  border-radius: 50%;
}
.empty-state .empty-icon i {
  font-size: 2rem;
  color: #312e81;
}
.empty-state h4 {
  color: #374151;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--factimeo-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid #f3f4f6;
  padding: 1.25rem 1.5rem;
}
.modal-header .modal-title {
  font-weight: 600;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #f3f4f6;
  padding: 1rem 1.5rem;
}

.login-modal-tabs {
  display: flex;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #f3f4f6;
}

.login-modal-tab {
  flex: 1;
  padding: 0.625rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.login-modal-tab:hover {
  color: #4b5563;
}
.login-modal-tab.active {
  color: #312e81;
  border-bottom-color: #312e81;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.footer-site a) {
  color: #312e81;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.footer-site a):hover {
  color: #fb7185;
}

.footer-site a {
  color: #fb7185 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-site a:hover {
  color: #fda4af !important;
}

.pagination .page-link {
  color: #312e81;
  border-radius: 0.375rem;
  margin: 0 2px;
  border: none;
  background-color: transparent;
}
.pagination .page-link:hover {
  background-color: rgba(49, 46, 129, 0.1);
  color: #1e1b4b;
}
.pagination .page-item.active .page-link {
  background-color: #312e81;
  color: #fff;
}

.toast-container {
  z-index: 1100;
}

.toast {
  border-radius: 0.5rem;
  box-shadow: var(--factimeo-shadow-lg);
}

.footer-site {
  background-color: #111827;
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-site .footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}
.footer-site .footer-brand i {
  color: #fb7185;
}
.footer-site .footer-tagline {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.footer-site .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-site .footer-links a {
  color: #fb7185;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-site .footer-links a:hover {
  color: #fda4af;
}
.footer-site .footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

.text-primary {
  color: #312e81 !important;
}

.text-secondary {
  color: #fb7185 !important;
}

.bg-primary {
  background-color: #312e81 !important;
}

.bg-secondary {
  background-color: #fb7185 !important;
}

.border-primary {
  border-color: #312e81 !important;
}

.border-secondary {
  border-color: #fb7185 !important;
}

.gradient-primary {
  background: var(--factimeo-gradient);
  color: #fff;
}

.shadow-soft {
  box-shadow: var(--factimeo-shadow);
}

.shadow-lg-soft {
  box-shadow: var(--factimeo-shadow-lg);
}

.accent {
  color: #fb7185;
}

.bg-accent {
  background-color: #fb7185;
  color: #fff;
}

.auth-page {
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.auth-header p {
  color: #6b7280;
  margin: 0;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #312e81;
  margin-bottom: 0.5rem;
}
.auth-logo i {
  margin-right: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.auth-footer a {
  color: #312e81;
  font-weight: 500;
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}

.back-home {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
  font-weight: 500;
  z-index: 10;
}
.back-home:hover {
  opacity: 1;
  color: white;
}

.confirm-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
}
.confirm-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}
.confirm-card p {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-icon i {
  font-size: 2.5rem;
  color: #059669;
}

.new-email {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  font-weight: 600;
  color: #312e81;
  font-size: 1.1rem;
}

.hero {
  padding-top: 80px;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-size: 1.35rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.btn-cta {
  background: #fb7185;
  border: none;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: #e11d48;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 113, 133, 0.4);
}

.btn-cta-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  padding: calc(1rem - 2px) 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}
.hero-image img {
  border-radius: 8px;
  width: 100%;
}

.hero-mockup {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.85rem;
}

.hero-mockup-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.trust-section {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
  font-weight: 500;
}
.trust-badge i {
  color: #10b981;
  font-size: 1.25rem;
}

.reform-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
}
.reform-section .section-title {
  color: #9f1239;
}

.reform-timeline {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.reform-timeline-item {
  text-align: center;
  max-width: 280px;
}
.reform-timeline-item p {
  color: #4b5563;
  line-height: 1.6;
}

.reform-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.reform-badge-red {
  background: #e11d48;
  color: white;
}
.reform-badge-orange {
  background: #ea580c;
  color: white;
}

.documents-section {
  padding: 5rem 0;
  background: white;
}

.features-section {
  padding: 6rem 0;
  background: #f9fafb;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #312e81;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #312e81;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.feature-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #312e81, #4338ca);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-icon i {
  font-size: 1.75rem;
  color: white;
}

.verifier-section {
  padding: 6rem 0;
  background: white;
}

.verifier-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.verifier-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  color: #374151;
}
.verifier-checklist li i {
  color: #10b981;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.steps-section {
  padding: 6rem 0;
  background: #f9fafb;
}

.step-number {
  width: 50px;
  height: 50px;
  background: #312e81;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.step-card p {
  color: #6b7280;
  line-height: 1.6;
}

.steps-connector {
  position: relative;
}
.steps-connector::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  width: calc(100% - 50px);
  height: 2px;
  background: linear-gradient(90deg, #312e81, #fb7185);
  transform: translateX(25px);
}

@media (max-width: 767px) {
  .steps-connector::after {
    display: none;
  }
}
.audience-section {
  padding: 6rem 0;
  background: white;
}

.audience-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
}
.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.audience-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.audience-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #312e81, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.audience-icon i {
  font-size: 2rem;
  color: white;
}

.cta-section {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}
.cta-section .btn-cta {
  background: white;
  color: #312e81;
}
.cta-section .btn-cta:hover {
  background: #f0f0f0;
  color: #312e81;
}
.cta-section .btn-cta-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}
.cta-section .btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
}
.cta-section .text-muted-light {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-image {
    transform: none;
    margin-top: 3rem;
  }
}
@media (max-width: 767px) {
  .trust-section .col-6 {
    margin-bottom: 0.5rem;
  }
}
.hero-compact {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-compact .hero-content {
  position: relative;
  z-index: 1;
}
.hero-compact h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-compact .lead {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.upload-zone {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}
.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.upload-zone .file-name {
  margin-top: 0.75rem;
  font-weight: 600;
}

.results-section {
  padding: 3rem 0;
  background: #f9fafb;
}

.summary-card {
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.summary-card .count {
  font-size: 2.5rem;
  font-weight: 800;
}

.check-row {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.check-row:last-child {
  border-bottom: none;
}

.check-icon-pass {
  color: #10b981;
}

.check-icon-fail {
  color: #ef4444;
}

.info-section {
  padding: 5rem 0;
  background: white;
}

.info-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #312e81;
}
.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.info-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #312e81, #4338ca);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.info-icon i {
  font-size: 1.75rem;
  color: white;
}

.xml-content {
  max-height: 400px;
  overflow-y: auto;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 991px) {
  .hero-compact h1 {
    font-size: 2rem;
  }
}
.access-page {
  background-color: #f3f4f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.access-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}
.access-wrapper .card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.access-wrapper .card-header {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  color: white;
  border-radius: 1rem 1rem 0 0 !important;
  padding: 2rem;
  text-align: center;
}
.access-wrapper .logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.access-wrapper .btn-primary {
  background-color: #312e81;
  border-color: #312e81;
}
.access-wrapper .btn-primary:hover {
  background-color: #4338ca;
  border-color: #4338ca;
}
.access-wrapper .btn-secondary-custom {
  background-color: #fb7185;
  border-color: #fb7185;
  color: white;
}
.access-wrapper .btn-secondary-custom:hover {
  background-color: #e11d48;
  border-color: #e11d48;
  color: white;
}
.access-wrapper .invoice-summary {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.access-wrapper .custom-message {
  background-color: #fef3c7;
  border-left: 4px solid #fb7185;
  padding: 1rem;
  border-radius: 0.25rem;
}
.access-wrapper .expiry-notice {
  font-size: 0.875rem;
  color: #6b7280;
}

.access-footer {
  background-color: #312e81;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
}
.access-footer a {
  color: #fb7185;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  .page-header .page-actions {
    width: 100%;
  }
  .page-header .page-actions .btn {
    flex: 1;
  }
  .card-stats .stats-value {
    font-size: 1.5rem;
  }
}
html {
  scroll-behavior: smooth;
}

body.landing-page main.container {
  padding-top: 0 !important;
}
body.landing-page .nav-item-register {
  display: none;
}

.landing-form-section {
  padding-top: 1.5rem;
}

.landing-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #312e81;
  margin-bottom: 0.25rem;
}

.landing-section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.landing-trust-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.landing-trust-inline span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
}
.landing-trust-inline span i {
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.landing-seo-section {
  padding: 3rem 0;
}

.landing-seo-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.landing-seo-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #312e81;
  margin-bottom: 2rem;
}

.landing-seo-block {
  margin-bottom: 2rem;
}

.landing-seo-block h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.landing-seo-block p,
.landing-seo-block li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

.landing-seo-block ul,
.landing-seo-block ol {
  padding-left: 1.25rem;
}

.landing-seo-block li {
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .landing-section-title {
    font-size: 1.35rem;
  }
  .landing-trust-inline {
    gap: 0.375rem 0.75rem;
  }
  .landing-trust-inline span {
    font-size: 0.8rem;
  }
}
.admin-layout main.container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.admin-sidebar {
  background-color: #fff;
  border-right: 1px solid #e5e7eb;
  min-height: calc(100vh - 62px);
  padding: 0;
}
.admin-sidebar .admin-sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.admin-sidebar .admin-sidebar-header h6 {
  margin: 0;
  font-weight: 700;
  color: #312e81;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.admin-sidebar .nav {
  padding: 0.75rem 0.5rem;
}
.admin-sidebar .nav-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}
.admin-sidebar .nav-link i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}
.admin-sidebar .nav-link:hover {
  color: #312e81;
  background-color: rgba(49, 46, 129, 0.06);
}
.admin-sidebar .nav-link.active {
  color: #312e81;
  background-color: rgba(49, 46, 129, 0.1);
  font-weight: 600;
}

.admin-content {
  padding: 1.5rem 2rem;
}

.ck-editor__editable {
  min-height: 300px;
}

.card-link {
  cursor: pointer;
  transition: all 0.2s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--factimeo-shadow-lg);
}
.card-link .card-title {
  color: #1f2937;
}

@media (max-width: 991px) {
  .admin-sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .admin-sidebar .nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .admin-content {
    padding: 1.5rem 1rem;
  }
}

/*# sourceMappingURL=app.output.css.map */
