/* ============================================================
   CV Reviewer AI v3 — style.css
   Premium dark-mode glassmorphism design system
   ============================================================ */

/* ── Google Fonts import (handled in HTML) ─────────────────── */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --bg-base:            #f8fafc;
  --bg-surface:         #f1f5f9;
  --bg-card:            #ffffff;
  --bg-card-hover:      #e2e8f0;
  --bg-glass:           rgba(255, 255, 255, 0.7);
  --bg-glass-border:    rgba(10, 37, 64, 0.1);

  --accent-primary:     #10B981;
  --accent-primary-dim: rgba(16, 185, 129, 0.12);
  --accent-secondary:   #059669;
  --accent-gradient:    linear-gradient(135deg, #10B981 0%, #059669 100%);
  --accent-gradient-2:  linear-gradient(135deg, #10B981 0%, #0A2540 100%);

  --text-primary:       #0A2540;
  --text-secondary:     #64748B;
  --text-muted:         #94a3b8;
  --text-inverse:       #ffffff;

  --status-green:       #22c55e;
  --status-green-bg:    rgba(34, 197, 94, 0.12);
  --status-yellow:      #f59e0b;
  --status-yellow-bg:   rgba(245, 158, 11, 0.12);
  --status-red:         #ef4444;
  --status-red-bg:      rgba(239, 68, 68, 0.12);

  --border-subtle:      rgba(255, 255, 255, 0.06);
  --border-accent:      rgba(108, 99, 255, 0.3);

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.2);
  --shadow-glow-green: 0 0 30px rgba(34, 197, 94, 0.15);

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Utility ───────────────────────────────────────────────── */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Background Orbs ───────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-float 20s ease-in-out infinite alternate;
}

.bg-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12), transparent 70%);
  top: -100px;
  left: -100px;
  animation-duration: 22s;
}

.bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08), transparent 70%);
  top: 30%;
  right: -80px;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.bg-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.07), transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-duration: 25s;
}

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.05); }
}

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  background: var(--bg-glass);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--accent-primary));
}

.logo-icon-img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero-section {
  text-align: center;
  animation: fade-up 0.6s ease both;
}

.hero-title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.pill {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-base);
  cursor: default;
}

.pill:hover {
  background: var(--accent-primary-dim);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ── UPLOAD SECTION ────────────────────────────────────────── */
.upload-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fade-up 0.6s ease 0.1s both;
}

/* ── ERROR BANNER ──────────────────────────────────────────── */
.error-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: var(--text-sm);
  animation: slide-down 0.3s ease;
}

.error-banner[hidden] { display: none; }

.error-icon { font-size: 1.1rem; flex-shrink: 0; }

.error-banner span:nth-child(2) { flex: 1; }

.error-close {
  background: none;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  font-size: var(--text-sm);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.error-close:hover { background: rgba(239, 68, 68, 0.2); }

/* ── DROP ZONE ─────────────────────────────────────────────── */
.drop-zone {
  position: relative;
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.drop-zone:hover::before,
.drop-zone:focus-visible::before {
  opacity: 0.04;
}

.drop-zone--dragover {
  border-color: var(--accent-secondary) !important;
  box-shadow: 0 0 50px rgba(0, 212, 170, 0.25) !important;
  transform: scale(1.01) !important;
}

.drop-zone--dragover::before {
  opacity: 0.06 !important;
  background: linear-gradient(135deg, #00d4aa, #6c63ff) !important;
}

.drop-zone--has-file {
  border-style: solid;
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-glow-green);
}

.drop-zone:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.drop-zone__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.drop-zone__icon {
  width: 72px;
  height: 72px;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-base);
}

.drop-zone:hover .drop-zone__icon,
.drop-zone--dragover .drop-zone__icon {
  transform: translateY(-4px) scale(1.05);
}

.drop-zone__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.drop-zone__subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.drop-zone__formats {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.drop-zone__formats strong {
  color: var(--accent-secondary);
}

/* ── File Info (after selection) ────────────────────────────── */
.file-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-full);
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-info[hidden] { display: none; }

.file-info__icon { font-size: 1.1rem; }

.file-info__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-secondary);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-left: var(--space-xs);
}

.file-info__remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-red);
}

/* ── ANALYZE BUTTON ────────────────────────────────────────── */
.analyze-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
  letter-spacing: -0.01em;
}

.analyze-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.analyze-btn:hover:not(:disabled)::before { opacity: 1; }

.analyze-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.4);
}

.analyze-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.analyze-btn:disabled {
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-label, .btn-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-label[hidden], .btn-loading[hidden] { display: none; }

.btn-icon { font-size: 1.2rem; }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── RESULTS SECTION ───────────────────────────────────────── */
.results-section {
  animation: fade-up 0.5s ease both;
}

.results-section[hidden] { display: none; }

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.results-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.reset-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.reset-btn:hover {
  background: var(--accent-primary-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.2);
}

/* ── Skeleton Loader ───────────────────────────────────────── */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.skeleton-container[hidden] { display: none; }

.skeleton-line {
  height: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card-hover) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line--wide  { width: 60%; }
.skeleton-line--med   { width: 40%; }
.skeleton-line--full  { width: 100%; }

/* ── Rapor Output ──────────────────────────────────────────── */
.rapor-output {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  line-height: 1.7;
  overflow-x: auto;
}

/* Markdown typography inside rapor */
.rapor-output h1,
.rapor-output h2,
.rapor-output h3 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-xl) 0 var(--space-md);
  line-height: 1.3;
}

.rapor-output h1 { font-size: var(--text-2xl); }
.rapor-output h2 { font-size: var(--text-xl); color: var(--accent-primary); }
.rapor-output h3 { font-size: var(--text-lg); }

.rapor-output p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.rapor-output strong { color: var(--text-primary); }

.rapor-output ul,
.rapor-output ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.rapor-output li {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.rapor-output li::marker {
  color: var(--accent-primary);
}

/* Styled markdown tables — matches both default marked output (<table>) and .rapor-table */
.rapor-output table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.rapor-output th {
  background: rgba(108, 99, 255, 0.12);
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-accent);
  white-space: nowrap;
}

.rapor-output td {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.rapor-output tr:last-child td {
  border-bottom: none;
}

.rapor-output tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.rapor-output tr:hover td {
  background: rgba(108, 99, 255, 0.05);
  transition: background var(--transition-fast);
}

/* Score emoji alignment */
.rapor-output td:last-child,
.rapor-output th:last-child {
  text-align: center;
}

.rapor-output td:nth-child(2),
.rapor-output th:nth-child(2) {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.rapor-output td:nth-child(3),
.rapor-output th:nth-child(3) {
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
}

/* Horizontal rule */
.rapor-output hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-xl) 0;
}

/* Code blocks */
.rapor-output code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  color: var(--accent-secondary);
}

/* ══════════════════════════════════════════════════════════════ */
/* ── GREGET HERO SCORE CARD ──────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════ */

.greget-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #13172b 0%, #0c101c 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: var(--space-2xl);
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 45px -10px rgba(108, 99, 255, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  animation: pop-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Ambient glow mesh behind card */
.greget-card__glow-mesh {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.3) 0%,
    rgba(6, 182, 212, 0.15) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  border-radius: 50%;
}

.greget-card__header {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
}

.greget-card__badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.greget-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
}

.greget-pill--target {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
}

.greget-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

.greget-pill--meta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.greget-card__role-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.greget-card__role-desc {
  font-size: var(--text-sm);
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  max-width: 650px;
}

/* ── Dual Power Metric Grid ── */
.greget-card__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.greget-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.greget-tile:hover {
  transform: translateY(-2px);
}

.greget-tile--green {
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
.greget-tile--green:hover {
  box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.25);
}

.greget-tile--yellow {
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(245, 158, 11, 0.35);
}
.greget-tile--yellow:hover {
  box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.25);
}

.greget-tile--red {
  background: linear-gradient(150deg, rgba(239, 68, 68, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(239, 68, 68, 0.35);
}
.greget-tile--red:hover {
  box-shadow: 0 12px 30px -8px rgba(239, 68, 68, 0.25);
}

.greget-tile__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.greget-tile__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.greget-tile__header-text {
  display: flex;
  flex-direction: column;
}

.greget-tile__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.greget-tile__sub {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.2;
}

.greget-tile__score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.greget-tile__num-wrap {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.greget-num {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.greget-denom {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 4px;
}

.greget-tile--green .greget-num {
  color: #34d399;
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

.greget-tile--yellow .greget-num {
  color: #fbbf24;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
}

.greget-tile--red .greget-num {
  color: #f87171;
  text-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
}

.greget-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.greget-badge--green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.greget-badge--yellow {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.greget-badge--red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Progress bar inside tile */
.greget-progress {
  width: 100%;
}

.greget-progress__track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.greget-progress__fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.greget-progress__fill--green {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.greget-progress__fill--yellow {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.greget-progress__fill--red {
  background: linear-gradient(90deg, #dc2626, #f87171);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.greget-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748b;
}

/* ── Executive Footer Strip ── */
.greget-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  backdrop-filter: blur(6px);
}

.greget-card__footer-icon {
  font-size: 1.25rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.greget-card__footer-content {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.greget-card__footer-content strong {
  color: #ffffff;
}

/* ── Enhanced Section Headings in Rapor ── */
.rapor-output h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .greget-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .greget-card__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .greget-tile {
    padding: 18px;
  }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-accent {
  color: var(--accent-primary);
  font-weight: 600;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .main-content {
    padding: var(--space-2xl) var(--space-md);
    gap: var(--space-2xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .drop-zone {
    padding: var(--space-2xl) var(--space-md);
  }

  .drop-zone__icon {
    width: 56px;
    height: 56px;
  }

  .rapor-output {
    padding: var(--space-lg);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Guest Checkout & Invoice Styles ───────────────────────── */

/* Checkout Options Card */
.checkout-options {
  width: 100%;
  max-width: 580px;
  margin: var(--space-lg) auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  animation: fade-up 0.3s ease;
}

.checkout-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.checkout-price-tag {
  display: inline-block;
  background: var(--accent-primary-dim);
  border: 1px solid var(--border-accent);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.checkout-price-tag strong {
  color: #ffffff;
  font-size: var(--text-base);
}

.checkout-sub {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

.channel-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.channel-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.channel-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.channel-option:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.channel-option--active {
  border-color: var(--accent-primary) !important;
  background: rgba(108, 99, 255, 0.08) !important;
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.channel-icon {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.channel-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.channel-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.contact-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Modal Popup */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.order-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.order-modal__content {
  position: relative;
  z-index: 1000;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.25s ease;
}

.order-modal__badge {
  display: inline-block;
  background: var(--status-green-bg);
  color: var(--status-green);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.order-modal__title {
  color: var(--text-primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.order-modal__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--text-base);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-wa:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-invoice {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: var(--text-base);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-invoice:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.modal-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.modal-close-btn {
  margin-top: var(--space-lg);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  text-decoration: underline;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* ── Invoice Page Styles ─────────────────────────────────────── */
.invoice-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.invoice-loading {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--text-secondary);
}

.invoice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
}

.invoice-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.invoice-subtitle {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.invoice-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge--pending {
  background: var(--status-yellow-bg);
  color: var(--status-yellow);
}
.status-badge--pending .status-dot {
  background: var(--status-yellow);
}

.status-badge--processing {
  background: rgba(108, 99, 255, 0.15);
  color: #a78bfa;
}
.status-badge--processing .status-dot {
  background: #a78bfa;
  animation: spin 1s linear infinite;
}

.status-badge--completed {
  background: var(--status-green-bg);
  color: var(--status-green);
}
.status-badge--completed .status-dot {
  background: var(--status-green);
}

.status-badge--failed {
  background: var(--status-red-bg);
  color: var(--status-red);
}
.status-badge--failed .status-dot {
  background: var(--status-red);
}

.invoice-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.invoice-label {
  color: var(--text-muted);
}

.invoice-value {
  color: var(--text-primary);
  font-weight: 500;
}

.invoice-row--total {
  border-top: 1px dashed var(--border-accent);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.invoice-total {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent-secondary);
}

.btn-pay-now {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: var(--text-lg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-pay-now:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.payment-action-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.processing-box {
  text-align: center;
  padding: var(--space-xl) 0;
}

.processing-box h3 {
  color: var(--text-primary);
  margin: var(--space-md) 0 var(--space-xs);
}

.processing-box p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 480px;
  margin: 0 auto;
}

.results-actions-bar {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.btn-print, .btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.btn-print:hover, .btn-copy:hover {
  background: var(--bg-card-hover);
}

/* ── Print Media Query (@media print) ────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .site-header,
  .site-footer,
  .results-actions-bar,
  .invoice-card,
  .bg-orb,
  #payment-action-box {
    display: none !important;
  }

  .invoice-container, .main-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .rapor-output {
    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  th, td {
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
  }

  th {
    background-color: #f3f4f6 !important;
  }
}

/* ── QRIS Modal Styles ── */
.qris-container {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.qris-instruction {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.qris-amount-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.qris-currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.qris-account-name {
  font-size: var(--text-md);
  margin-bottom: 1rem;
}

.qris-image-wrapper {
  background: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 1rem;
}

.qris-image {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
}

.qris-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.invoice-label {
  color: var(--text-muted);
}

.invoice-value {
  color: var(--text-primary);
  font-weight: 500;
}

.invoice-row--total {
  border-top: 1px dashed var(--border-accent);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.invoice-total {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent-secondary);
}

.btn-pay-now {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: var(--text-lg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-pay-now:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.payment-action-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.processing-box {
  text-align: center;
  padding: var(--space-xl) 0;
}

.processing-box h3 {
  color: var(--text-primary);
  margin: var(--space-md) 0 var(--space-xs);
}

.processing-box p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 480px;
  margin: 0 auto;
}

.results-actions-bar {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.btn-print, .btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.btn-print:hover, .btn-copy:hover {
  background: var(--bg-card-hover);
}

/* ── Print Media Query (@media print) ────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .site-header,
  .site-footer,
  .results-actions-bar,
  .invoice-card,
  .bg-orb,
  #payment-action-box {
    display: none !important;
  }

  .invoice-container, .main-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .rapor-output {
    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  th, td {
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
  }

  th {
    background-color: #f3f4f6 !important;
  }
}

/* ── QRIS Modal Styles ── */
.qris-container {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.qris-instruction {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.qris-amount-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.qris-currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.qris-account-name {
  font-size: var(--text-md);
  margin-bottom: 1rem;
}

.qris-image-wrapper {
  background: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 1rem;
}

.qris-image {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
}

.qris-timer {
  font-size: var(--text-sm);
  color: var(--status-red);
  margin-bottom: 1rem;
}

.qris-email-instruction {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── QRIS Confirm Form Styles ── */
.qris-confirm-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  text-align: left;
}

.qris-proof-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.qris-proof-input {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  transition: border-color var(--transition-fast);
}

.qris-proof-input:hover, .qris-proof-input:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.qris-confirm-btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid var(--status-green);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qris-confirm-btn:hover {
  background: var(--status-green);
  color: #fff;
}

.qris-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qris-success-msg {
  color: var(--status-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── CV Preview Link & Modal ────────────────────────────────── */
.invoice-file-clickable {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  margin: -4px -10px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: var(--accent-primary);
  user-select: none;
}

.invoice-file-clickable:hover,
.invoice-file-clickable:focus-visible {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
  outline: none;
}

.invoice-file-clickable .file-preview-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(108, 99, 255, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
  transition: all 0.2s ease;
}

.invoice-file-clickable:hover .file-preview-tag {
  background: var(--accent-primary);
  color: #ffffff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.preview-modal-card {
  position: relative;
  width: 92vw;
  max-width: 900px;
  height: 85vh;
  max-height: 850px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(108, 99, 255, 0.15);
  overflow: hidden;
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
}

.preview-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-modal-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-newtab {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-newtab:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--text-primary);
  background: var(--status-red-bg);
  border-color: var(--status-red);
}

.preview-modal-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #11141c;
  display: flex;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: var(--text-sm);
  z-index: 2;
}

/* ============================================================
   Public Share Widget & Viral Share Page Styles
   ============================================================ */

/* ── Toast Notification ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.4);
  background: #ffffff;
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.4);
}

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

/* ── Share Widget on Invoice Page ────────────────────────────── */
.share-widget-card {
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 37, 64, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.share-widget-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-md);
}

.share-prompt-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.share-prompt-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  flex: 1;
  min-width: 260px;
}

.share-prompt-icon {
  font-size: 2rem;
  line-height: 1;
  background: var(--accent-primary-dim);
  padding: 10px;
  border-radius: var(--radius-md);
}

.share-prompt-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.share-prompt-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.share-privacy-note {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.btn-share-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-share-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-share-create:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* State 2: Active Share Box */
.share-active-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.share-active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.share-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-secondary);
}

.status-dot--active {
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
}

.btn-share-revoke {
  background: none;
  border: none;
  color: var(--status-red);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.btn-share-revoke:hover {
  opacity: 0.8;
}

.share-link-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.share-input-wrapper {
  flex: 1;
  min-width: 220px;
}

.share-link-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: monospace;
}

.share-link-input:focus {
  outline: 2px solid var(--accent-primary);
}

.btn-copy-link, .btn-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-copy-link:hover, .btn-open-link:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.share-social-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: var(--space-xs);
}

.share-social-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.social-share-btn--wa:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.social-share-btn--linkedin:hover {
  background: #0077B5;
  color: #ffffff;
  border-color: #0077B5;
}

.social-share-btn--twitter:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* ── Public Share Page Specifics ─────────────────────────────── */
.header-share-cta .btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform var(--transition-fast);
}

.header-share-cta .btn-header-cta:hover {
  transform: translateY(-2px);
}

.share-hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-accent);
  text-align: center;
}

.share-hero-badge-row {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.badge-privacy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.share-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.share-hero-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--space-lg) auto;
  line-height: 1.6;
}

.target-position-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.target-label {
  color: var(--text-secondary);
}

.target-value {
  color: var(--accent-secondary);
  font-weight: 700;
}

.score-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  max-width: 520px;
  margin: var(--space-lg) auto 0 auto;
}

.score-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.score-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.score-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.score-card-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 10px;
}

.score-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.score-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.score-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.score-grade-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.score-status-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.share-privacy-guarantee {
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Share Rapor Container & Header ──────────────────────────── */
.share-rapor-container {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-accent);
  margin-bottom: var(--space-xl);
}

.rapor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-accent);
}

.rapor-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-copy-sm {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.btn-copy-sm:hover {
  background: var(--bg-card-hover);
}

/* ── Visitor Share Box ───────────────────────────────────────── */
.visitor-share-card {
  background: var(--bg-surface);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.visitor-share-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.visitor-share-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ── Viral Conversion Card ───────────────────────────────────── */
.viral-conversion-card {
  background: linear-gradient(135deg, #0A2540 0%, #0F375E 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-2xl);
}

.viral-conversion-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.conversion-card-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.conversion-card-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: #ffffff;
}

.conversion-card-desc {
  font-size: var(--text-md);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto var(--space-xl) auto;
  line-height: 1.6;
}

.conversion-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  text-align: left;
  margin-bottom: var(--space-xl);
}

.conv-feature-item {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.conv-feature-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.conv-feature-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.conv-feature-item p {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.conversion-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.btn-primary-viral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary-viral:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.55);
}

.btn-primary-viral--large {
  font-size: 1.15rem;
  padding: 18px 44px;
}

.conversion-guarantee-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* ── Sticky Floating CTA Bar ─────────────────────────────────── */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 37, 64, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  animation: slideUpFloating 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFloating {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.floating-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.floating-cta-text {
  display: flex;
  flex-direction: column;
}

.floating-cta-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}

.floating-cta-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-floating-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.btn-floating-cta:hover {
  transform: translateY(-2px);
}

/* ── Share Error Card (Private / Not Found) ──────────────────── */
.share-error-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 2rem auto;
}

.share-error-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

.share-error-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.share-error-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.share-error-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .share-prompt-box {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-share-create {
    justify-content: center;
    width: 100%;
  }
  .share-link-row {
    flex-direction: column;
  }
  .btn-copy-link, .btn-open-link {
    justify-content: center;
    width: 100%;
  }
  .floating-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-floating-cta {
    justify-content: center;
  }
}

/* ============================================================
   SEO Content Sections (Homepage Indexing & User Value)
   ============================================================ */
.seo-section {
  max-width: 960px;
  margin: var(--space-3xl) auto 0 auto;
  padding: 0 var(--space-md);
}

.seo-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.seo-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: var(--accent-primary-dim);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.seo-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.seo-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── 3 Steps Grid ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.08);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(10, 37, 64, 0.06);
  line-height: 1;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Benchmark Score Grid ── */
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.benchmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.benchmark-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benchmark-card--excellent {
  border-top: 4px solid #10b981;
}

.benchmark-card--good {
  border-top: 4px solid #3b82f6;
}

.benchmark-card--fair {
  border-top: 4px solid #f59e0b;
}

.benchmark-card--needs {
  border-top: 4px solid #ef4444;
}

.benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.benchmark-score-tag {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.benchmark-card--excellent .benchmark-score-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.benchmark-card--good .benchmark-score-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.benchmark-card--fair .benchmark-score-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.benchmark-card--needs .benchmark-score-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.benchmark-tier-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.benchmark-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.benchmark-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Dual Rubric Grid ── */
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.rubric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast);
}

.rubric-card--ats {
  border-top: 4px solid #3b82f6;
}

.rubric-card--creative {
  border-top: 4px solid #10b981;
}

.rubric-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.rubric-icon {
  font-size: 2.2rem;
}

.rubric-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.rubric-track-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rubric-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.rubric-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rubric-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.rubric-checklist li span {
  color: var(--accent-primary);
  font-weight: 800;
}

/* ── Tips Grid ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.tip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-fast);
}

.tip-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card);
  border-color: rgba(16, 185, 129, 0.2);
}

.tip-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.tip-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tip-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── FAQ Accordion ── */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-secondary);
}

.faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px dashed rgba(10, 37, 64, 0.08);
  margin-top: 4px;
  padding-top: 14px;
}

/* ── Keyword Breadcrumb Hub ── */
.seo-keyword-hub {
  max-width: 960px;
  margin: var(--space-3xl) auto var(--space-xl) auto;
  padding: 0 var(--space-md);
}

.keyword-hub-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.keyword-hub-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.keyword-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.keyword-tag {
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(10, 37, 64, 0.08);
  transition: all var(--transition-fast);
}

.keyword-tag:hover {
  background: var(--accent-primary-dim);
  color: var(--accent-secondary);
  border-color: var(--accent-primary);
}

/* ============================================================
   Revamped Card Score Showcase (Share Page)
   ============================================================ */
.score-showcase-container {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.score-showcase-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--score-theme-color, #38bdf8);
}

.share-header-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 8px;
}

.share-target-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.share-target-role-pill strong {
  color: var(--accent-secondary);
}

/* ── Centered Skor Total (Core Feature) ── */
.total-score-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-md) auto var(--space-lg) auto;
  text-align: center;
}

.total-score-label {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.total-score-gauge-wrap {
  position: relative;
  width: 175px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

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

.total-gauge-fill {
  stroke: #38bdf8;
  stroke-width: 12;
  stroke-dasharray: 440;
  stroke-dashoffset: 70;
  transition: stroke-dashoffset 1s ease-out, stroke 0.3s ease;
}

.total-score-number {
  position: absolute;
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1.5px;
  transition: color 0.3s ease;
}

/* ── Sub-scores Horizontal Breakdown ── */
.sub-scores-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-md) auto var(--space-xl) auto;
  max-width: 680px;
}

.sub-score-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}

.sub-score-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.sub-score-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sub-score-equal {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sub-score-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.sub-score-num {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

/* ── Conclusion Text Box (Badge and Message Inline) ── */
.score-conclusion-card {
  max-width: 680px;
  margin: 0 auto var(--space-xl) auto;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.conclusion-tier-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.2);
  color: #0284c7;
  white-space: nowrap;
}

.conclusion-message {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

/* ── Dual Gauge Score Cards ── */
.score-meters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.score-meter-card {
  background: var(--bg-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.score-meter-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.meter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.circular-gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-md) auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gauge-bg-circle {
  fill: none;
  stroke: var(--bg-surface);
  stroke-width: 10;
}

.gauge-fill-circle {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s ease-out;
}

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

.gauge-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.gauge-max {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.meter-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.meter-grade-badge {
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.meter-status-tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.meter-status-tag--green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.meter-status-tag--yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.meter-status-tag--red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

/* ── Rubric Breakdown Bars ── */
.score-breakdown-section {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.breakdown-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breakdown-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.breakdown-score-badge {
  color: var(--accent-secondary);
  font-weight: 700;
}

.breakdown-bar-track {
  height: 8px;
  background: rgba(10, 37, 64, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

/* ── Highlights (Strengths & Improvements) ── */
.score-highlights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.highlight-box--green {
  border-left: 4px solid #22c55e;
}

.highlight-box--yellow {
  border-left: 4px solid #f59e0b;
}

.highlight-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.highlight-bullets li::before {
  content: '•';
  color: var(--text-primary);
  font-weight: bold;
}

/* ── Download Card Action Bar ── */
.share-action-toolbar {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.btn-download-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-download-card:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

/* ============================================================
   Standardized AI Report Modern Card Styling (.rapor-cv-container)
   ============================================================ */
.rapor-cv-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  font-family: inherit;
  color: var(--text-primary);
}

/* ── Hero Scorecard Header ── */
.rapor-hero-card {
  background: linear-gradient(135deg, #091a2b 0%, #0f2742 50%, #071524 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  color: #ffffff;
}

.rapor-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rapor-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.rapor-pill--position {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.rapor-pill--position strong {
  color: #38bdf8;
  font-weight: 700;
}

.rapor-pill--verified {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  letter-spacing: 0.02em;
}

.rapor-scores-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-sm) 0;
}

.rapor-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.rapor-score-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.rapor-score-num {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.rapor-score-num small {
  font-size: 1.15rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}

.rapor-score-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.rapor-grade-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
}

.rapor-status-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.rapor-score-divider {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Section & Rubric Table ── */
.rapor-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.rapor-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rapor-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 37, 64, 0.1);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.rapor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.rapor-table th {
  background: #f8fafc;
  color: var(--text-primary);
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 2px solid rgba(10, 37, 64, 0.08);
  white-space: nowrap;
}

.rapor-table td {
  padding: 14px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  vertical-align: middle;
}

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

.rapor-table tr:hover td {
  background: rgba(16, 185, 129, 0.03);
}

.rapor-grade-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ── Structured Highlight Cards ── */
.rapor-box {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid transparent;
}

.rapor-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rapor-box--strengths {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}

.rapor-box--strengths .rapor-box-title {
  color: #065f46;
}

.rapor-box--improvements {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.28);
}

.rapor-box--improvements .rapor-box-title {
  color: #92400e;
}

.rapor-box--priorities {
  background: rgba(14, 165, 233, 0.05);
  border-color: rgba(14, 165, 233, 0.25);
}

.rapor-box--priorities .rapor-box-title {
  color: #0369a1;
}

/* ── Content Lists inside Boxes ── */
.rapor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rapor-list li {
  position: relative;
  padding-left: 26px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

.rapor-box--strengths .rapor-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 800;
  font-size: 1.05rem;
}

.rapor-box--improvements .rapor-list li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.9rem;
}

.rapor-list--numbered {
  counter-reset: priority-counter;
}

.rapor-list--numbered li {
  counter-increment: priority-counter;
}

.rapor-list--numbered li::before {
  content: counter(priority-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: #0284c7;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ── Final Verdict Card ── */
.rapor-verdict-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-left: 5px solid #10b981;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.rapor-verdict-card .rapor-box-title {
  color: var(--text-primary);
}

.rapor-verdict-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  margin: 0;
}

/* ── Mobile Responsiveness ── */
@media (max-width: 640px) {
  .rapor-hero-card {
    padding: var(--space-lg) var(--space-md);
  }

  .rapor-badge-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rapor-scores-summary {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .rapor-score-divider {
    display: none;
  }

  .rapor-score-num {
    font-size: 2.5rem;
  }
}

/* ============================================================
   CekCV — Reusable Score Card Component Styles
   100% faithful to the official Score Card visual design
   ============================================================ */

.cekcv-score-card {
  background: #090e1d;
  background: radial-gradient(circle at 50% 0%, #111a36 0%, #080d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px 26px 20px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 24, 52, 0.4);
  max-width: 540px;
  margin: 0 auto;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Header Top Bar */
.cekcv-score-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}

.cekcv-score-card__logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.cekcv-score-card__logo-accent {
  color: #f59e0b;
}

.cekcv-score-card__target-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111b33;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.cekcv-score-card__target-icon {
  font-size: 0.85rem;
}

.cekcv-score-card__target-label {
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cekcv-score-card__target-value {
  color: #3b82f6;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Center Gauge Section */
.cekcv-score-card__gauge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cekcv-score-card__gauge-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cekcv-score-card__gauge-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cekcv-score-card__gauge-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.cekcv-score-card__gauge-track {
  fill: none;
  stroke: #182238;
  stroke-width: 12;
}

.cekcv-score-card__gauge-indicator {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
}

.cekcv-score-card__gauge-number {
  position: absolute;
  font-size: 3.2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Dual Sub-Cards */
.cekcv-score-card__subcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 14px;
}

.cekcv-score-card__subcard {
  background: #0d152a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cekcv-score-card__subcard:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.cekcv-score-card__subcard-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}

.cekcv-score-card__subcard--quality .cekcv-score-card__subcard-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
}

.cekcv-score-card__subcard--relevance .cekcv-score-card__subcard-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
}

/* Verdict / Status Bar */
.cekcv-score-card__verdict-bar {
  background: #0d152a;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cekcv-score-card__verdict-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: #080d1a;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cekcv-score-card__verdict-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

/* Card Bottom Footer */
.cekcv-score-card__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  text-align: center;
}

.cekcv-score-card__lock-note {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}

.cekcv-score-card__cta-note {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.cekcv-score-card__cta-link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
}

.cekcv-score-card__cta-link:hover {
  text-decoration: underline;
}

/* Mobile responsive for Score Card */
@media (max-width: 520px) {
  .cekcv-score-card {
    padding: 20px 16px 16px 16px;
    border-radius: 20px;
  }

  .cekcv-score-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cekcv-score-card__verdict-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px;
  }
}


