:root {
  --bg: #0b0d12;
  --surface: rgba(255, 255, 255, 0.08);
  --accent: #5ce1ff;
  --accent-2: #7c5cff;
  --success: #4ade80;
  --warning: #facc15;
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  --layout-max: 1200px;
  --layout-padding: 32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "SF Pro Display", system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top left, #1a2236, #0b0d12 65%);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(18px);
  z-index: 10;
}

.layout-shell {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--layout-padding);
}

.site-header .layout-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b0d12;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.primary,
.secondary,
.ghost {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  box-shadow: 0 20px 40px rgba(92, 225, 255, 0.25);
}

.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary:hover,
.secondary:hover,
.ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

main {
  padding: 40px 0 80px;
}

main .layout-shell {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 0;
}

.hero-content p {
  color: var(--muted);
  max-width: 540px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 8px 0 0;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card,
.price-card,
.security-card,
.search-form,
.prompt,
.results,
.price-card,
.access-grid > div,
.search-form,
.search {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.seo-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
}

.seo-content {
  display: grid;
  gap: 16px;
}

.seo-content p {
  color: var(--muted);
  max-width: 840px;
}

.seo-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  padding-left: 0;
}

.seo-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.hero-card h3 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.benefits-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.benefits-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.benefit-icon {
  font-size: 0.95rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

.step-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  padding-left: 18px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

.price {
  font-size: 2.6rem;
  font-weight: 700;
}

.price-card {
  display: grid;
  gap: 12px;
  text-align: center;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.search-header {
  text-align: center;
}

.search-form {
  margin: 24px 0 0;
  width: 100%;
  max-width: 100%;
  padding: clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  animation: fade-in 0.4s ease both;
  flex: 1 1 200px;
  min-width: 160px;
  justify-content: center;
  text-align: center;
}

.stepper-step[data-state="active"] {
  border-color: rgba(92, 225, 255, 0.6);
  background: rgba(92, 225, 255, 0.12);
  color: #f5fcff;
}

.stepper-step[data-state="completed"] {
  border-color: rgba(74, 222, 128, 0.6);
  background: rgba(74, 222, 128, 0.12);
  color: #f0fff6;
}

.stepper-step[data-state="pending"] {
  color: var(--muted);
  opacity: 0.7;
}

.stepper-indicator {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: transparent;
  transition: background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.stepper-step[data-state="active"] .stepper-indicator {
  background: var(--accent);
}

.stepper-step[data-state="completed"] .stepper-indicator {
  background: var(--success);
  color: #062411;
}

.stepper-step[data-state="completed"] .stepper-indicator::after {
  content: "✓";
  font-size: 0.65rem;
}

.stepper-title {
  font-weight: 700;
  margin: 0;
}

.stepper-status.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cv-validation {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.cv-validation.is-visible {
  display: grid;
  gap: 6px;
}

.cv-validation--error {
  border-color: rgba(255, 112, 112, 0.45);
  background: rgba(255, 112, 112, 0.08);
  color: #ffd0d0;
}

.cv-validation--success {
  border-color: rgba(92, 225, 255, 0.4);
  background: rgba(92, 225, 255, 0.08);
  color: #d2f7ff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-input-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  width: min(100%, 520px);
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

select option {
  color: #0b0d12;
  background: #ffffff;
}

select[multiple] {
  min-height: 110px;
}

.note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.search-form .form-group,
.search-form button.primary {
  width: 100%;
  max-width: 100%;
}

.search-form button.primary {
  justify-self: stretch;
}

.helper {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.validation-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.validation-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-pill {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill--ok {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.status-pill--error {
  background: rgba(255, 124, 124, 0.2);
  color: #ff7c7c;
}

.status-pill--loading {
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
}

.validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.validation-grid .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.validation-grid .value {
  font-weight: 600;
}

.validation-suggestions h4 {
  margin-bottom: 12px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.suggestion-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-card--warning {
  border-color: rgba(255, 124, 124, 0.5);
}

.suggestion-card--info {
  border-color: rgba(92, 225, 255, 0.4);
}

.suggestion-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.suggestion-detail {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.suggestion-example {
  font-size: 0.85rem;
  color: rgba(245, 247, 255, 0.8);
}

.suggestions-empty {
  font-size: 0.9rem;
  color: var(--muted);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.guarded-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1 1 220px;
}

.guarded-button .primary {
  width: 100%;
}

.action-buttons > button,
.action-buttons > .guarded-button {
  flex: 1 1 220px;
}

.action-buttons > button {
  width: 100%;
}

.guarded-button.is-disabled .primary {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

.guarded-overlay {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.guarded-button.is-disabled .guarded-overlay {
  pointer-events: auto;
  cursor: not-allowed;
}

.guarded-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 12, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.guarded-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 640px) {
  :root {
    --layout-max: 100%;
    --layout-padding: 20px;
  }

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

  .hero-content {
    order: 1;
  }

  .hero-card {
    order: 2;
    padding: 24px;
  }

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

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form .form-group,
  .search-form button.primary {
    max-width: none;
  }

  .stepper {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .stepper-step {
    flex: 0 0 auto;
  }

  .file-input-wrapper input[type="file"] {
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --layout-max: 900px;
    --layout-padding: 28px;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  :root {
    --layout-max: 1200px;
    --layout-padding: 36px;
  }
}

@media (min-width: 1441px) {
  :root {
    --layout-max: 1500px;
    --layout-padding: 48px;
  }
}

.prompt {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(92, 225, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.prompt p {
  margin-top: 12px;
  color: var(--muted);
  white-space: pre-wrap;
}

.results {
  display: grid;
  gap: 20px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-header p {
  color: var(--muted);
}

.results-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.results-search {
  display: grid;
  gap: 8px;
  min-width: min(420px, 100%);
}

.results-search input {
  width: 100%;
}

.results-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.results-table-wrapper {
  display: grid;
  gap: 16px;
  background: rgba(11, 13, 18, 0.65);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.results-loading {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 0;
  border: none;
  color: var(--text);
  text-align: center;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(6px);
  z-index: 30;
}

.results-loading.is-visible {
  display: flex;
}

.results-loading-tip {
  display: grid;
  gap: 6px;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(92, 225, 255, 0.78);
}

.results-loading-tip__icon {
  font-size: 1rem;
}

.results-loading-tip__line {
  display: block;
  color: var(--muted);
}

.spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid rgba(245, 247, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-list {
  display: grid;
  gap: 16px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(7, 9, 14, 0.6);
}

.results-table th,
.results-table td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.results-table th.match-column,
.results-table td.match-column {
  text-align: right;
}

.results-table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(92, 225, 255, 0.1);
}

.results-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.results-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.results-table td a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.cell-truncate {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-truncate--one {
  -webkit-line-clamp: 1;
}

.cell-truncate--two {
  -webkit-line-clamp: 2;
}

.cell-truncate--three {
  -webkit-line-clamp: 3;
}

.link-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-report:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.results-table td ul {
  margin: 0;
  padding-left: 18px;
}

.results-table td li {
  margin-bottom: 6px;
}

.results-empty {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.site-footer .layout-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.legal {
  width: min(100%, 1100px);
  margin: 80px auto;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.legal ul {
  margin-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.legal a {
  color: var(--accent);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text);
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(8px);
  padding: 24px;
  z-index: 40;
}

.modal.is-visible {
  display: flex;
}

.modal-card {
  width: min(820px, 94vw);
  max-height: 90vh;
  background: rgba(15, 18, 28, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.modal-card--compact {
  width: min(520px, 92vw);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-body {
  padding: 16px 24px;
  overflow: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer--center {
  justify-content: center;
}

.modal-message {
  color: rgba(245, 247, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.modal-message--error {
  color: #ff9c9c;
  margin-top: 10px;
  display: none;
}

.modal-message--error.is-visible {
  display: block;
}

.payment-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 12px;
}

.payment-panel .modal-message--error {
  color: #b91c1c;
}

.payment-status {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.85);
  display: grid;
  gap: 6px;
}

.payment-status__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.payment-status__message {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
  display: none;
}

.payment-status[data-status="processing"] {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(254, 243, 199, 0.7);
}

.payment-status[data-status="success"] {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(209, 250, 229, 0.8);
}

.payment-status[data-status="error"] {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(254, 226, 226, 0.8);
}

.payment-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.payment-buttons {
  margin-top: 16px;
  min-height: 40px;
  display: flex;
  justify-content: center;
}

.cv-preview {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  color: #e9ecff;
  font-size: 0.98rem;
  line-height: 1.6;
}

.cv-preview h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 8px;
}

.cv-preview ul {
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.cv-preview p {
  color: rgba(245, 247, 255, 0.88);
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .site-footer .layout-shell {
    flex-direction: column;
    gap: 16px;
  }
}
