/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-900: #1e3a8a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --green: #22c55e;
  --green-light: #dcfce7;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-300);
}
.btn--ghost:hover { color: white; }

.btn--white {
  background: white;
  color: var(--primary);
}
.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--block { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo-svg { width: 160px; height: auto; }
.navbar__links {
  display: flex;
  gap: 32px;
}
.navbar__links a {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar__links a:hover { color: white; }
.navbar__actions { display: flex; gap: 12px; align-items: center; }
.navbar__actions .btn { padding: 10px 20px; font-size: 14px; }

.navbar__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.navbar__mobile-menu a {
  color: var(--gray-300);
  font-size: 15px;
  padding: 8px 0;
}
.navbar__mobile-menu hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 4px 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: 72px;
  padding: 80px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.15);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
  top: 100px;
  right: -100px;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title-gradient,
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #60a5fa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__subtitle strong { color: var(--gray-200); }

.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__storage-note {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__storage-note span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--gray-200);
  font-size: 13px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero__stat { text-align: center; }
.hero__stat-number {
  font-size: 36px;
  font-weight: 800;
  color: white;
  display: inline;
}
.hero__stat-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-light);
}
.hero__stat-label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

/* ===== HERO PREVIEW ===== */
.hero__preview {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.preview-window {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 100px rgba(37, 99, 235, 0.1);
}

.preview-window__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.preview-window__dots {
  display: flex;
  gap: 8px;
}
.preview-window__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.preview-window__url {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  background: rgba(255,255,255,0.03);
  padding: 6px 16px;
  border-radius: 8px;
}

.preview-window__content {
  display: flex;
  min-height: 340px;
  background: var(--gray-900);
}

.preview-sidebar {
  width: 180px;
  padding: 16px 12px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-sidebar__item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-500);
  transition: all 0.2s;
}
.preview-sidebar__item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
}
.preview-sidebar__item.highlight {
  color: var(--green);
}

.preview-main {
  flex: 1;
  padding: 24px;
}

.preview-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.preview-stat-card {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}
.preview-stat-card.green { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.15); }
.preview-stat-card.orange { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); }
.preview-stat-card.red { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }
.preview-stat-card__number {
  font-size: 28px;
  font-weight: 800;
  color: white;
}
.preview-stat-card__label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.preview-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.preview-table__row {
  display: grid;
  grid-template-columns: 24px 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-400);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.preview-table__row.header {
  background: rgba(255,255,255,0.02);
  font-weight: 600;
  color: var(--gray-500);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }

/* ===== STORAGE MODES ===== */
.storage-choice {
  padding: 88px 0;
  background: linear-gradient(180deg, rgba(37,99,235,0.05) 0%, rgba(3,7,18,0) 100%);
}

.storage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.storage-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.storage-card--highlight {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.storage-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.storage-card h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 8px;
}

.storage-card p {
  color: var(--gray-300);
  margin-bottom: 14px;
}

.storage-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.storage-card li {
  color: var(--gray-200);
  padding-left: 18px;
  position: relative;
}

.storage-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

.storage-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storage-card__link {
  color: var(--primary-200);
  font-weight: 600;
}

.storage-card__link:hover {
  color: white;
}

/* ===== TRUSTED ===== */
.trusted {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.2);
}
.trusted__text {
  text-align: center;
  color: var(--gray-600);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.trusted__logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trusted__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
}
.trusted__logo svg { color: var(--gray-600); }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.section-header__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-header__subtitle {
  font-size: 17px;
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CIF FLOATING WIDGET ===== */
.cif-widget-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cif-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cif-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.cif-fab:active { transform: scale(0.96); }
.cif-fab__icon-close { display: none; }
.cif-fab.open .cif-fab__icon-search { display: none; }
.cif-fab.open .cif-fab__icon-close { display: block; }
.cif-fab.open {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Mini panel */
.cif-mini {
  width: 360px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: cifMiniSlideUp 0.25s ease-out;
}
@keyframes cifMiniSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.cif-mini__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cif-mini__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin: 0;
}
.cif-mini__actions {
  display: flex;
  gap: 4px;
}
.cif-mini__close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cif-mini__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.cif-mini__search {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}
.cif-mini__input-wrap {
  flex: 1;
  position: relative;
}
.cif-mini__input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.cif-mini__input:focus {
  border-color: #3B82F6;
}
.cif-mini__input::placeholder {
  color: var(--gray-500);
}
.cif-mini__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
}
.cif-mini-dropdown__item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s;
  font-size: 13px;
}
.cif-mini-dropdown__item:hover,
.cif-mini-dropdown__item.highlighted {
  background: rgba(59, 130, 246, 0.15);
}
.cif-mini-dropdown__cui {
  color: #60A5FA;
  font-weight: 600;
  flex-shrink: 0;
}
.cif-mini-dropdown__name {
  color: var(--gray-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cif-mini__btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.cif-mini__btn:hover { opacity: 0.9; }
.cif-mini__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.cif-mini__btn .spinner { animation: spin 0.8s linear infinite; }
.cif-mini__hint {
  padding: 0 16px 12px;
  font-size: 11px;
  color: var(--gray-500);
}
.cif-mini__error {
  padding: 4px 16px 8px;
  font-size: 13px;
  color: #f87171;
}
.cif-mini__action-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cif-mini__action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Mini panel body (results area) */
.cif-mini__body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 0 16px 12px;
}
.cif-mini__body::-webkit-scrollbar { width: 5px; }
.cif-mini__body::-webkit-scrollbar-track { background: transparent; }
.cif-mini__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.cif-mini__not-found {
  text-align: center;
  padding: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.cif-mini__not-found span { font-size: 32px; display: block; margin-bottom: 8px; }
.cif-mini__company {
  margin-bottom: 12px;
}
.cif-mini__company-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}
.cif-mini__company-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.cif-mini__company-cui {
  font-size: 12px;
  color: var(--gray-400);
}
.cif-mini__pdf-btn {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cif-mini__pdf-btn:hover { opacity: 0.85; }
.cif-mini__pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Badges */
.cif-mini__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.cif-mini__badge {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.cif-mini__badge-label {
  display: block;
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.cif-mini__badge-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.cif-mini__badge--green { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }
.cif-mini__badge--green .cif-mini__badge-value { color: #22c55e; }
.cif-mini__badge--red { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.cif-mini__badge--red .cif-mini__badge-value { color: #ef4444; }
.cif-mini__badge--orange { border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.08); }
.cif-mini__badge--orange .cif-mini__badge-value { color: #f97316; }
.cif-mini__badge--gray { border-color: rgba(255,255,255,0.06); }
.cif-mini__badge--gray .cif-mini__badge-value { color: var(--gray-400); }

/* Details table */
.cif-mini__details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.cif-mini__details td {
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.cif-mini__details td:first-child {
  color: var(--gray-500);
  width: 100px;
  white-space: nowrap;
  padding-right: 12px;
}
.cif-mini__details td:last-child {
  color: var(--gray-300);
}

/* Financial loading */
.cif-mini__fin-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-400);
  padding: 8px 0;
}
.cif-mini__fin-loading .spinner { animation: spin 0.8s linear infinite; }

/* Risk */
.cif-mini__risk {
  margin-bottom: 12px;
}
.cif-mini__risk h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}
.cif-mini__risk-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cif-mini__risk-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.cif-mini__risk-badge--green { background: rgba(34,197,94,0.15); color: #22c55e; }
.cif-mini__risk-badge--orange { background: rgba(249,115,22,0.15); color: #f97316; }
.cif-mini__risk-badge--red { background: rgba(239,68,68,0.15); color: #ef4444; }
.cif-mini__risk-score { font-size: 12px; color: var(--gray-400); }
.cif-mini__risk-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.cif-mini__risk-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.cif-mini__risk-fill--green { background: #22c55e; }
.cif-mini__risk-fill--orange { background: #f97316; }
.cif-mini__risk-fill--red { background: #ef4444; }
.cif-mini__risk-details {
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* ONRC unified section in mini widget */
.cif-mini__onrc {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.cif-mini__onrc h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.cif-mini__onrc table { width: 100%; }
.cif-mini__onrc-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cif-mini__onrc-badge--green  { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.cif-mini__onrc-badge--red    { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }
.cif-mini__onrc-badge--orange { background: rgba(245,158,11,0.18); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35); }
.cif-mini__onrc-badge--gray   { background: rgba(156,163,175,0.18); color: #9ca3af; border: 1px solid rgba(156,163,175,0.35); }

/* CTA */
.cif-mini__cta {
  margin-top: 12px;
  padding: 12px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  text-align: center;
}
.cif-mini__cta strong {
  display: block;
  font-size: 13px;
  color: white;
  margin-bottom: 8px;
}
.cif-mini__cta-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cif-mini__cta-btn:hover { opacity: 0.9; }

/* Financial table */
.cif-mini__fin-section { margin-bottom: 12px; }
.cif-mini__fin-section h4,
.cif-mini__charts h4,
.cif-mini__altman h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}
.cif-mini__fin-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.cif-mini__fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
.cif-mini__fin-table th {
  background: rgba(255,255,255,0.04);
  color: var(--gray-400);
  font-weight: 600;
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cif-mini__fin-table th:first-child { text-align: left; }
.cif-mini__fin-table td {
  padding: 5px 8px;
  color: var(--gray-300);
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cif-mini__fin-table td:first-child {
  text-align: left;
  color: var(--gray-400);
  font-weight: 500;
}
.cif-mini__fin-table .fin-positive { color: #22c55e; }
.cif-mini__fin-table .fin-negative { color: #ef4444; }

/* Mini charts */
.cif-mini__charts { margin-bottom: 12px; }
.cif-mini__chart-box {
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px;
}
.cif-mini__chart-box h5 {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  margin: 0 0 6px;
}
.cif-mini__chart-container {
  position: relative;
  height: 160px;
}

/* Mini Altman */
.cif-mini__altman { margin-bottom: 12px; }
.cif-mini__altman-cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cif-mini__altman-card {
  flex-shrink: 0;
  min-width: 100px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-align: center;
}
.cif-mini__altman-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-300);
  margin-bottom: 4px;
}
.cif-mini__altman-score {
  font-size: 20px;
  font-weight: 800;
}
.cif-mini__altman-zona {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}
.cif-mini__altman-factors {
  margin-top: 6px;
  font-size: 10px;
  color: var(--gray-500);
}
.cif-mini__altman-factor {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}

/* ===== COMPACT CIF BAR ===== */
.cif-compact {
  padding: 24px 0 20px;
  background: var(--gray-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 72px; /* navbar height */
}
.cif-compact__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.cif-compact__text h2 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}
.cif-compact__text p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.4;
}
.cif-compact__form {
  margin: 0;
}

/* ===== CIF PANEL (fullscreen overlay) ===== */
.cif-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--gray-950);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.cif-panel.open {
  display: flex;
}
.cif-panel__header {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}
.cif-panel__header-inner {
  display: flex;
  align-items: center;
}
.cif-panel__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gray-300);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.cif-panel__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.cif-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 60px;
}

/* ===== CIF SEARCH ===== */
.cif-search {
  padding: 80px 0;
  background: var(--gray-950);
}
.cif-search__inner {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.cif-search__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.cif-search__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cif-search__header h2 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.cif-search__header p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.5;
}
.cif-search__form {
  margin-bottom: 0;
}
.cif-search__input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s;
}
.cif-search__input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cif-search__input-icon {
  flex-shrink: 0;
  color: var(--gray-500);
}
.cif-search__input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 10px 8px;
  outline: none;
}
.cif-search__input::placeholder {
  color: var(--gray-500);
}
.cif-search__btn {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 8px;
}
.cif-search__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cif-search__btn-loading {
  display: inline-flex;
  align-items: center;
}
.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.cif-search__error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
}

/* CIF Dropdown (search history) */
.cif-search__dropdown {
  margin-top: 4px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
}
.cif-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.cif-dropdown__item:hover,
.cif-dropdown__item.highlighted {
  background: rgba(37, 99, 235, 0.15);
}
.cif-dropdown__cui {
  font-family: 'Inter', monospace;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  min-width: 80px;
}
.cif-dropdown__name {
  font-size: 13px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CIF PDF Button */
.cif-pdf-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.cif-pdf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* CIF Results */
.cif-search__results {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cif-search__results-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cif-search__results-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
}
.cif-search__results-cui {
  font-size: 14px;
  color: var(--gray-400);
  font-family: 'Inter', monospace;
  background: var(--gray-800);
  padding: 2px 10px;
  border-radius: 6px;
}
.cif-search__results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.cif-result-card {
  background: var(--gray-800);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.cif-result-card__label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.cif-result-card__value {
  font-size: 14px;
  font-weight: 600;
}

/* CIF Badges */
.cif-badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 13px; }
.cif-badge--green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.cif-badge--red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.cif-badge--orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.cif-badge--gray { background: rgba(156, 163, 175, 0.1); color: var(--gray-400); }

/* CIF Details Table */
.cif-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.cif-details-table td {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cif-details-table td:first-child {
  color: var(--gray-400);
  width: 160px;
  font-weight: 500;
}
.cif-details-table td:last-child {
  color: var(--gray-200);
}

/* CIF CTA */
.cif-search__results-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  margin-top: 8px;
}
.cif-cta__content {
  flex: 1;
}
.cif-cta__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.cif-cta__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.cif-cta__features span {
  font-size: 13px;
  color: var(--gray-300);
  white-space: nowrap;
}
.cif-search__results-cta .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* CIF Not Found */
.cif-search__not-found {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.cif-search__not-found svg { color: var(--gray-500); }
.cif-search__not-found p { font-size: 14px; }

/* CIF Final CTA (bottom of panel) */
.cif-final-cta {
  margin-top: 40px;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.06), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}
.cif-final-cta__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  margin-bottom: 16px;
}
.cif-final-cta__title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.cif-final-cta__subtitle {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 28px;
}
.cif-final-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  margin-bottom: 32px;
}
.cif-final-cta__item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.cif-final-cta__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.4;
}
.cif-final-cta__item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}
.cif-final-cta__item p {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.4;
  margin: 0;
}
.cif-final-cta__btn {
  font-size: 16px;
  padding: 14px 36px;
}

/* CIF Financials Section */
.cif-search__financials {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.3s ease;
}
.cif-financials__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cif-financials__header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}
.cif-financials__header h4 svg { color: #60a5fa; }
.cif-financials__loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400);
}

/* Risk Assessment */
.cif-risk {
  background: var(--gray-800);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.cif-risk__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cif-risk__badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.cif-risk__badge--success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.cif-risk__badge--warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.cif-risk__badge--danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.cif-risk__bar {
  flex: 1;
  height: 8px;
  background: var(--gray-700);
  border-radius: 4px;
  overflow: hidden;
}
.cif-risk__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}
.cif-risk__bar-fill--success { background: #22c55e; }
.cif-risk__bar-fill--warning { background: #f59e0b; }
.cif-risk__bar-fill--danger { background: #ef4444; }
.cif-risk__score {
  font-size: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
  min-width: 70px;
  text-align: right;
}
.cif-risk__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cif-risk__detail {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--gray-200);
}
.cif-risk__detail--success { background: rgba(34, 197, 94, 0.06); }
.cif-risk__detail--warning { background: rgba(245, 158, 11, 0.06); }
.cif-risk__detail--danger { background: rgba(239, 68, 68, 0.06); }

/* Financial Table */
.cif-financials__table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cif-financials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
.cif-financials-table th {
  background: var(--gray-800);
  color: var(--gray-300);
  font-weight: 600;
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.cif-financials-table th:first-child {
  text-align: left;
}
.cif-financials-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--gray-300);
  text-align: right;
  white-space: nowrap;
}
.cif-financials-table td.fin-label {
  text-align: left;
  color: var(--gray-400);
  font-weight: 500;
}
.cif-financials-table td.fin-positive { color: #4ade80; }
.cif-financials-table td.fin-negative { color: #f87171; }
.cif-financials-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* CIF Charts */
.cif-charts { margin-bottom: 24px; }
.cif-chart-card {
  background: var(--gray-800);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  overflow: hidden;
}
.cif-chart-card__header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cif-chart-card__header h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-200);
  margin: 0;
}
.cif-chart-card__body { padding: 16px 20px 20px; }
.cif-chart-container { position: relative; height: 280px; }
.cif-chart-container--lg { height: 350px; }
.cif-charts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cif-charts__grid .cif-chart-card { margin-bottom: 0; }

@media (max-width: 768px) {
  .cif-charts__grid { grid-template-columns: 1fr; }
  .cif-chart-container--lg { height: 280px; }
  .cif-chart-container { height: 240px; }
}

/* Altman Z-Score */
.cif-altman {
  margin-top: 24px;
  margin-bottom: 24px;
}
.cif-altman__header {
  margin-bottom: 16px;
}
.cif-altman__header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}
.cif-altman__header h4 svg { color: #a78bfa; }
.cif-altman__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.cif-altman__card {
  background: var(--gray-800);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid;
}
.cif-altman__year {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 6px;
}
.cif-altman__score {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.cif-altman__zona {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.cif-altman__factors {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cif-altman__factor {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
  padding: 2px 4px;
}
.cif-altman__factor span:first-child {
  font-weight: 600;
  color: var(--gray-300);
}
.cif-altman__legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cif-altman__legend-item {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.cif-altman__legend-item--success { background: rgba(34,197,94,0.1); color: #4ade80; }
.cif-altman__legend-item--warning { background: rgba(245,158,11,0.1); color: #fbbf24; }
.cif-altman__legend-item--danger { background: rgba(239,68,68,0.1); color: #f87171; }
.cif-altman__details {
  font-size: 13px;
  color: var(--gray-400);
}
.cif-altman__details summary {
  cursor: pointer;
  color: var(--gray-300);
  font-weight: 500;
}
.cif-altman__details summary:hover { color: white; }
.cif-altman__details p {
  margin-top: 8px;
  line-height: 1.6;
}
.cif-altman__details strong { color: var(--gray-200); }

/* ===== FEATURES ===== */
/* ===== EDITIONS (Web vs Desktop) ===== */
.editions {
  padding: 100px 0 80px;
  background: var(--gray-950);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.editions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.edition-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.edition-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.06);
}
.edition-card--desktop {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
}
.edition-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  margin-bottom: 20px;
}
.edition-card--desktop .edition-card__icon {
  background: rgba(96, 165, 250, 0.12);
}
.edition-card__title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.edition-card__desc {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 24px;
}
.edition-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.edition-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-300);
}
.edition-card__list li svg {
  flex-shrink: 0;
}
.editions__note {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .editions__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: var(--gray-950);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }

.feature-card--large {
  grid-column: span 2;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon--blue { background: rgba(37, 99, 235, 0.12); color: #60a5fa; }
.feature-card__icon--green { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.feature-card__icon--purple { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.feature-card__icon--orange { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.feature-card__icon--red { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.feature-card__icon--emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.feature-card__icon--teal { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; }
.feature-card__icon--indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.feature-card__icon--violet { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.feature-card__icon--cyan { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
.feature-card__icon--sky { background: rgba(14, 165, 233, 0.12); color: #38bdf8; }
.feature-card__icon--amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.feature-card__icon--rose { background: rgba(244, 63, 94, 0.12); color: #fb7185; }
.feature-card__icon--fuchsia { background: rgba(192, 38, 211, 0.12); color: #e879f9; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.feature-card__visual {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Upload animation */
.upload-animation {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  padding: 20px;
}
.upload-animation__file {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
  font-size: 14px;
  margin-bottom: 12px;
}
.upload-animation__progress {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.upload-animation__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 4px;
  animation: upload-progress 3s ease-in-out infinite;
}
@keyframes upload-progress {
  0% { width: 0%; }
  60% { width: 100%; }
  100% { width: 100%; }
}
.upload-animation__done {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  animation: upload-done 3s ease-in-out infinite;
}
@keyframes upload-done {
  0%, 55% { opacity: 0; }
  65%, 100% { opacity: 1; }
}

/* PDF preview */
.pdf-preview {
  position: relative;
  display: flex;
  justify-content: center;
}
.pdf-preview__page {
  width: 200px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.pdf-preview__header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.pdf-preview__logo {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
}
.pdf-preview__title-line {
  height: 8px;
  flex: 1;
  background: var(--gray-200);
  border-radius: 4px;
}
.pdf-preview__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.pdf-preview__bar {
  height: 6px;
  border-radius: 4px;
}
.pdf-preview__bar.green { background: var(--green); }
.pdf-preview__bar.orange { background: var(--orange); }
.pdf-preview__bar.blue { background: var(--primary); }
.pdf-preview__table-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pdf-preview__table-lines div {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
}
.pdf-preview__table-lines div:nth-child(2) { width: 85%; }
.pdf-preview__table-lines div:nth-child(3) { width: 70%; }
.pdf-preview__table-lines div:nth-child(4) { width: 90%; }
.pdf-preview__badge {
  position: absolute;
  bottom: -8px;
  right: calc(50% - 120px);
  background: #dc2626;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* D394 Preview */
.d394-preview {
  background: var(--gray-800);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
}
.d394-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.d394-preview__badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.d394-preview__meta {
  color: var(--gray-400);
  font-size: 12px;
}
.d394-preview__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.d394-preview__check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-200);
}
.d394-preview__check.ok { background: rgba(34, 197, 94, 0.1); }
.d394-preview__check.warn { background: rgba(245, 158, 11, 0.1); }
.d394-preview__check.error { background: rgba(239, 68, 68, 0.1); }
.d394-preview__tabs {
  display: flex;
  gap: 2px;
  background: var(--gray-900);
  border-radius: 8px;
  padding: 3px;
}
.d394-preview__tabs span {
  flex: 1;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--gray-400);
  cursor: default;
}
.d394-preview__tabs span.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

/* Bilant preview (feature card) */
.bilant-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
}

.bilant-preview__header {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.bilant-preview__badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.bilant-preview__badge--alt {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.bilant-preview__rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bilant-preview__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray-300);
}

.bilant-preview__row--child {
  padding-left: 28px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--gray-400);
}

.bilant-preview__row--whatif {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 500;
}

.bilant-preview__expand {
  font-size: 10px;
  color: var(--gray-500);
  width: 14px;
}

.bilant-preview__acct {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 600;
  color: var(--primary);
  font-size: 11px;
  min-width: 36px;
}

.bilant-preview__val {
  margin-left: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--gray-400);
}

/* Monitor partners preview */
.monitor-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.monitor-features__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
}
.monitor-features__item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
}
.monitor-features__item--highlight {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}
.monitor-features__item--highlight:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}
.monitor-features__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.monitor-features__item strong {
  display: block;
  font-size: 14px;
  color: #f1f5f9;
  margin-bottom: 2px;
}
.monitor-features__item small {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, var(--gray-950) 100%);
}

.steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}
.step__number {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}
.step__content h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.step__content p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
}
.step__icon {
  margin-left: auto;
  color: var(--gray-700);
  min-width: 48px;
}
.step__connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0.05));
  margin-left: 25px;
}

/* ===== CHECKS ===== */
.checks {
  padding: 120px 0;
  background: var(--gray-950);
}

.checks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.check-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}
.check-item:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.check-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-item__icon.blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.check-item__icon.indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.check-item__icon.purple { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.check-item__icon.green { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.check-item__icon.orange { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.check-item__icon.teal { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; }
.check-item__icon.red { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.check-item__icon.emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.check-item__icon.cyan { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
.check-item__icon.amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.check-item__icon.rose { background: rgba(244, 63, 94, 0.12); color: #fb7185; }
.check-item__icon.fuchsia { background: rgba(192, 38, 211, 0.12); color: #e879f9; }
.check-item__icon.sky { background: rgba(14, 165, 233, 0.12); color: #38bdf8; }
.check-item__icon.lime { background: rgba(132, 204, 22, 0.12); color: #a3e635; }
.check-item__icon.violet { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }

.check-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.check-item p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ===== PRICING ===== */
.pricing {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--gray-950), rgba(0,0,0,0.4));
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.pricing-card--featured {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.1);
  transform: scale(1.03);
}
.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
}

.pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: 24px; }
.pricing-card__header h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.pricing-card__desc {
  font-size: 14px;
  color: var(--gray-500);
}

.pricing-card__price {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-card__amount {
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.pricing-card__currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-400);
}
.pricing-card__period {
  font-size: 14px;
  color: var(--gray-500);
}

.pricing-card__savings {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}
.pricing-card__savings-badge {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}
.pricing-card__savings-detail {
  font-size: 12px;
  color: var(--gray-500);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-300);
}
.pricing-card__features .muted { color: var(--gray-600); }

/* ===== CTA ===== */
.cta { padding: 120px 0; }
.cta__inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta__inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
}
.cta__inner p {
  font-size: 17px;
  color: var(--gray-400);
  margin-bottom: 32px;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__logo {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.footer__brand p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 300px;
}
.footer__links h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.footer__links a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__links a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 24px;
}
.footer__bottom p {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}

/* ===== CALENDAR FISCAL SECTION ===== */
.calendar-fiscal {
  padding: 80px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .calendar-grid { grid-template-columns: 1fr; }
}
.calendar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.calendar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
}
.calendar-card--past {
  opacity: 0.5;
  border-color: rgba(239,68,68,0.15);
}
.calendar-card--urgent {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.04);
}
.calendar-card--future {
  border-color: rgba(34,197,94,0.15);
}
.calendar-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.calendar-card__day {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.calendar-card__month {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calendar-card__info {
  flex: 1;
  min-width: 0;
}
.calendar-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: white;
}
.calendar-card__desc {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.calendar-card__period {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}
.calendar-cta {
  text-align: center;
  margin-top: 32px;
}
.calendar-cta p {
  color: var(--gray-400);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
  .checks__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card:last-child { grid-column: span 2; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .navbar__links, .navbar__actions { display: none; }
  .navbar__mobile-toggle { display: flex; }
  .navbar__mobile-menu.open { display: flex; }
  /* Make navbar solid when mobile menu is open so hero text doesn't show through */
  .navbar:has(.navbar__mobile-menu.open) {
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .navbar__mobile-menu {
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    margin: 12px -24px -16px;
    padding: 16px 24px 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }

  .hero { padding: 60px 0 60px; min-height: auto; margin-top: 60px; }
  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 16px; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .hero__stat-divider { display: none; }
  .hero__cta { flex-direction: column; align-items: center; }

  .preview-window__content { flex-direction: column; }
  .preview-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 12px; }
  .preview-sidebar__item { white-space: nowrap; }

  .features__grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }

  .storage-grid { grid-template-columns: 1fr; }

  .checks__grid { grid-template-columns: 1fr; }

  .step { flex-direction: column; align-items: center; text-align: center; }
  .step__icon { display: none; }
  .step__connector { margin: 0 auto; }

  .pricing__grid { grid-template-columns: 1fr; }
  .pricing-card:last-child { grid-column: span 1; max-width: none; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }

  /* CIF Search responsive */
  .cif-widget-wrap { bottom: 16px; right: 16px; }
  .cif-fab { width: 50px; height: 50px; }
  .cif-mini { width: calc(100vw - 32px); max-width: 360px; }
  .cif-panel__close { font-size: 12px; padding: 6px 12px; }
  .cif-panel__body { padding: 20px 0 40px; }
  .cif-search__inner { padding: 24px; }
  .cif-search__header { flex-direction: column; }
  .cif-search__results-grid { grid-template-columns: repeat(2, 1fr); }
  .cif-search__results-cta { flex-direction: column; text-align: center; align-items: stretch; }
  .cif-search__results-cta .btn { align-self: center; }
  .cif-cta__features { justify-content: center; }
  .cif-final-cta__grid { grid-template-columns: 1fr; }
  .cif-final-cta { padding: 24px 20px; }
  .cif-final-cta__title { font-size: 18px; }
  .cif-details-table td:first-child { width: 120px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta__inner { padding: 48px 24px; }
}

/* ============================================================
   ONRC SEARCH SECTION
   ============================================================ */
.onrc-search {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  position: relative;
}
.onrc-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.onrc-tab {
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.onrc-tab:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.onrc-tab--active {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  border-color: transparent;
}
.onrc-tab--detalii {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.onrc-tab--detalii > span:not(.onrc-tab__close) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.onrc-tab__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 11px;
  margin-left: 4px;
  transition: background 0.15s;
}
.onrc-tab__close:hover { background: rgba(220,38,38,0.5); }
.onrc-panel { display: none; }
.onrc-panel--active { display: block; }

/* Firma details (in-tab) */
.firma-tab { color: #E2E8F0; }
.firma-tab__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #93C5FD;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 16px;
}
.firma-tab__back:hover { color: #fff; }
.firma-tab__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #94A3B8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.firma-tab__card.is-active { border-left-color: #22C55E; }
.firma-tab__card.is-negative { border-left-color: #EF4444; }
.firma-tab__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.firma-tab__header h2 { margin: 0 0 8px; color: #F1F5F9; font-size: 22px; }
.firma-tab__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #94A3B8;
  font-size: 13px;
}
.firma-tab__sub strong { color: #CBD5E1; }
.firma-tab__warn {
  margin: 14px 0 0;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.3);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.firma-tab__info {
  margin-top: 16px;
  font-size: 14px;
  color: #CBD5E1;
}
.firma-tab__info strong { color: #94A3B8; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.firma-tab__section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.firma-tab__section h3 {
  margin: 0 0 14px;
  color: #93C5FD;
  font-size: 16px;
  font-weight: 600;
}
.firma-tab__section .hint { color: #94A3B8; font-size: 12px; margin: -8px 0 12px; }
.firma-tab__table { width: 100%; border-collapse: collapse; font-size: 13px; color: #CBD5E1; }
.firma-tab__table th, .firma-tab__table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}
.firma-tab__table th {
  color: #94A3B8;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
  font-weight: 600;
}
.firma-tab__table tr:last-child td { border-bottom: none; }
.firma-tab__table .is-current { background: rgba(34,197,94,0.08); }
.firma-tab__table .is-current td { color: #F1F5F9; font-weight: 600; }
.firma-tab__current-tag {
  display: inline-block;
  background: #22C55E;
  color: #052E16;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: 700;
}
.firma-tab__caen-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.firma-tab__caen-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.firma-tab__caen-list li:last-child { border-bottom: none; }
.firma-tab__caen-pill {
  background: rgba(59,130,246,0.15);
  color: #93C5FD;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
}
.firma-tab__caen-den { color: #CBD5E1; font-size: 13px; }
.onrc-link-btn {
  background: none;
  border: none;
  color: #93C5FD;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.onrc-link-btn:hover { color: #BFDBFE; }
.firma-tab__anaf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.firma-tab__anaf-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.firma-tab__anaf-badge--green { background: rgba(34,197,94,0.15); color: #86EFAC; }
.firma-tab__anaf-badge--red { background: rgba(220,38,38,0.15); color: #FCA5A5; }
.firma-tab__anaf-badge--gray { background: rgba(148,163,184,0.15); color: #CBD5E1; }
.firma-tab__fin-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #CBD5E1; }
.firma-tab__fin-table th, .firma-tab__fin-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: right;
  white-space: nowrap;
}
.firma-tab__fin-table th { color: #94A3B8; font-size: 11px; text-transform: uppercase; }
.firma-tab__fin-table th:first-child, .firma-tab__fin-table td:first-child { text-align: left; color: #CBD5E1; font-weight: 500; }
.firma-tab__fin-wrap { overflow-x: auto; }
.firma-tab__risk { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.firma-tab__risk-badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.firma-tab__risk-badge--success { background: rgba(34,197,94,0.18); color: #86EFAC; }
.firma-tab__risk-badge--warning { background: rgba(245,158,11,0.18); color: #FCD34D; }
.firma-tab__risk-badge--danger { background: rgba(220,38,38,0.18); color: #FCA5A5; }
.firma-tab__risk-badge--gray { background: rgba(148,163,184,0.18); color: #CBD5E1; }
.firma-tab__risk-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; max-width: 240px; }
.firma-tab__risk-fill { height: 100%; transition: width .3s; }
.firma-tab__risk-fill--success { background: #22C55E; }
.firma-tab__risk-fill--warning { background: #F59E0B; }
.firma-tab__risk-fill--danger { background: #EF4444; }
.firma-tab__risk-fill--gray { background: #94A3B8; }
.firma-tab__risk-details { font-size: 13px; color: #CBD5E1; }
.firma-tab__risk-details > div { padding: 4px 0; }

.onrc-search-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 880px;
  margin: 0 auto 24px;
}
.onrc-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.onrc-search-type {
  background: #1E293B;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  min-width: 180px;
}
.onrc-search-input {
  flex: 1;
  min-width: 220px;
  background: #1E293B;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
}
.onrc-search-input::placeholder { color: #64748B; }
.onrc-search-input:focus, .onrc-search-type:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.onrc-hint { margin-top: 12px; color: #94A3B8; font-size: 13px; }
.onrc-hint code {
  background: rgba(255, 255, 255, 0.07);
  color: #93C5FD;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.onrc-error {
  max-width: 880px;
  margin: 0 auto 16px;
  background: rgba(220, 38, 38, 0.1);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}

.onrc-results {
  max-width: 1100px;
  margin: 0 auto;
}
.onrc-results-info {
  color: #94A3B8;
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
}
.onrc-table-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.onrc-table {
  width: 100%;
  border-collapse: collapse;
  color: #E2E8F0;
  font-size: 14px;
}
.onrc-table th {
  background: rgba(0, 0, 0, 0.25);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.onrc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}
.onrc-table tr:hover { background: rgba(255, 255, 255, 0.03); }
.onrc-table tr:last-child td { border-bottom: none; }
.onrc-table .denumire { color: #fff; font-weight: 600; }
.onrc-table .code-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  display: inline-block;
}
.onrc-table .code-pill--btn {
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: monospace;
}
.onrc-table .code-pill--btn:hover {
  background: #2563EB;
  color: #fff;
}
.state-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.state-badge--active   { background: rgba(34, 197, 94, 0.15); color: #86EFAC; }
.state-badge--negative { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }
.state-badge--neutral  { background: rgba(148, 163, 184, 0.15); color: #CBD5E1; }
.state-badge--transfer { background: rgba(234, 179, 8, 0.15); color: #FDE68A; }

.onrc-action-btn {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.onrc-action-btn:hover {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

.onrc-empty {
  text-align: center;
  color: #94A3B8;
  padding: 24px;
  font-size: 14px;
}

.onrc-adr-loading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 10px;
}
.onrc-adr-loading__spinner {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 3px solid rgba(147, 197, 253, 0.3);
  border-top-color: #93C5FD;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.onrc-adr-loading__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}
.onrc-adr-loading__text strong {
  color: #93C5FD;
  font-size: 14px;
}
.onrc-adr-loading__text span {
  color: #CBD5E1;
  font-size: 13px;
}

/* Modal */
.onrc-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.onrc-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.onrc-modal__content {
  position: relative;
  background: #fff;
  color: #1F2937;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.onrc-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #4B5563;
  z-index: 2;
}
.onrc-modal__close:hover { background: rgba(0, 0, 0, 0.12); }
.onrc-modal__loading { text-align: center; padding: 40px; color: #6B7280; }

.onrc-modal h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #111827;
}
.onrc-modal .modal-meta {
  color: #6B7280;
  font-size: 14px;
  margin: 0 0 20px;
}
.onrc-modal .modal-section {
  margin: 20px 0;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 10px;
  border-left: 3px solid #3B82F6;
}
.onrc-modal .modal-section h4 {
  margin: 0 0 10px;
  color: #1F2937;
  font-size: 15px;
}
.onrc-modal .modal-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed #E5E7EB;
}
.onrc-modal .modal-row:last-child { border-bottom: none; }
.onrc-modal .modal-row .lbl {
  color: #6B7280;
  font-weight: 500;
  min-width: 180px;
}
.onrc-modal .modal-row .val { color: #111827; flex: 1; }
.onrc-modal .anaf-vs-onrc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.onrc-modal .source-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px;
}
.onrc-modal .source-card h5 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.onrc-modal .caen-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.onrc-modal .caen-item {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  align-items: baseline;
}
.onrc-modal .caen-item:hover { background: #F3F4F6; }
.onrc-modal .caen-item .cod {
  background: #DBEAFE;
  color: #1D4ED8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}
.onrc-modal .caen-item .den {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: #1D4ED8;
  font-size: 13px;
}
.onrc-modal .caen-item .den:hover { text-decoration: underline; }
.onrc-modal .caen-note pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: #1F2937;
  margin: 0;
}
.onrc-modal .alert-warning {
  background: #FEF3C7;
  color: #92400E;
  border-left-color: #F59E0B;
}
.onrc-modal .alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border-left-color: #DC2626;
}

@media (max-width: 768px) {
  .onrc-search { padding: 50px 0 60px; }
  .onrc-search.onrc-search--page { padding-top: 90px; }
  .onrc-search-row { flex-direction: column; }
  .onrc-search-type, .onrc-search-input { width: 100%; min-width: 0; }

  /* Tabs: allow horizontal scroll instead of wrapping/overlap */
  .onrc-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 -16px 16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .onrc-tabs::-webkit-scrollbar { display: none; }
  .onrc-tab { flex-shrink: 0; font-size: 13px; padding: 8px 14px; }

  /* Table: scroll horizontally so all columns are reachable */
  .onrc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .onrc-table { font-size: 13px; min-width: 560px; }
  .onrc-table th, .onrc-table td { padding: 8px 10px; white-space: nowrap; }
  .onrc-table .denumire { white-space: normal; min-width: 140px; }
  .onrc-table .code-pill { white-space: nowrap; }

  .onrc-modal__content { padding: 20px; }
  .onrc-modal .modal-row { flex-direction: column; gap: 2px; }
  .onrc-modal .modal-row .lbl { min-width: 0; font-size: 12px; }
  .onrc-modal .anaf-vs-onrc { grid-template-columns: 1fr; }
}
