:root {
  --brand: #f2cc00;
  --brand-dark: #c9a800;
  --brand-amber: #ba7517;
  --dark: #111111;
  --text: #1e1e1e;
  --muted: #6b6b6b;
  --line: #e8e4d4;
  --bg: #f9f7f0;
  --card: #ffffff;
  --success: #1a6e3c;
  --danger: #b42318;
  --danger-bg: #fdecec;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,.07);
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, #f9f7f0, #fffef7);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ── Sleek Glassmorphic Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.header-compact,
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.header-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: min-height 0.2s ease;
}

.site-header.header-compact .header-wrap {
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Serif Display", serif;
  font-size: 1.45rem;
  color: var(--dark, #111);
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.logo:hover {
  transform: translateY(-1px);
}
.logo-word span { color: var(--brand-amber, #ba7517); }
.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2a2a, #111111);
  color: var(--brand, #f2cc00);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 6px 16px rgba(17,17,17,0.18), inset 0 0 0 1px rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}
.site-header.header-compact .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* Header Toggle Button (Mobile Only) */
.header-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-toggle:hover {
  background: #f7f5f0;
  border-color: rgba(0,0,0,0.2);
}
.header-toggle-icon {
  width: 20px;
  height: 20px;
}
.header-toggle-close { display: none; }

.header-open .header-toggle-open { display: none; }
.header-open .header-toggle-close { display: block; }

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
}

.nav-link.active {
  background: #111111;
  color: #f2cc00;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: #111111;
  color: #f2cc00;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.nav-cta:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* User Menu Trigger & Dropdown */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 3px 12px 3px 4px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-menu-trigger:hover {
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.top-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.top-user-avatar-fallback {
  display: grid;
  place-items: center;
  background: #111111;
  color: #f2cc00;
  font-weight: 800;
  font-size: 13px;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #777777;
  transition: transform 0.2s ease;
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

/* User Dropdown Box */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1100;
  width: 240px;
  padding: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-menu-profile {
  padding: 10px 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 6px;
}

.user-menu-profile-name {
  font-size: 14px;
  font-weight: 750;
  color: #111111;
  line-height: 1.25;
}

.user-menu-profile-email {
  font-size: 12px;
  color: #777777;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.user-menu-dropdown a svg {
  color: #777777;
  transition: color 0.15s ease;
}

.user-menu-dropdown a:hover {
  background: rgba(242, 204, 0, 0.14);
  color: #111111;
}

.user-menu-dropdown a:hover svg {
  color: #111111;
}

.user-menu-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 6px 0;
}

.user-menu-logout:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.user-menu-logout:hover svg {
  color: #dc2626 !important;
}

/* Base Button System */
.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand, #f2cc00);
  color: #111111;
  box-shadow: 0 4px 14px rgba(242,204,0,0.28);
}
.btn-primary:hover {
  background: var(--brand-dark, #c9a800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242,204,0,0.36);
}

.btn-secondary {
  background: #ffffff;
  color: var(--dark, #111111);
  border: 1px solid var(--line, #e8e4d4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  background: #f7f5f0;
  border-color: #d4cfc4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.btn-dark {
  background: #111;
  color: #fff8d6;
  box-shadow: 0 4px 14px rgba(17,17,17,0.22);
}
.btn-dark:hover {
  background: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17,17,17,0.30);
}

.btn-danger {
  background: var(--danger-bg, #fdecec);
  color: var(--danger, #b42318);
  border: 1px solid #f6caca;
}
.btn-danger:hover {
  background: #fad8d5;
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

/* Hero CTA buttons (homepage) */
.hero-btn {
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero-btn-primary {
  background: #111;
  color: #fff8d6;
  box-shadow: 0 8px 24px rgba(17,17,17,0.26);
}
.hero-btn-primary:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(17,17,17,0.34);
}
.hero-btn-secondary {
  background: #fff;
  color: #111;
  border: 1.5px solid rgba(0,0,0,0.12);
}
.hero-btn-secondary:hover {
  background: #f7f5f0;
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.promo-banner {
  position: relative;
  z-index: 2;
  padding: 12px 0;
  background: linear-gradient(90deg, #111111, #4b3500 52%, #111111);
  color: #fff8d6;
  border-bottom: 1px solid rgba(242,204,0,.45);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  font-weight: 700;
}
.promo-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.promo-banner strong {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.price-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #111111;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(242,204,0,.22);
}
.price-strike {
  color: rgba(255,255,255,.68);
  font-weight: 600;
}
.promo-banner em {
  color: #ffffff;
  font-style: normal;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 3px 9px;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(242,204,0,.72);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  70% { box-shadow: 0 0 0 9px rgba(242,204,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,204,0,0); }
}


/* ── Modern Footer ─────────────────────────────────────────────────── */
.site-footer.modern-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 72px;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px 40px;
  padding-bottom: 40px;
}
.footer-col.brand-col { max-width: 300px; }
.footer-desc {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.18s ease;
}
.social-links a:hover {
  background: #f7f5f0;
  border-color: #ccc;
  color: #111;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #111; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-logo { margin-bottom: 0; }

/* Fallback for old footer */
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Start Choice Strip (Improve page) ──────────────────────────────── */
.start-choice-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.start-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.start-choice:hover {
  border-color: var(--brand-amber);
  background: #fffdf7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186,117,23,0.10);
}
.start-choice.active {
  background: #111;
  border-color: #111;
  color: #fff8d6;
  box-shadow: 0 8px 24px rgba(17,17,17,0.20);
}
.start-choice-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}
.start-choice:not(.active) .start-choice-icon {
  background: rgba(17,17,17,0.06);
  border-color: transparent;
  color: #111;
}
.start-choice-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.start-choice strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}
.start-choice small {
  display: block;
  font-size: 12px;
  opacity: 0.72;
  font-weight: 500;
  line-height: 1.35;
}

.hero {
  padding: 70px 0 50px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.hero-grid-clean {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  text-align: center;
}
.hero-grid-clean .hero-subtitle {
  margin-inline: auto;
}
.hero-grid-clean .hero-actions,
.hero-grid-clean .trust-row {
  justify-content: center;
}

.home-hero {
  padding: 92px 0 74px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.home-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-hero h1 {
  margin: 0 0 16px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 1.03;
  color: #111;
}

.home-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-proof {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.home-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.home-section {
  padding: 52px 0 28px;
  background: #fffdf8;
}

.home-section-head {
  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
}

.home-section-head h2 {
  margin: 0 0 10px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.home-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.home-feature span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand-amber);
  font-size: 13px;
  font-weight: 900;
}

.home-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.home-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-hero {
  padding: 46px 0 26px;
  background:
    radial-gradient(circle at 12% 18%, rgba(242,204,0,.14), transparent 28%),
    linear-gradient(180deg, #fffdf7, #fff);
  border-bottom: 1px solid var(--line);
}
.pricing-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pricing-hero h1 {
  margin: 10px 0 10px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.pricing-hero p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.usage-meter-card {
  display: grid;
  gap: 12px;
  max-width: 460px;
  margin: 20px auto 0;
  padding: 14px;
  border: 1px solid #eadb93;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,17,17,.06);
  text-align: left;
}
.usage-meter-card strong,
.usage-meter-card span {
  display: block;
}
.usage-meter-card strong {
  color: #111;
  font-size: 15px;
}
.usage-meter-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.usage-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e6c1;
}
.usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111, var(--brand));
}
.pricing-grid-section {
  padding: 36px 0 70px;
}
.pricing-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.pricing-offer-card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,253,246,.98)),
    radial-gradient(circle at 100% 0%, rgba(242,204,0,.13), transparent 32%);
  box-shadow: 0 20px 55px rgba(17,17,17,.09);
}
.pricing-offer-featured {
  border: 2px solid var(--brand-amber);
  box-shadow: 0 26px 70px rgba(87,59,8,.14);
}
.pricing-offer-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #111, var(--brand), var(--brand-amber));
}
.pricing-plan-name {
  margin-bottom: 2px;
  color: #111;
  font-size: 15px;
  font-weight: 900;
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 5px;
}
.pricing-price-row s {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}
.pricing-price {
  color: #111;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.06em;
}
.pricing-price-free {
  color: var(--success);
}
.pricing-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.pricing-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.pricing-feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}
.pricing-feature-list .trust-item {
  align-items: flex-start;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}
.pricing-feature-list .tick {
  flex: 0 0 auto;
}
.mini-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 8px;
  border: 1px solid #eadb93;
  border-radius: 999px;
  background: #fff8df;
  color: var(--brand-amber);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.mini-badge.success,
.plan-badge-success {
  background: #f0fdf4;
  color: var(--success);
  border-color: rgba(26,110,60,.22);
}
.pricing-full-btn {
  width: 100%;
  justify-content: center;
}
.pricing-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: #fff8df;
  color: #7a4c00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}
.pricing-alert .pulse-dot {
  flex: 0 0 auto;
  margin-top: 3px;
}
.pricing-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plan-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17,17,17,.07);
}
.plan-card.featured {
  border-color: #e3c247;
  background:
    radial-gradient(circle at top right, rgba(242,204,0,.22), transparent 34%),
    #fffdf4;
}
.plan-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #111;
  color: #fff8d6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.plan-badge.muted {
  background: #f7f0d8;
  color: #6b5300;
}
.plan-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.plan-price {
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #111;
}
.plan-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}
.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.plan-card li {
  position: relative;
  padding-left: 24px;
  color: #333;
  line-height: 1.45;
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(242,204,0,.18);
}
.hero-title,
.section-head h1,
.section-head h2,
.result-toolbar h1,
.editor-topbar h1 {
  margin: 0 0 12px;
  line-height: 1.1;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
}
.hero-title {
  font-family: "Times New Roman", Times, serif;
}
.hero-subtitle,
.section-head p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero-actions,
.editor-actions,
.form-actions,
.doc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #eaf5ef;
  color: var(--success);
  font-weight: 800;
}

.glass-card,
.panel,
.feature-card,
.template-card,
.doc-card {
  background: var(--card);
  border: 1px solid rgba(17,17,17,.06);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

.mock-sheet,
.preview-sheet {
  background: #fff;
  border: 1px solid #eee6d6;
  border-radius: 18px;
  padding: 22px;
}
.hero-card { padding: 22px; }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat {
  background: #fcfaf1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stat strong { display: block; font-size: 18px; }
.stat span { color: var(--muted); font-size: 13px; }

.mock-top, .mock-name, .mock-line, .mock-section,
.p-head, .p-title, .p-line, .p-sec {
  border-radius: 8px;
}
.mock-top, .p-head { height: 22px; background: var(--brand-amber); margin-bottom: 16px; }
.mock-name, .p-title { height: 18px; background: #1d1d1d; width: 48%; margin-bottom: 10px; }
.mock-line, .p-line { height: 10px; background: #ece8de; margin-bottom: 9px; }
.mock-section, .p-sec { height: 12px; width: 35%; background: #f3ead1; margin: 16px 0 12px; }
.mock-badge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  width: min(100%, 270px);
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111111;
  color: #fff8d6;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17,17,17,.14);
}
.mock-badge strong {
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
}
.score-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.score-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ffffff);
  box-shadow: 0 0 14px rgba(242,204,0,.65);
}
.w95 { width: 95%; } .w90 { width: 90%; } .w85 { width: 85%; } .w80 { width: 80%; }
.w75 { width: 75%; } .w70 { width: 70%; } .w60 { width: 60%; } .w55 { width: 55%; }

.section { padding: 26px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head.left { text-align: left; }

.feature-grid,
.template-grid,
.docs-grid {
  display: grid;
  gap: 20px;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.template-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.docs-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-card { padding: 24px; }
.feature-card h3 { margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }

.page-shell { padding: 42px 0; }

.improve-container {
  width: min(100% - 40px, 900px);
}
.improve-head {
  max-width: 760px;
  margin-inline: auto;
}
.improve-card {
  display: grid;
  gap: 24px;
  padding: 28px;
}
.flow-nav {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #efe3bd;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 251, 236, .94), rgba(255, 255, 255, .94)),
    radial-gradient(circle at top left, rgba(242,204,0,.24), transparent 36%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.flow-step {
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition: .18s ease;
}
.flow-step.active {
  background: #fff8df;
  color: #7a5c00;
  border-color: #eadb93;
  box-shadow: 0 4px 14px rgba(242,204,0,.15);
}
.flow-step.done {
  background: rgba(26,110,60,.1);
  color: var(--success);
  border-color: rgba(26,110,60,.18);
}
.flow-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(17,17,17,.06);
}
.flow-step.active .flow-icon {
  background: var(--brand);
  color: #7a5c00;
}
.flow-step.done .flow-icon {
  background: rgba(26,110,60,.13);
}
.flow-icon svg,
.flow-arrow svg,
.simple-step-number svg,
.drop-icon svg,
.icon-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #b9a56a;
}
.wizard-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.wizard-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6cb;
}
.wizard-meter span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111, var(--brand));
  transition: width .24s ease;
}
.simple-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}
.wizard-panel {
  display: none;
  min-height: 360px;
  align-items: center;
}
.wizard-panel.active {
  display: grid;
}
.simple-step:not(.simple-step-final)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, #111, rgba(242,204,0,.42), transparent);
}
.simple-step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #fff8d6;
  font-weight: 900;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(17,17,17,.16);
}
.simple-step-number span {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #111;
  border: 2px solid #fff;
  font-size: 10px;
}
.simple-step-body {
  min-width: 0;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.field-label-row .field-label {
  margin-bottom: 0;
}
.large-textarea {
  min-height: 240px;
  resize: vertical;
}
.improve-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.improve-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.icon-action svg {
  flex: 0 0 auto;
}
.primary-action {
  min-width: 230px;
}
.wizard-actions {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  margin: 4px -6px -6px;
  padding: 14px;
  border: 1px solid #eee4c8;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 42px rgba(17,17,17,.1);
  backdrop-filter: blur(12px);
}
.wizard-actions .btn[disabled],
.mobile-step-dock .btn[disabled] {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}
.wizard-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.review-item {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf7, #fff);
}
.review-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.review-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111;
  line-height: 1.35;
}
.mobile-step-dock {
  display: none;
}

.upload-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}
.panel { padding: 24px; }
.panel-title { margin-top: 0; }

.field-block, .field { margin-bottom: 18px; }
.field-label,
.field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}
.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
}
.input:focus,
.textarea:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 4px rgba(186,117,23,.12);
}
.muted-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dropzone {
  min-height: 230px;
  border: 2px dashed #d8c37f;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fffdf7, #fff),
    radial-gradient(circle at top, rgba(242,204,0,.16), transparent 42%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: .18s ease;
}
.dropzone.compact-dropzone {
  min-height: 168px;
}
.dropzone:hover,
.dropzone.dragging {
  border-color: var(--brand-amber);
  background:
    linear-gradient(180deg, #fff8dd, #fff),
    radial-gradient(circle at top, rgba(242,204,0,.24), transparent 44%);
  transform: translateY(-1px);
}
.dropzone.has-file {
  border-style: solid;
  border-color: rgba(26,110,60,.42);
  background: linear-gradient(180deg, #f4fbf6, #fff);
}
.drop-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111;
  background: linear-gradient(180deg, #fff2a8, #f2cc00);
  box-shadow: 0 14px 30px rgba(186,117,23,.18);
}
.drop-icon.ok {
  display: none;
  background: #eaf5ef;
  color: var(--success);
}
.drop-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
.hint { color: var(--muted); font-size: 13px; }

.file-info {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.file-info.visible { display: flex; }
.compact-file-info {
  margin-top: 10px;
}
.file-info span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.alert {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 14px 0 20px;
}
.alert-error {
  background: #fff1f0;
  border: 1px solid #f7d0cc;
  color: var(--danger);
}

.step-list { display: grid; gap: 14px; }
.step-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.step-item span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4c4;
  font-weight: 800;
}
.step-item p, .check-list { color: var(--muted); }
.check-list {
  padding-left: 18px;
  line-height: 1.8;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}
.swatch-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}
.color-swatch.active {
  border-color: #111;
  transform: scale(1.06);
}

.template-card {
  overflow: hidden;
  cursor: pointer;
  transition: .18s ease;
}
.template-card:hover {
  transform: translateY(-3px);
}
.template-card.selected {
  outline: 3px solid var(--brand-amber);
}
.template-preview {
  padding: 18px;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}
.template-card-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.template-card-body h3 { margin: 0 0 8px; }
.template-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.theme-bg { background: var(--brand-amber); }
.theme-soft {
  background: rgba(186,117,23,.12);
  border: 1px solid rgba(186,117,23,.22);
}

.editor-shell {
  padding: 34px 20px 50px;
}
.editor-topbar,
.result-toolbar {
  width: min(100%, 1360px);
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}
.editor-layout {
  width: min(100%, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: start;
}
.editor-sidebar,
.editor-form,
.editor-preview { position: sticky; top: 92px; }
.editor-form { min-height: 600px; }
.step-link {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.step-link.active,
.step-link:hover {
  background: #fcf6df;
  color: var(--dark);
}
.step-panel { display: none; }
.step-panel.active { display: block; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.stack-list { display: grid; gap: 12px; }
.card-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.card-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.empty-inline,
.empty-state {
  text-align: center;
  color: var(--muted);
}
.empty-inline {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.preview-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  background: #faf4df;
  color: var(--brand-amber);
  border: 1px solid #f1dfb1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.result-canvas {
  background: #f4f1e8;
  border-radius: 18px;
  padding: 20px;
  min-height: 300px;
}
.result-full {
  padding: 34px;
}
.cv-render{
  width:210mm;
  min-height:297mm;
  margin:0 auto;
  background:#fff;
  color:#222;

  /* REMOVE THESE PROBLEMS */
  box-shadow:none !important;
  border:none !important;
}
.cv-header {
  color: #fff;
  padding: 36px 40px 26px;
}
.cv-header h2 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.1;
  font-family: "DM Serif Display", serif;
}
.cv-header p {
  margin: 0 0 12px;
  opacity: .92;
}
.cv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}
.cv-body {
  padding: 28px 40px 36px;
}
.cv-body section { margin-bottom: 22px; }
.cv-body h3 {
  margin: 0 0 10px;
  color: var(--theme, var(--brand-amber));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cv-body p {
  margin: 0;
  line-height: 1.7;
}
.cv-item { margin-bottom: 14px; }
.cv-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cv-item-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.bullet-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}
.muted { color: var(--muted); }

.doc-card { overflow: hidden; }
.doc-preview {
  background: #f8f6ef;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.preview-bar {
  height: 8px;
  background: var(--preview-color, var(--brand-amber));
  border-radius: 999px;
  margin-bottom: 12px;
}
.doc-body { padding: 18px; }
.doc-body h3 { margin: 0 0 6px; }
.doc-body p {
  margin: 0 0 14px;
  color: var(--muted);
}
.doc-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.empty-state.show {
  display: block;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 20px;
}
.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(242,204,0,.18), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(186,117,23,.2), transparent 34%),
    rgba(17,17,17,.64);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  backdrop-filter: blur(12px);
}
.loading-overlay.active { display: flex; }
.loading-card {
  width: min(92vw, 760px);
  background: #fff;
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.loading-card h3 {
  margin: 0 0 8px;
}
.loading-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.premium-loading-card {
  display: grid;
  grid-template-columns: minmax(230px, .86fr) minmax(0, 1.14fr);
  border: 1px solid rgba(255,255,255,.45);
}

.loading-preview {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #111111, #3a2a05 62%, #111111);
}

.loading-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(242,204,0,.22);
  border-radius: 18px;
}

.loading-paper {
  position: relative;
  width: 190px;
  min-height: 270px;
  padding: 24px 22px;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 28px 60px rgba(0,0,0,.34);
  transform: rotate(-2deg);
}

.loading-paper-accent {
  height: 10px;
  margin: -24px -22px 18px;
  background: linear-gradient(90deg, var(--brand), var(--brand-amber));
}

.loading-paper-name,
.loading-paper-section,
.loading-paper-line {
  border-radius: 999px;
  background: #e9e2cf;
}

.loading-paper-name {
  width: 58%;
  height: 14px;
  margin-bottom: 12px;
  background: #111;
}

.loading-paper-section {
  width: 38%;
  height: 8px;
  margin: 20px 0 10px;
  background: #d2a33a;
}

.loading-paper-line {
  width: 82%;
  height: 7px;
  margin-bottom: 8px;
}

.loading-paper-line.long { width: 100%; }
.loading-paper-line.medium { width: 70%; }
.loading-paper-line.short { width: 48%; }

.loading-scan-line {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 230px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 22px rgba(242,204,0,.72);
  animation: scanCv 2.2s ease-in-out infinite;
}

.loading-copy {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loading-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  align-self: flex-start;
  background: linear-gradient(135deg, #fff4c4, #fff9e7);
  color: #7a4c00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-progress {
  height: 12px;
  overflow: hidden;
  margin: 24px 0 12px;
  border-radius: 999px;
  background: #f1ead5;
}
.loading-progress span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-amber));
  transition: width .5s ease;
  position: relative;
}
.loading-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation: loadingSweep 1.4s ease-in-out infinite;
}
.loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.loading-meta strong {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111;
  color: var(--brand);
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(17,17,17,.16);
}
.loading-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.loading-steps span {
  position: relative;
  padding: 25px 2px 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.loading-steps span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 13px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #d7caa7;
}
.loading-steps span.active {
  background: transparent;
  color: #111;
}
.loading-steps span.active::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(242,204,0,.18);
}
.loading-steps span.done {
  background: transparent;
  color: var(--success);
}
.loading-steps span.done::before {
  background: var(--success);
}
@keyframes loadingSweep {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(75%); }
  100% { transform: translateX(235%); }
}
@keyframes scanCv {
  0%, 100% { transform: translate(-50%, 0); opacity: .45; }
  50% { transform: translate(-50%, 250px); opacity: 1; }
}

@media (max-width: 760px) {
  .loading-overlay {
    align-items: flex-start;
    overflow-y: auto;
  }

  .premium-loading-card {
    grid-template-columns: 1fr;
  }

  .loading-preview {
    min-height: 260px;
  }

  .loading-paper {
    width: 154px;
    min-height: 214px;
    padding: 20px 18px;
  }

  .loading-paper-accent {
    margin: -20px -18px 14px;
  }

  .loading-scan-line {
    width: 190px;
    top: 44px;
  }

  .loading-copy {
    padding: 26px 22px;
  }

  .loading-copy h3 {
    font-size: 1.35rem;
  }

  .loading-meta {
    margin-bottom: 20px;
  }

  .loading-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .result-toolbar {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .page-shell,
  .container,
  .result-full {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .cv-render {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .upload-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-sidebar,
  .editor-form,
  .editor-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-header {
    position: sticky;
  }

  .header-wrap {
    min-height: 56px;
    padding: 8px 0;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .logo {
    gap: 8px;
    font-size: 1.16rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: .68rem;
  }

  .header-toggle {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .site-header.header-compact .header-wrap {
    min-height: 46px;
    padding: 5px 0;
  }

  .site-header.header-compact .logo {
    gap: 0;
  }

  .site-header.header-compact .logo-word {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .site-header.header-compact .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: .6rem;
  }

  .site-header.header-compact .header-toggle {
    width: 34px;
    height: 34px;
  }

  .site-header-collapsible .header-toggle,
  .site-header:not(.site-header-collapsible) .header-toggle {
    display: grid;
  }

  .site-header-collapsible .header-nav,
  .site-header:not(.site-header-collapsible) .header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    max-height: min(72vh, 430px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 44px rgba(17,17,17,.16);
    backdrop-filter: blur(16px);
  }

  .site-header.header-open .header-wrap {
    flex-wrap: nowrap;
  }

  .site-header.header-open .header-nav {
    display: grid;
  }

  .site-header-collapsible .header-wrap {
    flex-direction: row;
    align-items: center;
  }

  .site-header-collapsible.header-open .header-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .site-header-collapsible .header-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-nav {
    width: auto;
  }

  .site-header-collapsible.header-open .header-nav {
    display: grid;
  }

  .nav-cta,
  .nav-link,
  .nav-cta-secondary {
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    text-align: center;
    border-radius: 12px;
  }

  .top-user {
    grid-column: auto;
    justify-content: center;
    border-radius: 13px;
    padding: 6px;
  }

  .top-user-avatar {
    width: 30px;
    height: 30px;
  }

  .top-user-meta {
    min-width: 0;
  }

  .top-user-meta strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu-trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
    padding: 6px 10px;
  }

  .user-menu-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: #fff;
  }

  .promo-banner {
    padding: 8px 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .promo-banner .container {
    gap: 5px;
  }

  .price-highlight,
  .promo-banner em {
    padding: 2px 7px;
  }

  .pricing-hero {
    padding: 34px 0 20px;
  }

  .pricing-hero h1 {
    font-size: 1.85rem;
  }

  .pricing-hero p {
    font-size: 14px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-offer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-offer-card {
    padding: 22px;
    border-radius: 22px;
  }

  .pricing-price {
    font-size: 34px;
  }

  .plan-card {
    padding: 22px;
    border-radius: 20px;
  }

  .plan-price {
    font-size: 34px;
  }

  .improve-container {
    width: min(100% - 24px, 900px);
  }
  .improve-card {
    padding: 18px;
  }
  .flow-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .flow-arrow {
    display: none;
  }
  .flow-step {
    height: 66px;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    font-size: 11px;
  }
  .flow-icon {
    width: 28px;
    height: 28px;
  }
  .simple-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .simple-step::after {
    display: none;
  }
  .simple-step-number {
    width: 34px;
    height: 34px;
  }
  .field-label-row {
    align-items: stretch;
  }
  .field-label-row .btn {
    width: 100%;
  }
  .large-textarea {
    min-height: 220px;
  }
  .wizard-status {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wizard-panel {
    min-height: auto;
    align-items: start;
  }
  .wizard-actions {
    position: static;
    margin: 0;
  }
  .wizard-action-buttons {
    width: 100%;
  }
  .wizard-actions > .btn,
  .wizard-action-buttons .btn {
    flex: 1 1 100%;
  }
  #wizardBackBtn {
    display: none;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .mobile-step-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee4c8;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 42px rgba(17,17,17,.16);
    backdrop-filter: blur(12px);
  }
  .mobile-step-dock .btn {
    width: 100%;
  }
  .wizard-actions .wizard-action-buttons {
    display: none;
  }
  .improve-submit-row .btn {
    width: 100%;
  }
  .grid-2,
  .feature-grid,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 54px 0 44px;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .home-hero p {
    font-size: 16px;
  }

  .home-actions .btn {
    width: 100%;
  }

  .home-proof {
    justify-content: flex-start;
  }

  .home-section {
    padding-top: 40px;
  }
  outline-offset: 0;
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .footer-col.brand-col {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .cv-header,
  .cv-body {
    padding-inline: 22px;
  }
}

.template-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 30px;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.real-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.template-option {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.template-option:hover {
  transform: translateY(-4px);
}

.template-option.selected {
  outline: 3px solid var(--brand-amber);
  outline-offset: 0;
}
.template-preview-frame {
  padding: 18px;
  background: linear-gradient(180deg, #f8f6ef 0%, #fdfcf8 100%);
  border-bottom: 1px solid var(--line);
}

.color-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.color-swatch.active {
  border-color: #111;
  transform: scale(1.08);
}

.swatch-white {
  border: 2px solid #d7d7d7;
  background: #ffffff !important;
}

.white-swatch-dot {
  position: absolute;
  inset: 7px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  display: block;
}

.cv-mini {
  --preview-accent: #ba7517;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid #e6decd;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.cv-mini-page {
  height: 100%;
  background: #ffffff;
  color: #1d1d1d;
  overflow: hidden;
  position: relative;
}

.accent-bg {
  background: var(--preview-accent) !important;
}

.accent-text {
  color: var(--preview-accent) !important;
}

.accent-soft-bg {
  background: color-mix(in srgb, var(--preview-accent) 12%, white) !important;
}

.accent-soft-border {
  border: 1px solid color-mix(in srgb, var(--preview-accent) 35%, #e8e1d0) !important;
}

.dark-text {
  color: #111111;
}

.cv-mini-header {
  padding: 18px 16px 14px;
  color: #fff;
}

.cv-mini-name,
.sidebar-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
}

.cv-mini-role,
.sidebar-role,
.executive-role {
  font-size: 11px;
  line-height: 1.4;
  opacity: .95;
  margin-bottom: 6px;
}

.cv-mini-meta,
.executive-meta {
  font-size: 9px;
  line-height: 1.4;
  opacity: .92;
}

.cv-mini-body {
  padding: 14px 16px 16px;
}

.cv-mini section {
  margin-bottom: 14px;
}

.cv-mini h4 {
  margin: 0 0 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.cv-mini p,
.cv-mini li,
.cv-mini span {
  font-size: 9px;
  line-height: 1.45;
}

.cv-mini p {
  margin: 0;
  color: #444;
}

.mini-item {
  margin-top: 6px;
}

.mini-item strong {
  display: block;
  font-size: 10px;
  line-height: 1.35;
}

.mini-item span {
  display: block;
  color: #777;
  margin: 2px 0 4px;
}

.mini-item ul {
  margin: 0;
  padding-left: 14px;
}

.cv-classic .cv-mini-body {
  padding-top: 16px;
}

.cv-modern .modern-band {
  height: 12px;
}

.cv-modern .modern-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.cv-modern .mini-contact-box {
  min-width: 110px;
  border-radius: 10px;
  padding: 8px;
  font-size: 8px;
  color: #555;
  background: #fff;
}

.cv-sidebar .sidebar-layout {
  display: grid;
  grid-template-columns: 34% 66%;
  height: 100%;
}

.cv-sidebar .sidebar-col {
  color: #fff;
  padding: 16px 12px;
}

.cv-sidebar .sidebar-main {
  padding: 14px 14px 12px;
}

.cv-sidebar .sidebar-block {
  margin-top: 14px;
}

.cv-sidebar .sidebar-block h5 {
  margin: 0 0 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cv-sidebar .sidebar-block p {
  margin: 0 0 4px;
  font-size: 9px;
  color: rgba(255,255,255,.92);
}

.cv-twocol .compact-header {
  padding: 14px 16px;
}

.cv-twocol .twocol-layout {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 0;
  height: calc(100% - 72px);
}

.cv-twocol .twocol-left,
.cv-twocol .twocol-right {
  padding: 14px 14px 12px;
}

.cv-twocol .twocol-right {
  border-left: 1px solid #ece6d8;
  background: #fcfbf8;
}

.cv-executive .executive-top {
  padding: 18px 18px 10px;
  text-align: center;
}

.cv-executive .executive-line {
  width: 72px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.cv-executive .executive-name {
  font-size: 20px;
  margin-bottom: 4px;
}

.cv-creative .creative-top {
  padding: 16px;
  position: relative;
}

.cv-creative .creative-chip {
  width: 46px;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.cv-creative .creative-grid {
  padding: 10px 16px 16px;
}

.preview-white-theme {
  background: #efefef;
}

.preview-white-theme .accent-bg {
  background: #ffffff !important;
  color: #111 !important;
  border-bottom: 1px solid #dcdcdc;
}

.preview-white-theme .cv-mini-header {
  color: #111 !important;
}

.preview-white-theme .sidebar-col {
  background: #ffffff !important;
  color: #111 !important;
  border-right: 1px solid #dcdcdc;
}

.preview-white-theme .sidebar-block p {
  color: #444 !important;
}

.preview-white-theme .accent-text {
  color: #999 !important;
}

.preview-white-theme .accent-soft-bg {
  background: #ffffff !important;
  border-bottom: 1px solid #e6e6e6;
}

.preview-white-theme .accent-soft-border {
  border: 1px solid #dddddd !important;
}

.preview-white-theme .executive-line,
.preview-white-theme .creative-chip {
  background: #e2e2e2 !important;
}

@media (max-width: 720px) {
  .template-topbar {
    justify-content: flex-start;
  }

  .color-picker-wrap {
    justify-content: flex-start;
  }

  .cv-mini {
    height: 380px;
  }
}

.swatch-white {
  border: 2px solid #d8d8d8;
}

.white-swatch-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 50%;
  border: 1px solid #d8d8d8;
}

.premium-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0 30px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-note {
  display: flex;
  align-items: center;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7f0da;
  color: #8d5d13;
  border: 1px solid #ead7a6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.premium-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.premium-template-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.07);
  box-shadow: 0 14px 38px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.premium-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,.12);
}

.premium-template-card.selected {
  outline: 3px solid var(--brand-amber);
}

.premium-preview-wrap {
  padding: 18px;
  background: linear-gradient(180deg, #f6f4ee 0%, #fdfcf9 100%);
  border-bottom: 1px solid var(--line);
}

.premium-card-body {
  padding: 18px;
}

.template-color {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.template-color.active {
  border-color: #111;
  transform: scale(1.08);
}

.swatch-white {
  border: 2px solid #d7d7d7;
  background: #fff !important;
}

.white-swatch-dot {
  position: absolute;
  inset: 7px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  display: block;
}

.cv-demo {
  --preview-accent: #ba7517;
  height: 430px;
  border-radius: 18px;
  overflow: hidden;
  background: #e9ecef;
  border: 1px solid #ddd6c7;
}

.cv-paper {
  height: 100%;
  background: #fff;
  color: #161616;
  overflow: hidden;
  position: relative;
  padding: 18px 18px 14px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.accent-bg {
  background: var(--preview-accent) !important;
}

.accent-text {
  color: var(--preview-accent) !important;
}

.accent-soft-bg {
  background: color-mix(in srgb, var(--preview-accent) 11%, white) !important;
}

.accent-border {
  border-color: var(--preview-accent) !important;
}

.demo-header {
  margin-bottom: 14px;
}

.demo-header-center {
  text-align: center;
  border-bottom: 1px solid #e7e2d6;
  padding-bottom: 10px;
}

.demo-header-left {
  text-align: left;
}

.demo-header h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-header h3 span {
  font-weight: 400;
}

.demo-meta-line,
.demo-meta-row {
  font-size: 9px;
  color: #666;
  line-height: 1.4;
}

.demo-section {
  margin-bottom: 12px;
}

.demo-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.demo-section p,
.demo-section li,
.demo-job span {
  font-size: 9px;
  line-height: 1.4;
  color: #444;
}

.demo-section p {
  margin: 0;
}

.demo-section ul {
  margin: 4px 0 0;
  padding-left: 14px;
}

.demo-split.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-job strong {
  display: block;
  font-size: 10px;
  margin-bottom: 2px;
}

.demo-job span {
  display: block;
  margin-bottom: 4px;
}

.modern-accent-band {
  height: 10px;
  margin: -18px -18px 12px;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-sidebar-layout {
  display: grid;
  grid-template-columns: 34% 66%;
  height: calc(100% + 32px);
  margin: -18px;
}

.demo-sidebar {
  color: #fff;
  padding: 16px 12px;
}

.demo-sidebar-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.demo-sidebar-role {
  font-size: 10px;
  opacity: .95;
  margin-bottom: 14px;
}

.sidebar-mini-block {
  margin-top: 14px;
}

.sidebar-mini-title {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
}

.sidebar-mini-block p {
  margin: 0 0 4px;
  font-size: 9px;
  color: rgba(255,255,255,.92);
}

.demo-main {
  padding: 16px 14px 12px;
}

.soft-header {
  margin: -18px -18px 12px;
  padding: 14px 18px;
}

.demo-two-columns {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 12px;
}

.col-right {
  border-left: 1px solid #ece6d8;
  padding-left: 12px;
}

.executive-topline {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.executive-header {
  text-align: center;
}

.creative-top {
  margin: -18px -18px 12px;
  padding: 16px 18px;
}

.creative-chip {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.demo-grid-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-card-block {
  border: 1px solid #ece6d8;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.minimal-header {
  text-align: center;
  margin-bottom: 14px;
}

.minimal-header h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .02em;
}

.minimal-line {
  width: 80px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
}

.boxed-frame {
  border: 6px solid #4f6675;
  border-radius: 4px;
  padding: 14px;
  height: 100%;
}

.preview-white-theme {
  background: #efefef;
}

.preview-white-theme .accent-bg {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #dcdcdc;
}

.preview-white-theme .demo-sidebar {
  background: #ffffff !important;
  color: #111 !important;
  border-right: 1px solid #dcdcdc;
}

.preview-white-theme .sidebar-mini-block p {
  color: #444 !important;
}

.preview-white-theme .accent-text {
  color: #9a9a9a !important;
}

.preview-white-theme .accent-soft-bg {
  background: #ffffff !important;
  border: 1px solid #e5e5e5;
}

.preview-white-theme .executive-topline,
.preview-white-theme .creative-chip,
.preview-white-theme .minimal-line {
  background: #d9d9d9 !important;
}

@media (max-width: 720px) {
  .premium-toolbar {
    align-items: flex-start;
  }

  .cv-demo {
    height: 390px;
  }
}

.cv-classic-real .classic-header {
  background: #fff;
  color: #111;
  padding: 26px 40px 18px;
  border-bottom: 1px solid #ece6d8;
}

.cv-modern-real .modern-top-band {
  height: 10px;
}

.cv-modern-real .modern-header {
  background: #fff;
  color: #111;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 28px 40px 18px;
  border-bottom: 1px solid #ece6d8;
}

.modern-contact-card {
  min-width: 220px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 12px 14px;
}

.modern-contact-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.cv-two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cv-sidebar-real .cv-sidebar-layout {
  display: grid;
  grid-template-columns: 30% 70%;
  min-height: 1000px;
}

.cv-sidebar-real .cv-leftbar {
  padding: 30px 24px;
}

.cv-sidebar-real .cv-sidebar-main {
  padding: 28px 34px 34px;
  background: #fff;
}

.sidebar-name {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sidebar-role {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: .96;
}

.sidebar-block {
  margin-bottom: 22px;
}

.sidebar-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sidebar-block p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.cv-twocol-real .twocol-header {
  color: #111;
  background: #fff;
}

.cv-twocol-real .cv-two-layout {
  display: grid;
  grid-template-columns: 62% 38%;
}

.cv-twocol-real .cv-main-col {
  padding: 28px 34px 34px;
}

.cv-twocol-real .cv-side-col {
  padding: 28px 28px 34px;
  border-left: 1px solid #ece6d8;
  background: #fcfbf8;
}

.cv-executive-real .executive-line {
  height: 8px;
  width: 100%;
}

.cv-executive-real .executive-header-real {
  background: #fff;
  color: #111;
  text-align: center;
  padding: 30px 40px 20px;
  border-bottom: 1px solid #ece6d8;
}

.cv-executive-real .executive-body {
  padding-top: 30px;
}

.centered {
  justify-content: center;
}

.cv-creative-real .creative-header {
  padding: 28px 40px 24px;
  border-bottom: 1px solid #ece6d8;
}

.cv-creative-real .creative-chip {
  width: 56px;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.cv-creative-real .creative-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 26px;
}

.cv-minimal-real .minimal-header-real {
  text-align: center;
  padding: 34px 40px 18px;
  border-bottom: 1px solid #ece6d8;
}

.cv-minimal-real .minimal-header-real h2 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
}

.cv-minimal-real .minimal-divider {
  width: 86px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.cv-boxed-real .boxed-shell {
  border: 8px solid;
  padding: 16px;
  background: #fff;
}

.cv-boxed-real .boxed-header {
  background: #fff;
  color: #111;
  padding: 18px 24px 12px;
  border-bottom: 1px solid #ece6d8;
}

.start-choice-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: -6px 0 22px;
}

.start-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17,17,17,.05);
}

.start-choice.active {
  border-color: #111;
  background: linear-gradient(180deg, #111, #25200e);
  color: #fff8d6;
}

.start-choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand);
  color: #111;
}

.start-choice-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.start-choice strong,
.start-choice small {
  display: block;
}

.start-choice small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.start-choice.active small {
  color: rgba(255,248,214,.76);
}

.scratch-shell {
  padding-top: 30px;
}

.scratch-container {
  width: min(100% - 40px, 1180px);
}

.scratch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.scratch-hero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.04;
  color: #111;
}

.scratch-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.scratch-progress-card {
  padding: 18px;
  border: 1px solid #eadb93;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8df, #fff);
  box-shadow: 0 12px 30px rgba(17,17,17,.06);
}

.scratch-progress-card span,
.scratch-progress-card strong {
  display: block;
}

.scratch-progress-card span {
  color: #7a5c00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.scratch-progress-card strong {
  margin: 7px 0 14px;
  color: #111;
  font-size: 20px;
}

.scratch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.scratch-card,
.scratch-preview {
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.scratch-card {
  padding: 26px;
}

.scratch-step {
  display: none;
  min-height: 540px;
}

.scratch-step.active {
  display: block;
}

.scratch-step-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.scratch-step-head h2 {
  margin: 0 0 6px;
  color: #111;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.scratch-step-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #111;
}

.scratch-wide {
  grid-column: 1 / -1;
}

.scratch-photo-field > span small {
  color: var(--muted);
  font-weight: 600;
}

.scratch-photo-picker {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf7;
}

.scratch-photo-preview {
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #d8c37f;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.scratch-photo-preview img,
.scratch-preview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scratch-photo-copy strong { color: #111; }
.scratch-photo-copy p { margin: 5px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.scratch-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.scratch-preview-photo {
  width: 72px;
  height: 72px;
  margin: 0 0 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-amber);
}

.scratch-top-gap {
  display: block;
  margin-top: 22px;
}

.suggestion-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #efe3bd;
  border-radius: 8px;
  background: #fffdf7;
}

.suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.suggestion-head-spaced {
  margin-top: 14px;
}

.suggestion-head strong {
  color: #111;
}

.suggestion-head small {
  color: var(--muted);
  font-weight: 800;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-row.mini {
  margin-top: 12px;
}

.ai-chip-row:empty {
  display: none;
}

.compact-suggestion-panel {
  margin-top: 12px;
  padding: 12px;
}

.suggest-chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #eadb93;
  border-radius: 999px;
  background: #fff;
  color: #7a5c00;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.suggest-chip:hover {
  background: #fff8df;
  transform: translateY(-1px);
}

.ai-suggest-btn {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.ai-suggest-btn:hover {
  background: #2c2c2c;
  transform: translateY(-1px);
}

.ai-suggest-btn:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.ai-suggest-chip {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.suggestion-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.suggestion-status.error {
  color: var(--danger);
}

.repeat-list {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.repeat-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fff);
}

.repeat-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid #efc0b5;
  border-radius: 8px;
  background: #fff2ef;
  color: var(--danger);
  font-weight: 900;
  cursor: pointer;
}

.scratch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.scratch-actions #submitBtn {
  display: none;
}

.scratch-preview {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.preview-paper {
  min-height: 520px;
  padding: 26px;
  border: 1px solid #eee6d6;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.preview-topline {
  height: 8px;
  width: 86px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #111;
}

.preview-paper h3 {
  margin: 0;
  color: #111;
  font-size: 28px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.preview-paper p {
  margin: 7px 0 0;
  color: var(--brand-amber);
  font-weight: 900;
}

.preview-contact {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.preview-section {
  margin-top: 24px;
}

.preview-section strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-section span,
.preview-section li {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

.preview-section ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .scratch-hero,
  .scratch-layout {
    grid-template-columns: 1fr;
  }

  .scratch-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .start-choice-strip,
  .scratch-grid {
    grid-template-columns: 1fr;
  }

  .scratch-container {
    width: min(100% - 24px, 1180px);
  }

  .scratch-card {
    padding: 18px;
  }

  .scratch-step {
    min-height: auto;
  }

  .scratch-actions {
    position: static;
  }

  .scratch-actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .cv-two-grid,
  .cv-twocol-real .cv-two-layout,
  .cv-creative-real .creative-grid,
  .cv-sidebar-real .cv-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .cv-twocol-real .cv-side-col,
  .cv-sidebar-real .cv-sidebar-main {
    border-left: 0;
  }

  .cv-sidebar-real .cv-leftbar {
    min-height: auto;
  }

  .cv-modern-real .modern-header {
    flex-direction: column;
  }

  .modern-contact-card {
    min-width: 100%;
  }
}

/* Animated Hero Title */
.animated-title {
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
}

.title-line-1 {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-amber);
  animation: slideInDown 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.title-line-2 {
  display: inline-block;
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark), var(--brand-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
  line-height: 1.1;
}

@keyframes slideInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Button Styles */
.hero-btn {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 10px;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-amber));
  color: var(--dark);
  border: none;
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-amber), var(--brand));
}

.hero-btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 2px solid var(--line);
}

.hero-btn-secondary:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber);
}

/* Home Proof Badges */
.home-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.proof-badge svg {
  color: #10b981;
}

.proof-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: #10b981;
}

/* Modern Footer */
.modern-footer {
  background: var(--bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.modern-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.modern-footer .brand-col {
  padding-right: 2rem;
}

.modern-footer .footer-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.modern-footer .footer-desc {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modern-footer .social-links {
  display: flex;
  gap: 1rem;
}

.modern-footer .social-links a {
  color: var(--muted);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-footer .social-links a:hover {
  color: var(--brand-amber);
}

.modern-footer h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.modern-footer .footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.modern-footer .footer-col a:hover {
  color: var(--brand-amber);
}

.modern-footer .footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .modern-footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .modern-footer .brand-col {
    padding-right: 0;
  }
  .modern-footer .social-links {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE & TOUCH UI/UX ENHANCEMENTS (Mobile, Tablet & Desktop)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  button, 
  .btn, 
  .filter-btn, 
  .template-filter-tab, 
  .color-swatch, 
  .nav-link,
  .user-menu-trigger {
    min-height: 44px;
    touch-action: manipulation;
  }

  .color-swatch-group {
    grid-template-columns: repeat(8, minmax(36px, 1fr));
    gap: 8px;
    padding: 4px 0;
  }

  .color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  /* Form controls touch padding & iOS zoom prevention */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Accessibility, color consistency, and narrow-screen safeguards */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(186, 117, 23, 0.42);
  outline-offset: 3px;
}

:where(button, .btn, .nav-link, .nav-cta, .user-menu-trigger) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:where(input, select, textarea) {
  max-width: 100%;
}

main,
.container,
.card,
.panel {
  min-width: 0;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: clip;
  }

  .container {
    width: min(100% - 28px, var(--container));
    padding-left: 0;
    padding-right: 0;
  }

  .home-actions,
  .action-row,
  .form-actions {
    width: 100%;
  }

  .home-actions .btn,
  .hero-btn {
    width: 100%;
    max-width: 420px;
    margin-inline: 0;
    white-space: normal;
    text-align: center;
  }

  .scratch-photo-picker {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .scratch-photo-preview { width: 76px; }

  .modern-footer {
    padding: 3rem 0 1.5rem;
  }

  .modern-footer .footer-grid {
    gap: 2.25rem;
    text-align: left;
  }

  .modern-footer .social-links {
    justify-content: flex-start;
  }

  .modern-footer .footer-col a,
  .modern-footer .social-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

