  	.make-cv__field input[type='month']::-webkit-calendar-picker-indicator::before {
  content: '📅';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: #4652b0;
}

.dashboard-project h4 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dashboard-project__edit-title {
  border: none;
  background: transparent;
  color: rgba(90, 100, 150, 0.5);
  border-radius: 6px;
  padding: 0.4rem;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.dashboard-project__edit-title svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  pointer-events: none;
}

.dashboard-project__edit-title:hover {
  background: rgba(90, 100, 150, 0.1);
  color: rgba(90, 100, 150, 0.9);
}

.dashboard-project__edit-title:active {
  transform: scale(0.95);
}

.dashboard-project__edit-title:focus-visible {
  outline: 2px solid rgba(90, 100, 150, 0.4);
  outline-offset: 2px;
}

.dashboard-project__title:hover .dashboard-project__edit-title {
  color: rgba(90, 100, 150, 0.7);
}

.dashboard-project__title-input {
  font: inherit;
  border: 1px solid rgba(98, 110, 208, 0.4);
  border-radius: 10px;
  padding: 0.25rem 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.dashboard-project__title-input:focus {
  outline: 2px solid rgba(98, 110, 208, 0.45);
  outline-offset: 2px;
}
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1e1e2f;
  --muted: #5a5a73;
  --primary: #3c6fff;
  --primary-dark: #274bb8;
  --blue: #4e8dff;
  --green: #30b37c;
  --purple: #8a4dff;
  --border: #e4e4f2;
  --shadow: 0 20px 40px rgba(15, 26, 67, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9f9ff 0%, #f0f4ff 100%);
  line-height: 1.6;
  padding-top: 84px;
}

img {
  max-width: 100%;
  display: block;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10004;
  background: rgba(10, 12, 29, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  color: #f1f5ff;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.topbar__logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__logo-icon {
  position: relative;
}

.topbar__logo-icon svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.2));
  transition: transform 0.3s ease;
}

.topbar__logo:hover .topbar__logo-icon svg {
  transform: scale(1.05);
}

.topbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.05rem;
}

.topbar__logo-pro {
  font-family: 'Poppins', 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-feature-settings: 'liga' 1, 'kern' 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.03em;
}

.topbar__logo-pro {
  position: relative;
}

.topbar__logo-pro-p {
  background: linear-gradient(90deg, #00D9FF 0%, #00A8FF 40%, #87CEEB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 25px rgba(0, 217, 255, 0.4), 0 0 50px rgba(0, 168, 255, 0.25);
  transition: all 0.4s ease;
  display: inline-block;
  filter: brightness(1.05);
  transform: scale(1);
  animation: shimmerBlue 3s ease-in-out infinite;
}

.topbar__logo-pro-r {
  background: linear-gradient(90deg, #87CEEB 0%, #6A5ACD 25%, #8B00FF 65%, #9D00FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 25px rgba(139, 0, 255, 0.4), 0 0 50px rgba(157, 0, 255, 0.25);
  transition: all 0.4s ease;
  display: inline-block;
  filter: brightness(1.05);
  transform: scale(0.92);
  animation: shimmerBlue 3s ease-in-out infinite 0.2s;
}

.topbar__logo-pro-o {
  background: linear-gradient(90deg, #8B00FF 0%, #9D00FF 40%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 25px rgba(139, 0, 255, 0.4), 
    0 0 50px rgba(157, 0, 255, 0.25);
  transition: all 0.4s ease;
  display: inline-block;
  transform: scale(0.85);
  filter: brightness(1.05);
  line-height: 1;
  animation: shimmerBlue 3s ease-in-out infinite 0.4s;
}

.topbar__logo:hover .topbar__logo-pro-p {
  transform: scale(1.08);
  text-shadow: 0 0 45px rgba(0, 217, 255, 0.7), 0 0 80px rgba(0, 168, 255, 0.4);
  filter: brightness(1.2);
}

.topbar__logo:hover .topbar__logo-pro-r {
  transform: scale(1.08);
  text-shadow: 0 0 45px rgba(139, 0, 255, 0.7), 0 0 80px rgba(157, 0, 255, 0.4);
  filter: brightness(1.2);
}

.topbar__logo:hover .topbar__logo-pro-o {
  transform: scale(0.9);
  text-shadow: 
    0 0 45px rgba(139, 0, 255, 0.7), 
    0 0 80px rgba(157, 0, 255, 0.4),
    0 0 0 0.5px rgba(168, 85, 247, 0.7);
  filter: brightness(1.2);
}

@keyframes shimmerBlue {
  0%, 100% { 
    filter: brightness(1.05);
  }
  50% { 
    filter: brightness(1.25);
  }
}

.topbar__logo-name {
  font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-top: -1px;
  font-feature-settings: 'liga' 1, 'kern' 1;
}

.topbar__menu {
  background: transparent;
  border: none;
  display: grid;
  gap: 0.25rem;
  cursor: pointer;
}

.topbar__menu span {
  width: 20px;
  height: 2px;
  background: #f1f5ff;
  border-radius: 999px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.topbar__link {
  color: rgba(241, 245, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
  display: grid;
  place-items: center;
  gap: 0.35rem;
}

.topbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.topbar__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  justify-content: center;
  align-items: center;
}

.topbar__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.topbar__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.topbar__link:hover::after {
  background: var(--primary);
}

.topbar__link--active::after {
  background: var(--primary);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.topbar__actions > *:not(:last-child) {
  margin-right: 0;
}

.btn--small {
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem;
}

.topbar__user-menu {
  position: relative;
  z-index: 10002;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.topbar__user:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.topbar__avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.topbar__name {
  color: #fff;
}

.topbar__user-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.topbar__user-menu[data-open="true"] .topbar__user-chevron {
  transform: rotate(180deg);
}

.topbar__user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: rgba(10, 12, 29, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 10003;
}

.topbar__user-menu[data-open="true"] .topbar__user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar__user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: rgba(241, 245, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar__user-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar__user-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.topbar__user-item--logout {
  color: rgba(255, 100, 100, 0.9);
}

.topbar__user-item--logout:hover {
  background: rgba(255, 100, 100, 0.15);
  color: #ff6464;
}

.topbar__user-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* Subscriptions & Purchase History Pages
   ------------------------------------------------------------------ */
.subscriptions {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.subscriptions__current h3,
.subscriptions__available h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.subscriptions__plan {
  background: var(--surface);
  border: 1px solid rgba(200, 208, 255, 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
}

.subscriptions__plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.subscriptions__plan-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.subscriptions__badge {
  padding: 0.25rem 0.75rem;
  background: rgba(60, 111, 255, 0.12);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.subscriptions__plan-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.subscriptions__plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.subscriptions__plan-card {
  background: var(--surface);
  border: 1px solid rgba(200, 208, 255, 0.4);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.subscriptions__plan-card--featured {
  border-color: #f59e0b;
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(254, 243, 199, 0.3) 100%);
  position: relative;
  overflow: hidden;
}

.subscriptions__plan-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d);
}

.subscriptions__plan-card-header h4 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.subscriptions__plan-card--featured .subscriptions__plan-card-header h4 {
  color: #d97706;
  font-weight: 700;
}

.subscriptions__plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.subscriptions__plan-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.subscriptions__plan-card--featured .subscriptions__plan-amount {
  color: #d97706;
}

.subscriptions__plan-period {
  font-size: 1rem;
  color: var(--muted);
}

.subscriptions__plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.subscriptions__plan-features li {
  color: var(--text);
  font-size: 0.95rem;
}

.purchase-history__empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.purchase-history__empty svg {
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.purchase-history__empty h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.purchase-history__empty p {
  margin: 0;
  font-size: 0.95rem;
}

/* Settings Page
   ------------------------------------------------------------------ */
.settings-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .settings-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .settings-nav__item {
    white-space: nowrap;
    min-width: fit-content;
  }

  .settings-nav__item span {
    display: none;
  }
}

.settings-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid rgba(200, 208, 255, 0.4);
  border-radius: 1rem;
  padding: 0.75rem;
}

.settings-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.settings-nav__item:hover {
  background: rgba(60, 111, 255, 0.05);
  color: var(--text);
}

.settings-nav__item--active {
  background: rgba(60, 111, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.settings-nav__item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.settings-nav__item--active svg {
  opacity: 1;
}

.settings-content {
  min-height: 600px;
}

.settings-section {
  display: none;
  flex-direction: column;
  gap: 2rem;
}

.settings-section--active {
  display: flex;
}

.settings-section__header {
  margin-bottom: 1rem;
}

.settings-section__header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.settings-section__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.settings__section {
  background: var(--surface);
  border: 1px solid rgba(200, 208, 255, 0.4);
  border-radius: 1rem;
  padding: 2rem;
}

.settings__section h4 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.settings__photo-upload {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.settings__photo-preview {
  flex-shrink: 0;
}

.settings__photo-preview img,
.settings__photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(200, 208, 255, 0.4);
}

.settings__photo-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.settings__photo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.settings__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings__field label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.settings__field input[type="text"],
.settings__field input[type="email"],
.settings__field input[type="password"],
.settings__field select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(200, 208, 255, 0.4);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings__field input:focus,
.settings__field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 111, 255, 0.1);
}

.settings__field small {
  color: var(--muted);
  font-size: 0.85rem;
}

.settings__radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(200, 208, 255, 0.4);
  border-radius: 0.75rem;
  background: #fff;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.settings__radio:hover {
  border-color: var(--primary);
  background: rgba(60, 111, 255, 0.05);
}

.settings__radio input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.settings__radio input[type="radio"]:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.settings__radio:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: rgba(60, 111, 255, 0.1);
}

.settings__checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}

.settings__checkbox:hover {
  background: rgba(60, 111, 255, 0.05);
}

.settings__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem);
  align-items: center;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(24, 28, 56, 0.85) 0%, rgba(24, 28, 56, 0.45) 45%, rgba(24, 28, 56, 0.18) 100%),
    url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=2400&q=80') center/cover no-repeat;
  box-shadow: 0 40px 80px rgba(20, 26, 64, 0.25);
  color: #f6f8ff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 140, 255, 0.28), transparent 52%),
    radial-gradient(circle at 85% 15%, rgba(232, 120, 255, 0.24), transparent 58%),
    linear-gradient(120deg, rgba(16, 18, 40, 0.55), rgba(16, 18, 40, 0.2));
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero__content {
  max-width: 520px;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: 28px;
  background: rgba(10, 12, 32, 0.55);
  box-shadow: 0 24px 48px rgba(10, 15, 38, 0.45);
  backdrop-filter: blur(14px);
}

.hero__content > * {
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.subtitle {
  color: rgba(238, 240, 255, 0.84);
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn--primary {
  box-shadow: 0 20px 36px rgba(85, 108, 255, 0.4);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero .btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(84, 100, 210, 0.32);
}

.hero__visual {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 120px), 170px));
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 100%;
}


.preview-card {
  border-radius: clamp(1rem, 2vw, 1.4rem);
  aspect-ratio: 1 / 1.3;
  height: auto;
  min-height: 180px;
  max-height: 220px;
  padding: clamp(1rem, 2vw, 1.35rem);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 24px 38px rgba(12, 16, 38, 0.32);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
}

.preview-card span {
  position: relative;
  z-index: 2;
}

.preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent),
    rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.preview-card--modern {
  background: linear-gradient(145deg, #5c8dff, #1d2b64);
}

.preview-card--minimal {
  background: linear-gradient(145deg, #bbf0d0, #3ea76a);
  color: inherit;
}

.preview-card--creative {
  background: linear-gradient(145deg, #ff8b6a, #845ec2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(60, 111, 255, 0.15);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(12, 16, 38, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.badge--blue {
  background: rgba(78, 141, 255, 0.15);
  color: var(--blue);
}

.badge--green {
  background: rgba(48, 179, 124, 0.15);
  color: var(--green);
}

.badge--purple {
  background: rgba(138, 77, 255, 0.15);
  color: var(--purple);
}

.badge--gray {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  cursor: pointer;
}

.btn--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(60, 111, 255, 0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  box-shadow: 0 12px 24px rgba(15, 26, 67, 0.08);
  transform: translateY(-1px);
}

.btn--danger {
  background: #ffe9e9;
  border-color: #ffc2c2;
  color: #c03a3a;
}

.btn--danger:hover {
  background: #ffcfcf;
  border-color: #ff9f9f;
  box-shadow: 0 12px 24px rgba(192, 58, 58, 0.15);
  transform: translateY(-1px);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 6rem);
}

.section--light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
}

.section__header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.a4-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

/* Base a4-preview-card styling for other uses */
.a4-preview-card {
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 1.9rem);
  display: grid;
  gap: 1.25rem;
}

.a4-preview-card__category {
  display: flex;
  justify-content: flex-start;
}

.a4-preview-card__category .badge {
  box-shadow: 0 8px 18px rgba(60, 111, 255, 0.15);
}

.a4-preview-card__frame {
  position: relative;
  width: 100%;
  padding-top: 141.4%;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(84, 118, 255, 0.12), rgba(15, 26, 67, 0.06));
  overflow: hidden;
}

.a4-preview-card__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 0.56);
  height: calc(100% / 0.56);
  transform: scale(0.56);
  transform-origin: top left;
  border: none;
  border-radius: 1rem;
  pointer-events: none;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 26, 67, 0.18);
}

.a4-preview-card__info {
  display: grid;
  gap: 0.6rem;
}

.a4-preview-card__info h3 {
  margin: 0;
}

.a4-preview-card__author {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.a4-preview-card__description {
  margin: 0;
  color: var(--muted);
}

.a4-preview-card__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.a4-preview-card__actions .js-save-template.btn--primary {
  background: linear-gradient(135deg, #5d7bff, #3f5cff);
  color: #fff;
  border: none;
  box-shadow: 0 18px 34px rgba(65, 90, 255, 0.26);
}

.a4-preview-card__actions .js-save-template.btn--primary:hover {
  background: linear-gradient(135deg, #4b68ff, #2e4bff);
}

.a4-preview-card__actions .js-preview.btn--ghost,
.a4-preview-card__actions a.btn--ghost {
  background: #fff;
  color: #1b2250;
  border: 1px solid rgba(120, 132, 206, 0.28);
  box-shadow: 0 10px 18px rgba(20, 32, 72, 0.08);
}

.a4-preview-card__actions .js-preview.btn--ghost:hover,
.a4-preview-card__actions a.btn--ghost:hover {
  background: #f7f8ff;
  border-color: rgba(120, 132, 206, 0.42);
}

/* Gallery-specific styling - overrides base styles */
.template-gallery-grid .a4-preview-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(20, 32, 72, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(103, 137, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.template-gallery-grid .a4-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6789ff, #8e9bff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.template-gallery-grid .a4-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(103, 137, 255, 0.2);
  border-color: rgba(103, 137, 255, 0.25);
}

.template-gallery-grid .a4-preview-card:hover::before {
  transform: scaleX(1);
}

.template-gallery-grid .a4-preview-card__category {
  display: flex;
  justify-content: flex-start;
  z-index: 1;
}

.template-gallery-grid .a4-preview-card__category .badge {
  box-shadow: 0 4px 12px rgba(60, 111, 255, 0.2);
  font-size: 0.75rem;
  padding: 0.4rem 0.875rem;
  font-weight: 600;
  border-radius: 999px;
}

.template-gallery-grid .a4-preview-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(103, 137, 255, 0.08), rgba(142, 155, 255, 0.04));
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 26, 67, 0.12);
  transition: all 0.4s ease;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-gallery-grid .a4-preview-card:hover .a4-preview-card__frame {
  box-shadow: 0 12px 32px rgba(15, 26, 67, 0.18);
  transform: scale(1.02);
}

.template-gallery-grid .a4-preview-card__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 0.56);
  height: calc(100% / 0.56);
  transform: scale(0.56);
  transform-origin: top left;
  border: none;
  border-radius: 0.875rem;
  pointer-events: none;
  background: #fff;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1;
  display: block;
}

.template-gallery-grid .a4-preview-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  z-index: 1;
}

.template-gallery-grid .a4-preview-card__info h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b2250;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.template-gallery-grid .a4-preview-card__author {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.template-gallery-grid .a4-preview-card__description {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.template-gallery-grid .a4-preview-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.template-gallery-grid .a4-preview-card__actions .js-save-template.btn--primary {
  background: linear-gradient(135deg, #6789ff, #8e9bff);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(103, 137, 255, 0.3);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.template-gallery-grid .a4-preview-card__actions .js-save-template.btn--primary:hover {
  background: linear-gradient(135deg, #5d7bff, #7a8fff);
  box-shadow: 0 8px 24px rgba(103, 137, 255, 0.4);
  transform: translateY(-2px);
}

.template-gallery-grid .a4-preview-card__actions .js-preview.btn--ghost,
.template-gallery-grid .a4-preview-card__actions a.btn--ghost {
  background: #f8faff;
  color: #1b2250;
  border: 1.5px solid rgba(103, 137, 255, 0.2);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.template-gallery-grid .a4-preview-card__actions .js-preview.btn--ghost:hover,
.template-gallery-grid .a4-preview-card__actions a.btn--ghost:hover {
  background: #ffffff;
  border-color: rgba(103, 137, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(103, 137, 255, 0.15);
}

.section__footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}

.choose-cv-type {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 5vw, 6rem);
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
}

.choose-cv-type__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.choose-cv-type__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.choose-cv-type__header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1b2250;
  letter-spacing: -0.02em;
}

.choose-cv-type__header p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #64748b;
  font-weight: 400;
}

.choose-cv-type__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .choose-cv-type__options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .choose-cv-type__header {
    margin-bottom: 2.5rem;
  }
}

.choose-cv-type__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(20, 32, 72, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(103, 137, 255, 0.1);
  position: relative;
}

.choose-cv-type__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(103, 137, 255, 0.03), rgba(142, 155, 255, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.choose-cv-type__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(103, 137, 255, 0.2);
  border-color: rgba(103, 137, 255, 0.3);
}

.choose-cv-type__card:hover::before {
  opacity: 1;
}

.choose-cv-type__card-inner {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .choose-cv-type__card-inner {
    padding: 2rem;
  }
}

.choose-cv-type__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6789ff, #8e9bff);
  border-radius: 0.875rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(103, 137, 255, 0.25);
}

.choose-cv-type__card-content {
  flex: 1;
}

.choose-cv-type__card-content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b2250;
  letter-spacing: -0.01em;
}

.choose-cv-type__card-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}

.choose-cv-type__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(103, 137, 255, 0.1);
  border-radius: 0.75rem;
  color: #6789ff;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.choose-cv-type__card:hover .choose-cv-type__arrow {
  background: linear-gradient(135deg, #6789ff, #8e9bff);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(103, 137, 255, 0.3);
}

.gallery-page {
  min-height: calc(100vh - 60px);
  padding: 3rem clamp(1.5rem, 5vw, 6rem) 5rem;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f5f8ff 100%);
}

.gallery-page__container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-page__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-page__header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1b2250;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1b2250 0%, #4f7bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-page__header p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #64748b;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3rem;
  justify-content: center;
  padding: 0 1rem;
}

.template-filter {
  border: none;
  background: #ffffff;
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(20, 32, 72, 0.08);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.template-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6789ff, #8e9bff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-filter span {
  position: relative;
  z-index: 1;
}

.template-filter[data-filter="modern"]::before {
  background: linear-gradient(135deg, #4f7bff, #6fa8ff);
}

.template-filter[data-filter="minimal"]::before {
  background: linear-gradient(135deg, #4ad4a3, #6be7c2);
}

.template-filter[data-filter="creative"]::before {
  background: linear-gradient(135deg, #a364ff, #ff7cc0);
}

.template-filter.is-active {
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(103, 137, 255, 0.3);
  transform: translateY(-2px);
}

.template-filter.is-active::before {
  opacity: 1;
}

.template-filter[data-filter="modern"].is-active::before {
  opacity: 1;
}

.template-filter[data-filter="minimal"].is-active::before {
  opacity: 1;
}

.template-filter[data-filter="creative"].is-active::before {
  opacity: 1;
}

.template-filter:hover:not(.is-active) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 32, 72, 0.12);
  border-color: rgba(103, 137, 255, 0.2);
}

.template-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  grid-auto-rows: auto;
}

.template-gallery-grid .is-hidden {
  display: none;
}

@media (max-width: 1400px) {
  .template-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 960px) {
  .template-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-page {
    padding: 2rem clamp(1.5rem, 5vw, 6rem) 4rem;
  }
  
  .gallery-page__header {
    margin-bottom: 2.5rem;
  }
  
  .template-filters {
    margin-bottom: 2rem;
  }
}

.section__header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.section__header p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step__index {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Homepage Templates Section */
.homepage-templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.homepage-template-card {
  background: var(--surface);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
}

.homepage-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.homepage-template-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem 1rem;
  border-radius: 0 0 50px 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.homepage-template-card[data-category="modern"] .homepage-template-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.homepage-template-card[data-category="minimalistisch"] .homepage-template-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.homepage-template-card[data-category="creatief"] .homepage-template-badge {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
}

.homepage-template-preview {
  height: auto;
  background: #f8f9fa;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 0.5rem 0;
  padding-top: 3.5rem;
}

.homepage-template-preview-inner {
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
}

.homepage-templates-actions {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive breakpoints for homepage templates */

/* Mobile (max 767px) */
@media (max-width: 767px) {
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 2vw, 1rem);
    max-width: 100%;
  }
  
  .preview-card {
    aspect-ratio: 1 / 1.25;
    min-height: 150px;
    max-height: 180px;
    padding: clamp(0.875rem, 2vw, 1rem);
  }
  
  /* Mobile slider/carousel for templates - clear carousel with visible next card */
  .homepage-templates-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    padding: 3rem 0.5rem 0.5rem;
    margin: 0 -1rem;
    margin-top: 0;
    position: relative;
    scroll-padding-left: 0.5rem;
    scroll-padding-right: 0.5rem;
    scroll-behavior: smooth;
  }
  
  /* Section must allow overflow for badges - reduced padding to fit on screen */
  #templates-preview.section {
    overflow: visible !important;
    padding-top: 3.5rem !important;
    padding-bottom: 1rem !important;
  }
  
  /* Section header smaller on mobile */
  .section__header {
    margin-bottom: 1rem !important;
  }
  
  .section__header h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .section__header p {
    font-size: 0.875rem !important;
  }
  
  /* Section header and container must allow overflow */
  .section__header {
    overflow: visible !important;
  }
  
  /* Main and body must allow overflow */
  main {
    overflow: visible !important;
  }
  
  body {
    overflow-x: hidden;
    overflow-y: visible;
  }
  
  /* Grid needs more top padding for badges */
  .homepage-templates-grid {
    padding-top: 4rem !important;
  }
  
  /* Badge needs to be higher to avoid clipping - same styling as desktop */
  .homepage-template-badge {
    top: -2.25rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0 0 50px 0 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  
  .homepage-templates-grid::-webkit-scrollbar {
    display: none;
  }
  
  .homepage-template-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
    overflow: visible;
  }
  
  .homepage-template-card:first-child {
    margin-left: 0.5rem;
  }
  
  .homepage-template-card:last-child {
    margin-right: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Rectangular height for all templates - tight fit, CV starts at top */
  /* Badge is ABOVE preview, not inside - no padding-top needed */
  .homepage-template-preview {
    height: clamp(380px, 50vh, 420px) !important;
    min-height: clamp(380px, 50vh, 420px) !important;
    max-height: clamp(380px, 50vh, 420px) !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    padding: 0.25rem !important;
    margin: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    position: relative !important;
  }
  
  /* Preview-inner - CV starts from top, bottom gets clipped */
  .homepage-template-preview-inner {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
  }
  
  /* Badge must be ABOVE preview card, not inside it */
  /* Badge hangs above the grey background card */
  .homepage-template-card {
    position: relative;
    overflow: visible !important;
    padding-top: 2.5rem !important;
  }
  
  .homepage-template-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0 0 50px 0 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  
  
  /* Carousel wrapper for dots and hint - only visible on mobile */
  .homepage-templates-carousel-wrapper {
    position: relative;
    margin: 0 -1rem;
    display: block;
  }
  
  /* Actions button smaller on mobile */
  .homepage-templates-actions {
    margin-top: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .homepage-templates-actions .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Pagination dots - positioned directly under templates */
  .homepage-templates-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }
  
  .homepage-templates-pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    outline: none;
    opacity: 0.5;
  }
  
  .homepage-templates-pagination-dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
  }
  
  .homepage-templates-pagination-dot:focus-visible {
    outline: 2px solid var(--primary, #3c6fff);
    outline-offset: 2px;
  }
  
  .homepage-templates-pagination-dot.active {
    width: 28px;
    height: 8px;
    border-radius: 4px;
    background: var(--primary, #3c6fff);
    opacity: 1;
    transform: scale(1);
  }
  
  /* Swipe hint - positioned right after dots */
  .homepage-templates-swipe-hint {
    text-align: center;
    padding: 0.25rem 1rem 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
  }
  
  .homepage-templates-swipe-hint svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
    stroke-width: 2.5;
    animation: swipeHintPulse 2s ease-in-out infinite;
  }
  
  @keyframes swipeHintPulse {
    0%, 100% {
      opacity: 0.7;
      transform: translateX(0);
    }
    50% {
      opacity: 1;
      transform: translateX(4px);
    }
  }
  
  .homepage-templates-swipe-hint svg:first-child {
    animation-direction: reverse;
  }
  
  .homepage-templates-swipe-hint.hidden {
    display: none;
  }
  
  .homepage-templates-swipe-hint.fade-out {
    opacity: 0;
    transform: translateY(-4px);
  }
  
  /* Mobile template select button - HIDDEN on mobile */
  .homepage-template-card .btn-select-template {
    display: none !important;
  }
  
}

@media (min-width: 768px) {
  /* Hide select button on desktop/tablet */
  .homepage-template-card .btn-select-template {
    display: none !important;
  }
  
  /* Hide carousel controls on desktop/tablet */
  .homepage-templates-carousel-wrapper {
    display: none;
  }
}

/* Mobile Template Editor Popup */
.mobile-template-editor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.mobile-editor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.mobile-editor-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  margin: 0;
  border-radius: 0;
  max-height: 100vh;
  overflow: hidden;
}

.mobile-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: white;
  z-index: 1;
}

.mobile-editor-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.mobile-editor-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-editor-close:hover {
  background: var(--border);
}

.mobile-editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: white;
  z-index: 1;
}

.mobile-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.mobile-editor-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mobile-tab-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-tab-panel.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-template-editor {
    display: none !important;
  }
  
  .homepage-template-card .btn-select-template {
    display: none !important;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(min(100%, 140px), 160px));
    gap: clamp(1.25rem, 2.5vw, 1.5rem);
  }
  
  .preview-card {
    aspect-ratio: 1 / 1.3;
    min-height: 170px;
    max-height: 200px;
  }
  
  .homepage-templates-grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 3vw, 2.5rem);
  }
  
  .homepage-template-preview {
    min-height: clamp(650px, 72vh, 800px);
    padding-top: clamp(3rem, 4vw, 3.5rem);
  }
}

/* Specific breakpoints for different screen sizes */

/* 1920px+ (Large Desktop) */
@media (min-width: 1920px) {
  .homepage-templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 100%;
  }
  
  .homepage-template-preview {
    min-height: 850px;
  }
}

/* 1440px - 1919px (Desktop) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .homepage-templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 2.2vw, 2.5rem);
    max-width: 100%;
  }
  
  .homepage-template-preview {
    min-height: clamp(800px, 70vh, 850px);
  }
}

/* 1366px - 1439px (Small Desktop/Large Laptop) */
@media (min-width: 1366px) and (max-width: 1439px) {
  .homepage-templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.75rem, 2vw, 2.25rem);
    max-width: 100%;
    overflow: hidden;
  }
  
  .homepage-template-card {
    max-width: 100%;
    overflow: hidden;
  }
  
  .homepage-template-preview {
    min-height: clamp(700px, 68vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .homepage-template-preview-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .homepage-templates-actions .btn {
    padding: clamp(0.875rem, 1.3vw, 1rem) clamp(1.5rem, 2.2vw, 2rem);
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    max-width: 300px;
    margin: 0 auto;
  }
}

/* 1024px - 1365px (Laptop) */
@media (min-width: 1024px) and (max-width: 1365px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(min(100%, 150px), 170px));
    gap: clamp(1.5rem, 2vw, 1.75rem);
    max-width: 100%;
  }
  
  .preview-card {
    aspect-ratio: 1 / 1.3;
    min-height: 190px;
    max-height: 220px;
    max-width: 100%;
  }
  
  .homepage-templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.75rem, 2.2vw, 2.25rem);
    max-width: 100%;
    overflow: hidden;
  }
  
  .homepage-template-card {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }
  
  .homepage-template-preview {
    min-height: clamp(600px, 65vh, 750px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .homepage-template-preview-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .homepage-templates-actions {
    max-width: 100%;
    overflow: hidden;
  }
  
  .homepage-templates-actions .btn {
    padding: clamp(0.75rem, 1.2vw, 0.9375rem) clamp(1.25rem, 2vw, 1.75rem);
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    max-width: 280px;
    margin: 0 auto;
    width: auto;
  }
  
  /* Fix template info buttons on templates.php */
  .templates-page-container .template-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .templates-page-container .btn-select,
  .templates-page-container .btn-preview {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    padding: clamp(0.75rem, 1.2vw, 0.875rem) clamp(1rem, 1.5vw, 1.25rem);
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
  }
}

/* Desktop (1440px+) */
@media (min-width: 1440px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(150px, 170px));
    gap: 1.5rem;
  }
  
  .preview-card {
    aspect-ratio: 1 / 1.3;
    height: 220px;
  }
  
  .homepage-templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .homepage-template-preview {
    min-height: 850px;
  }
}

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

.template-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.template-card__header h3 {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
}

.template-card p {
  margin: 0;
  color: var(--muted);
}

.template-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.feature {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin-top: 0;
}

.footer {
  padding: 4rem clamp(1.5rem, 5vw, 6rem);
  background: #101225;
  color: #f1f5ff;
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.5rem;
}

.footer__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__note {
  margin-top: 1rem;
  color: rgba(241, 245, 255, 0.7);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 29, 0.65);
}

.modal__dialog {
  position: relative;
  width: min(960px, 92vw);
  height: min(80vh, 720px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(13, 23, 64, 0.3);
  background: #0a0c18;
  display: flex;
  flex-direction: column;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: none;
  background: transparent;
  color: #f1f5ff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.modal__close:hover {
  color: #ffffff;
}

#modalFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .topbar__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar__nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .topbar__actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }
  .template-card {
    padding: 1.5rem;
  }
  .modal__dialog {
    border-radius: 1rem;
  }
}

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

.auth-page {
  padding: clamp(3rem, 6vw, 6rem) 1.5rem;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(480px, 100%);
  background: var(--surface);
  border-radius: 1.5rem;
  padding: clamp(2.2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
}

.auth-card h1 {
  margin: 0;
}

.auth-card__subtitle {
  margin: 0;
  color: var(--muted);
}

.auth-field {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--muted);
}

.auth-field input,
.auth-field select {
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  color: var(--text);
}

.auth-card__errors {
  border-radius: 1rem;
  border: 1px solid rgba(255, 118, 111, 0.42);
  background: rgba(255, 118, 111, 0.12);
  color: #c03a2b;
  padding: 1rem 1.25rem;
}

.auth-card__errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.auth-card__switch {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.auth-card__switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-submit {
  margin-top: 1rem;
  width: 100%;
}

.alert {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

.alert--success {
  background: rgba(61, 212, 140, 0.12);
  border: 1px solid rgba(61, 212, 140, 0.3);
  color: #1e9761;
}

.alert--error {
  background: rgba(255, 118, 111, 0.12);
  border: 1px solid rgba(255, 118, 111, 0.3);
  color: #c03a2b;
}

.alert--info {
  background: rgba(60, 111, 255, 0.12);
  border: 1px solid rgba(60, 111, 255, 0.3);
  color: #274bb8;
}

.dashboard-page {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 6rem);
}

.dashboard-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-form,
.dashboard-projects {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
}

.dashboard-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: slideIn 0.3s ease-out;
}

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

.btn-bulk-select {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  letter-spacing: 0.01em;
}

.btn-bulk-select:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(148, 163, 184, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-bulk-select:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bulk-actions-menu {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.btn-bulk-action {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-bulk-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-bulk-action:hover::before {
  left: 100%;
}

.btn-bulk-action:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 1) 0%, rgba(185, 28, 28, 0.95) 100%);
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-bulk-action:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.btn-bulk-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}

.btn-bulk-action:hover svg {
  transform: scale(1.1);
}

.dashboard-project {
  position: relative;
}

.dashboard-project__checkbox {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-project:hover .dashboard-project__checkbox,
.dashboard-project__checkbox input[type="checkbox"]:checked ~ .checkbox-label,
.dashboard-project__checkbox:has(input[type="checkbox"]:checked) {
  opacity: 1;
}

.dashboard-project__checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0;
  position: absolute;
  margin: 0;
  z-index: 2;
}

.dashboard-project__checkbox .checkbox-label {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dashboard-project__checkbox input[type="checkbox"]:checked + .checkbox-label {
  background: rgba(99, 102, 241, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(99, 102, 241, 0.9);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.dashboard-project__checkbox input[type="checkbox"]:checked + .checkbox-label::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dashboard-project__checkbox input[type="checkbox"]:hover + .checkbox-label {
  border-color: rgba(99, 102, 241, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.dashboard-project__checkbox input[type="checkbox"]:checked:hover + .checkbox-label {
  background: rgba(99, 102, 241, 1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.dashboard-form h3,
.dashboard-projects h3 {
  margin: 0;
}

.dashboard-empty {
  margin: 0;
  color: var(--muted);
}

.dashboard-project-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 100%;
  align-items: start;
}

@media (max-width: 1400px) {
  .dashboard-project-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .dashboard-project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .dashboard-project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dashboard-project-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dashboard-project {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
  width: 100%;
}

.dashboard-project__preview {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 141.4%; /* A4 aspect ratio: 297/210 = 1.414 */
  background: transparent;
  border: 1px solid rgba(200, 208, 255, 0.4);
  box-shadow: 0 18px 34px rgba(14, 22, 48, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-project:hover .dashboard-project__preview {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(14, 22, 48, 0.16);
}

.dashboard-project[data-template-base='modern'] .dashboard-project__preview {
  background: transparent;
}

.dashboard-project[data-template-base='minimal'] .dashboard-project__preview {
  background: transparent;
}

.dashboard-project[data-template-base='creative'] .dashboard-project__preview {
  background: transparent;
}

.dashboard-project__preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
  background: #fff;
  overflow: hidden;
  border-radius: 24px;
}

.dashboard-project__preview iframe {
  pointer-events: none;
  border: none;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  /* The iframe content will be scaled inside project_preview.php */
}

/* Ensure preview container clips content properly */
.dashboard-project__preview {
  overflow: hidden !important;
}

.dashboard-project__preview-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-project__preview-tools {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.dashboard-project__favorite {
  border: none;
  background: rgba(12, 18, 48, 0.72);
  color: #ffd87d;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 16px rgba(12, 19, 60, 0.24);
}

.dashboard-project__favorite.is-active {
  background: linear-gradient(135deg, #ffe8a1, #ffcf5c);
  color: #624100;
  box-shadow: 0 14px 24px rgba(80, 60, 15, 0.28);
}

.dashboard-project__favorite:hover {
  transform: translateY(-1px);
  background: rgba(12, 18, 48, 0.84);
}

.dashboard-project__menu {
  position: relative;
}

.dashboard-project__menu-toggle {
  border: none;
  background: rgba(12, 18, 48, 0.7);
  color: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 1.12rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 16px rgba(12, 19, 60, 0.24);
}

.dashboard-project__menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(12, 18, 48, 0.88);
}

.dashboard-project__menu-panel {
  position: absolute;
  top: 110%;
  right: 0;
  display: none;
  min-width: 190px;
  background: rgba(12, 16, 38, 0.94);
  color: #f5f6ff;
  border-radius: 14px;
  padding: 0.55rem 0;
  box-shadow: 0 18px 36px rgba(12, 16, 38, 0.35);
  z-index: 15;
}

.dashboard-project__menu[data-open='true'] .dashboard-project__menu-panel {
  display: block;
}

.dashboard-project__menu-item {
  display: flex;
  width: 100%;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: inherit;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dashboard-project__menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-project__menu-item--danger {
  color: #ff8b8b;
}

.dashboard-project__menu-delete {
  margin: 0;
}

.dashboard-project__menu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  color: rgba(245, 247, 255, 0.82);
}

.dashboard-project__menu-meta-template {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

.dashboard-project__menu-meta-updated {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 255, 0.68);
}

.dashboard-project__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.35rem;
}

.dashboard-project__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.dashboard-project__title {
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.dashboard-project__title h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.dashboard-project__title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: text-decoration 0.2s ease;
  cursor: pointer;
}

.dashboard-project__title:hover .dashboard-project__title-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}


.dashboard-project__badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(60, 111, 255, 0.12);
  color: rgba(60, 75, 130, 0.85);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editor-page {
  display: grid;
  grid-template-columns: minmax(420px, 480px) 1fr;
  min-height: calc(100vh - 84px);
}

.editor-sidebar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 50;
}

.editor-sidebar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 3vw, 1.6rem);
  align-items: stretch;
}

.editor-sidebar__header {
  display: grid;
  gap: 1.5rem;
}

.editor-sidebar__title {
  display: grid;
  gap: 0.6rem;
}

.editor-sidebar__title h1 {
  margin: 0;
}

.editor-actions--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.btn--compact {
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
}

.editor-status--inline {
  padding: 0.45rem 0.75rem;
  justify-content: flex-start;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(60, 111, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(15, 26, 67, 0.08);
}

.editor-status__copy {
  display: grid;
  gap: 0.05rem;
}

.editor-status--inline .editor-status__text {
  font-size: 0.78rem;
}

.editor-status__time {
  font-size: 0.68rem;
  color: var(--muted);
}

@media (min-width: 880px) {
  .editor-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .editor-sidebar__title {
    flex: 1;
  }

  .editor-status--inline {
    max-width: 300px;
  }
}

.editor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(76, 115, 255, 0.15), rgba(76, 115, 255, 0.35));
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

.editor-tag.badge--blue {
  background: linear-gradient(120deg, rgba(76, 115, 255, 0.16), rgba(110, 143, 255, 0.38));
  color: #223070;
}

.editor-tag.badge--green {
  background: linear-gradient(120deg, rgba(71, 176, 139, 0.18), rgba(80, 214, 168, 0.38));
  color: #1f3f35;
}

.editor-tag.badge--purple {
  background: linear-gradient(120deg, rgba(160, 114, 255, 0.18), rgba(213, 134, 255, 0.42));
  color: #3c215f;
}

.editor-title-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.editor-title-form--primary {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.editor-sidebar__status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.editor-title-form__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(54, 64, 120, 0.6);
}

.editor-title-form__controls {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.editor-title-input-wrap {
  position: relative;
  flex: 1 1 100%;
}

.editor-title-input {
  width: 100%;
  font-size: clamp(0.92rem, 1.4vw, 1.22rem);
  font-weight: 700;
  border: 1px solid rgba(98, 110, 208, 0.22);
  border-radius: 16px;
  padding: 0.42rem 2.4rem 0.42rem 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.editor-title-input:focus {
  outline: none;
  border-color: rgba(98, 110, 208, 0.55);
  box-shadow: 0 0 0 2px rgba(98, 110, 208, 0.25);
}

.editor-title-submit {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6b73ff, #9f66ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(108, 116, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.editor-title-submit:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 14px 30px rgba(108, 116, 255, 0.34);
}

.editor-title-submit:active {
  transform: translateY(-50%) scale(0.96);
}

.editor-title-submit svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .editor-title-form__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-title-submit {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    width: 38px;
    height: 38px;
  }

  .editor-title-submit:hover {
    transform: scale(1.04);
  }

  .editor-title-submit:active {
    transform: scale(0.96);
  }

  .editor-title-input {
    padding-right: 0.8rem;
  }

  .editor-title-input-wrap {
    width: 100%;
  }
}

.editor-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.editor-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editor-status--inline .editor-status__text {
  font-size: 0.78rem;
}

.editor-inline-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 111, 255, 0.15);
  box-shadow: 0 12px 30px rgba(15, 26, 67, 0.08);
}

.editor-inline-tools[data-editor-tools-ready='true'] {
  border-color: rgba(60, 111, 255, 0.35);
  box-shadow: 0 16px 36px rgba(60, 111, 255, 0.16);
}

.editor-inline-tools p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.editor-inline-tools__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-inline-tools small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-inline-tools .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.editor-image-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 111, 255, 0.15);
  box-shadow: 0 12px 30px rgba(15, 26, 67, 0.08);
}

.editor-image-tools[data-editor-image-active='true'] {
  border-color: rgba(255, 119, 101, 0.35);
  box-shadow: 0 16px 36px rgba(255, 119, 101, 0.18);
}

.editor-image-tools p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.editor-image-tools__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-image-tools small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-image-tools .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.editor-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(60, 111, 255, 0.08);
}

.editor-status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  transition: background 0.2s ease;
}

.editor-status__dot[data-state='dirty'] {
  background: #ff7b5a;
}

.editor-status__dot[data-state='saving'] {
  background: #f0a500;
}

.editor-status__dot[data-state='error'] {
  background: #ff4d7c;
}

.editor-status__text {
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-block;
  line-height: 1.5;
}

.editor-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.editor-canvas {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(245, 247, 255, 0.5) 0%, rgba(235, 241, 255, 0.8) 100%);
}

.editor-canvas__stage {
  position: relative;
  width: min(100%, 1100px);
  min-height: 820px;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 0 auto;
  border-radius: 40px;
  backdrop-filter: blur(18px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.52) 0%, rgba(229, 235, 255, 0.32) 100%);
  box-shadow: 0 24px 54px rgba(52, 72, 180, 0.12);
  overflow: visible;
}

.editor-canvas__frame {
  position: absolute;
  top: 0;
  left: 0;
  --canvas-scale: 1;
  --canvas-base-width: 880px;
  --canvas-base-height: calc(880px * 297 / 210);
  width: calc(var(--canvas-base-width) * var(--canvas-scale));
  height: calc(var(--canvas-base-height) * var(--canvas-scale));
  border-radius: 28px;
  touch-action: none;
  will-change: width, height, left, top;
}

.editor-canvas__frame::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 32px;
  border: 2px dashed rgba(76, 115, 255, 0.35);
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-canvas__frame:hover::after,
.editor-canvas__frame:focus-within::after {
  border-color: rgba(76, 115, 255, 0.6);
  box-shadow: 0 10px 24px rgba(64, 94, 210, 0.18);
}

.editor-canvas__viewport {
  width: var(--canvas-base-width);
  height: var(--canvas-base-height);
  transform-origin: top left;
  transform: scale(var(--canvas-scale));
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 24, 64, 0.2);
  background: #fff;
}

.editor-canvas__viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

.editor-canvas__drag-control {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
  z-index: 4;
}

.editor-canvas__drag {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  border: none;
  background: linear-gradient(120deg, #6c7aff 0%, #9d61ff 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: grab;
  box-shadow: 0 16px 32px rgba(84, 110, 255, 0.26);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  pointer-events: auto;
}

.editor-canvas__drag:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.editor-canvas__drag:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.editor-canvas__drag-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.editor-canvas__drag-label {
  display: inline-block;
}

.editor-canvas__drag-handle--left {
  left: -42px;
}

.editor-canvas__drag-handle--right {
  right: -42px;
  transform: translateY(-50%) rotate(180deg);
}

.editor-canvas__drag-handle--right:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.03);
}

.editor-canvas__drag-handle--right:active {
  transform: translateY(-50%) rotate(180deg) scale(0.98);
}

.editor-canvas__resize {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #6c7aff 0%, #a06aff 100%);
  box-shadow: 0 10px 18px rgba(40, 58, 140, 0.28);
  pointer-events: auto;
  touch-action: none;
  transition: transform 0.15s ease;
  z-index: 3;
}

.editor-canvas__resize:hover {
  transform: scale(1.08);
}

.editor-canvas__resize--top {
  top: -16px;
  left: 50%;
  transform: translate(-50%, 0);
  cursor: ns-resize;
}

.editor-canvas__resize--bottom {
  bottom: -16px;
  left: 50%;
  transform: translate(-50%, 0);
  cursor: ns-resize;
}

.editor-canvas__resize--left {
  left: -16px;
  top: 50%;
  transform: translate(0, -50%);
  cursor: ew-resize;
}

.editor-canvas__resize--right {
  right: -16px;
  top: 50%;
  transform: translate(0, -50%);
  cursor: ew-resize;
}

.editor-canvas__resize--top-left {
  top: -16px;
  left: -16px;
  cursor: nwse-resize;
}

.editor-canvas__resize--top-right {
  top: -16px;
  right: -16px;
  cursor: nesw-resize;
}

.editor-canvas__resize--bottom-left {
  bottom: -16px;
  left: -16px;
  cursor: nesw-resize;
}

.editor-canvas__resize--bottom-right {
  bottom: -16px;
  right: -16px;
  cursor: nwse-resize;
}

.editor-canvas__drag-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(32, 48, 120, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.editor-canvas__drag-toggle span {
  width: 14px;
  height: 14px;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="black" d="M7 10.75a1 1 0 0 1-.82-.42l-3.5-4.9a1 1 0 0 1 .27-1.45.98.98 0 0 1 .55-.18h7.5a1 1 0 0 1 .97 1.26 1 1 0 0 1-.14.29l-3.5 4.9a1 1 0 0 1-.82.5Z"/></svg>');
  background: linear-gradient(140deg, #6c7aff 0%, #9d61ff 100%);
  display: block;
  transition: transform 0.2s ease;
}

[data-drag-control][data-state='collapsed'] .editor-canvas__drag {
  display: none;
}

[data-drag-control][data-state='collapsed'] .editor-canvas__drag-toggle span {
  transform: rotate(180deg);
}

.editor-canvas__drag-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(42, 58, 150, 0.35);
}

.editor-canvas__drag-toggle:active {
  transform: scale(0.94);
}

.editor-canvas__drag-edge {
  position: absolute;
  background: rgba(108, 122, 255, 0.0);
  cursor: grab;
  z-index: 2;
}

.editor-canvas__drag-edge:hover {
  background: rgba(108, 122, 255, 0.15);
}

.editor-canvas__drag-edge:active {
  cursor: grabbing;
}

.editor-canvas__drag-edge--top,
.editor-canvas__drag-edge--bottom {
  left: -16px;
  width: calc(100% + 32px);
  height: 18px;
}

.editor-canvas__drag-edge--top {
  top: -24px;
  border-radius: 12px 12px 0 0;
}

.editor-canvas__drag-edge--bottom {
  bottom: -24px;
  border-radius: 0 0 12px 12px;
}

.editor-canvas__drag-edge--left,
.editor-canvas__drag-edge--right {
  top: -16px;
  height: calc(100% + 32px);
  width: 18px;
}

.editor-canvas__drag-edge--left {
  left: -24px;
  border-radius: 12px 0 0 12px;
}

.editor-canvas__drag-edge--right {
  right: -24px;
  border-radius: 0 12px 12px 0;
}

@media (max-width: 1100px) {
  .editor-page {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .editor-canvas__stage {
    width: 100%;
    min-height: 720px;
    padding: clamp(1.5rem, 6vw, 3rem);
  }

  .editor-canvas__drag-control {
    top: -52px;
  }
}

@media (max-width: 820px) {
  .editor-sidebar__grid {
    grid-template-columns: 1fr;
  }

  .editor-tool-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-tool-card__actions,
  .editor-tool-card__actions--row {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }
}

.btn--icon {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.editor-share__button,
.editor-share__primary {
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.editor-share__button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.editor-share__panel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 104px;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(109, 118, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.editor-share__panel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(82, 103, 255, 0.35);
  border-color: rgba(142, 148, 255, 0.45);
}

.editor-share__panel-item:active {
  transform: translateY(-1px);
}

.editor-share__primary {
  background: linear-gradient(130deg, rgba(111, 123, 255, 0.95), rgba(182, 144, 255, 0.95));
  border: 1px solid rgba(178, 149, 255, 0.75);
  color: #fff;
  padding: 0.45rem 1.05rem;
  box-shadow: 0 16px 28px rgba(108, 116, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-share__label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.editor-share__primary:hover {
  box-shadow: 0 18px 32px rgba(108, 116, 255, 0.48);
  filter: brightness(1.05);
}

.editor-share__chevron {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.editor-tool-card {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(60, 111, 255, 0.1);
  box-shadow: 0 8px 18px rgba(15, 26, 67, 0.12);
}

.editor-tool-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.editor-tool-card[data-editor-tools-ready='true'] {
  border-color: rgba(60, 111, 255, 0.45);
  box-shadow: 0 22px 46px rgba(60, 111, 255, 0.18);
}

.editor-tool-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(107, 115, 255, 0.22), rgba(182, 144, 255, 0.32));
  box-shadow: inset 0 0 0 1px rgba(120, 125, 255, 0.35), 0 12px 28px rgba(68, 80, 188, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.editor-tool-card__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.editor-tool-card--lists .editor-tool-card__icon {
  flex-direction: column;
  gap: 4px;
}

.editor-tool-card--lists .editor-tool-card__icon svg {
  width: 13px;
  height: 13px;
}

.editor-tool-card__text {
  display: grid;
  gap: 0.35rem;
  padding-right: 4.2rem;
}

.editor-tool-card__info {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.editor-tool-card__info-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(102, 112, 172, 0.85);
  white-space: nowrap;
}

.editor-tool-card__info-button {
  pointer-events: auto;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(110, 122, 255, 0.16);
  color: #5560d6;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(110, 122, 255, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.editor-tool-card__info-button:hover,
.editor-tool-card__info-button:focus-visible {
  background: rgba(110, 122, 255, 0.32);
  transform: translateY(-1px);
  outline: none;
}

.editor-tool-card__info-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(255px, 62vw);
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(30, 46, 120, 0.22);
  border: 1px solid rgba(110, 122, 255, 0.18);
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.editor-tool-card__info-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-left: inherit;
  border-top: inherit;
  transform: rotate(45deg);
}

[data-tool-info][data-open='true'] .editor-tool-card__info-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.editor-tool-card__info-panel p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(30, 40, 92, 0.85);
  max-width: 220px;
}

.editor-tool-card__info-figure {
  margin: 0;
  display: grid;
  gap: 0;
  justify-items: center;
  width: 100%;
}

.editor-tool-card__info-figure img {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(64, 84, 180, 0.24);
}

.editor-tool-card__info-sample {
  background: linear-gradient(180deg, rgba(246, 248, 255, 0.82) 0%, rgba(228, 235, 255, 0.9) 100%);
  border-radius: 18px;
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.editor-tool-card__info-sample-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(102, 110, 174, 0.9);
}

.editor-tool-card__info-sample-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 182, 199, 0.75);
  color: #eb4f74;
  font-weight: 600;
  font-size: 0.8rem;
  border: 2px dashed rgba(110, 137, 255, 0.7);
  box-shadow: 0 6px 16px rgba(96, 116, 220, 0.15);
}

.editor-tool-card__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(102, 112, 172, 0.85);
}

.editor-tool-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.editor-tool-card__desc {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(58, 70, 115, 0.78);
  line-height: 1.55;
}

.editor-tool-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.editor-tool-card__actions--row {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.editor-tool-card__actions .editor-chip-button {
  flex: 0 0 auto;
  min-width: 0;
}

.editor-chip-button {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(130deg, rgba(107, 115, 255, 0.18), rgba(182, 144, 255, 0.18));
  border-radius: 999px;
  border: 1px solid rgba(125, 132, 255, 0.35);
  color: rgba(51, 64, 110, 0.9);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background-clip: padding-box;
}

.editor-chip-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.editor-chip-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(102, 110, 255, 0.25);
  border-color: rgba(107, 115, 255, 0.55);
}

.editor-chip-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(107, 115, 255, 0.16);
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(107, 115, 255, 0.85);
}

.editor-tool-card__hint {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(70, 83, 132, 0.75);
  line-height: 1.5;
}

.editor-tool-card--images .editor-chip-button__icon {
  background: rgba(255, 130, 105, 0.18);
  color: rgba(255, 130, 105, 0.9);
}

.editor-inline-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 111, 255, 0.15);
  box-shadow: 0 12px 30px rgba(15, 26, 67, 0.08);
}

.editor-inline-tools[data-editor-tools-ready='true'] {
  border-color: rgba(60, 111, 255, 0.35);
  box-shadow: 0 16px 36px rgba(60, 111, 255, 0.16);
}

.editor-inline-tools p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.editor-inline-tools__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-inline-tools small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-inline-tools .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.editor-image-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 111, 255, 0.15);
  box-shadow: 0 12px 30px rgba(15, 26, 67, 0.08);
}

.editor-image-tools[data-editor-image-active='true'] {
  border-color: rgba(255, 119, 101, 0.35);
  box-shadow: 0 16px 36px rgba(255, 119, 101, 0.18);
}

.editor-image-tools p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.editor-image-tools__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-image-tools small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-image-tools .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.editor-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(60, 111, 255, 0.08);
}

.editor-status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  transition: background 0.2s ease;
}

.editor-status__dot[data-state='dirty'] {
  background: #ff7b5a;
}

.editor-status__dot[data-state='saving'] {
  background: #f0a500;
}

.editor-status__dot[data-state='error'] {
  background: #ff4d7c;
}

.editor-status__text {
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-block;
  line-height: 1.5;
}

.editor-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.editor-canvas {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(245, 247, 255, 0.5) 0%, rgba(235, 241, 255, 0.8) 100%);
}

.editor-canvas__stage {
  position: relative;
  width: min(100%, 1100px);
  min-height: 820px;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 0 auto;
  border-radius: 40px;
  backdrop-filter: blur(18px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.52) 0%, rgba(229, 235, 255, 0.32) 100%);
  box-shadow: 0 24px 54px rgba(52, 72, 180, 0.12);
  overflow: visible;
}

.editor-canvas__frame {
  position: absolute;
  top: 0;
  left: 0;
  --canvas-scale: 1;
  --canvas-base-width: 880px;
  --canvas-base-height: calc(880px * 297 / 210);
  width: calc(var(--canvas-base-width) * var(--canvas-scale));
  height: calc(var(--canvas-base-height) * var(--canvas-scale));
  border-radius: 28px;
  touch-action: none;
  will-change: width, height, left, top;
}

.editor-canvas__frame::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 32px;
  border: 2px dashed rgba(76, 115, 255, 0.35);
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-canvas__frame:hover::after,
.editor-canvas__frame:focus-within::after {
  border-color: rgba(76, 115, 255, 0.6);
  box-shadow: 0 10px 24px rgba(64, 94, 210, 0.18);
}

.editor-canvas__viewport {
  width: var(--canvas-base-width);
  height: var(--canvas-base-height);
  transform-origin: top left;
  transform: scale(var(--canvas-scale));
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 24, 64, 0.2);
  background: #fff;
}

.editor-canvas__viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

.editor-canvas__drag-control {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
  z-index: 4;
}

.editor-canvas__drag {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  border: none;
  background: linear-gradient(120deg, #6c7aff 0%, #9d61ff 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: grab;
  box-shadow: 0 16px 32px rgba(84, 110, 255, 0.26);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  pointer-events: auto;
}

.editor-canvas__drag:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.editor-canvas__drag:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.editor-canvas__drag-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.editor-canvas__drag-label {
  display: inline-block;
}

.editor-canvas__drag-handle--left {
  left: -42px;
}

.editor-canvas__drag-handle--right {
  right: -42px;
  transform: translateY(-50%) rotate(180deg);
}

.editor-canvas__drag-handle--right:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.03);
}

.editor-canvas__drag-handle--right:active {
  transform: translateY(-50%) rotate(180deg) scale(0.98);
}

.editor-canvas__resize {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #6c7aff 0%, #a06aff 100%);
  box-shadow: 0 10px 18px rgba(40, 58, 140, 0.28);
  pointer-events: auto;
  touch-action: none;
  transition: transform 0.15s ease;
  z-index: 3;
}

.editor-canvas__resize:hover {
  transform: scale(1.08);
}

.editor-canvas__resize--top {
  top: -16px;
  left: 50%;
  transform: translate(-50%, 0);
  cursor: ns-resize;
}

.editor-canvas__resize--bottom {
  bottom: -16px;
  left: 50%;
  transform: translate(-50%, 0);
  cursor: ns-resize;
}

.editor-canvas__resize--left {
  left: -16px;
  top: 50%;
  transform: translate(0, -50%);
  cursor: ew-resize;
}

.editor-canvas__resize--right {
  right: -16px;
  top: 50%;
  transform: translate(0, -50%);
  cursor: ew-resize;
}

.editor-canvas__resize--top-left {
  top: -16px;
  left: -16px;
  cursor: nwse-resize;
}

.editor-canvas__resize--top-right {
  top: -16px;
  right: -16px;
  cursor: nesw-resize;
}

.editor-canvas__resize--bottom-left {
  bottom: -16px;
  left: -16px;
  cursor: nesw-resize;
}

.editor-canvas__resize--bottom-right {
  bottom: -16px;
  right: -16px;
  cursor: nwse-resize;
}

.editor-canvas__drag-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(32, 48, 120, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.editor-canvas__drag-toggle span {
  width: 14px;
  height: 14px;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="black" d="M7 10.75a1 1 0 0 1-.82-.42l-3.5-4.9a1 1 0 0 1 .27-1.45.98.98 0 0 1 .55-.18h7.5a1 1 0 0 1 .97 1.26 1 1 0 0 1-.14.29l-3.5 4.9a1 1 0 0 1-.82.5Z"/></svg>');
  background: linear-gradient(140deg, #6c7aff 0%, #9d61ff 100%);
  display: block;
  transition: transform 0.2s ease;
}

[data-drag-control][data-state='collapsed'] .editor-canvas__drag {
  display: none;
}

[data-drag-control][data-state='collapsed'] .editor-canvas__drag-toggle span {
  transform: rotate(180deg);
}

.editor-canvas__drag-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(42, 58, 150, 0.35);
}

.editor-canvas__drag-toggle:active {
  transform: scale(0.94);
}

.editor-canvas__drag-edge {
  position: absolute;
  background: rgba(108, 122, 255, 0.0);
  cursor: grab;
  z-index: 2;
}

.editor-canvas__drag-edge:hover {
  background: rgba(108, 122, 255, 0.15);
}

.editor-canvas__drag-edge:active {
  cursor: grabbing;
}

.editor-canvas__drag-edge--top,
.editor-canvas__drag-edge--bottom {
  left: -16px;
  width: calc(100% + 32px);
  height: 18px;
}

.editor-canvas__drag-edge--top {
  top: -24px;
  border-radius: 12px 12px 0 0;
}

.editor-canvas__drag-edge--bottom {
  bottom: -24px;
  border-radius: 0 0 12px 12px;
}

.editor-canvas__drag-edge--left,
.editor-canvas__drag-edge--right {
  top: -16px;
  height: calc(100% + 32px);
  width: 18px;
}

.editor-canvas__drag-edge--left {
  left: -24px;
  border-radius: 12px 0 0 12px;
}

.editor-canvas__drag-edge--right {
  right: -24px;
  border-radius: 0 12px 12px 0;
}

@media (max-width: 1100px) {
  .editor-page {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .editor-canvas__stage {
    width: 100%;
    min-height: 720px;
    padding: clamp(1.5rem, 6vw, 3rem);
  }

  .editor-canvas__drag-control {
    top: -52px;
  }
}

@media (max-width: 820px) {
  .editor-sidebar__grid {
    grid-template-columns: 1fr;
  }

  .editor-tool-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-tool-card__actions,
  .editor-tool-card__actions--row {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }
}

.btn--icon {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.editor-share__button,
.editor-share__primary {
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.editor-share__button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.editor-share__panel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 104px;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(109, 118, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.editor-share__panel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(82, 103, 255, 0.35);
  border-color: rgba(142, 148, 255, 0.45);
}

.editor-share__panel-item:active {
  transform: translateY(-1px);
}

.editor-share__primary {
  background: linear-gradient(130deg, rgba(111, 123, 255, 0.95), rgba(182, 144, 255, 0.95));
  border: 1px solid rgba(178, 149, 255, 0.75);
  color: #fff;
  padding: 0.45rem 1.05rem;
  box-shadow: 0 16px 28px rgba(108, 116, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-share__label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.editor-share__primary:hover {
  box-shadow: 0 18px 32px rgba(108, 116, 255, 0.48);
  filter: brightness(1.05);
}

.editor-share__chevron {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.editor-tool-card {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(60, 111, 255, 0.1);
  box-shadow: 0 8px 18px rgba(15, 26, 67, 0.12);
}

.editor-tool-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.editor-tool-card[data-editor-tools-ready='true'] {
  border-color: rgba(60, 111, 255, 0.45);
  box-shadow: 0 22px 46px rgba(60, 111, 255, 0.18);
}

.editor-tool-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(107, 115, 255, 0.22), rgba(182, 144, 255, 0.32));
  box-shadow: inset 0 0 0 1px rgba(120, 125, 255, 0.35), 0 12px 28px rgba(68, 80, 188, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.editor-tool-card__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.editor-tool-card--lists .editor-tool-card__icon {
  flex-direction: column;
  gap: 4px;
}

.editor-tool-card--lists .editor-tool-card__icon svg {
  width: 13px;
  height: 13px;
}

.editor-tool-card__text {
  display: grid;
  gap: 0.35rem;
  padding-right: 4.2rem;
}

.editor-tool-card__info {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.editor-tool-card__info-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(102, 112, 172, 0.85);
  white-space: nowrap;
}

.editor-tool-card__info-button {
  pointer-events: auto;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(110, 122, 255, 0.16);
  color: #5560d6;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(110, 122, 255, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.editor-tool-card__info-button:hover,
.editor-tool-card__info-button:focus-visible {
  background: rgba(110, 122, 255, 0.32);
  transform: translateY(-1px);
  outline: none;
}

.editor-tool-card__info-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(255px, 62vw);
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(30, 46, 120, 0.22);
  border: 1px solid rgba(110, 122, 255, 0.18);
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.editor-tool-card__info-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-left: inherit;
  border-top: inherit;
  transform: rotate(45deg);
}

[data-tool-info][data-open='true'] .editor-tool-card__info-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.editor-tool-card__info-panel p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(30, 40, 92, 0.85);
  max-width: 220px;
}

.editor-tool-card__info-figure {
  margin: 0;
  display: grid;
  gap: 0;
  justify-items: center;
  width: 100%;
}

.editor-tool-card__info-figure img {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(64, 84, 180, 0.24);
}

.editor-tool-card__info-sample {
  background: linear-gradient(180deg, rgba(246, 248, 255, 0.82) 0%, rgba(228, 235, 255, 0.9) 100%);
  border-radius: 18px;
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.editor-tool-card__info-sample-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(102, 110, 174, 0.9);
}

.editor-tool-card__info-sample-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 182, 199, 0.75);
  color: #eb4f74;
  font-weight: 600;
  font-size: 0.8rem;
  border: 2px dashed rgba(110, 137, 255, 0.7);
  box-shadow: 0 6px 16px rgba(96, 116, 220, 0.15);
}

.editor-tool-card__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(102, 112, 172, 0.85);
}

.editor-tool-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.editor-tool-card__desc {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(58, 70, 115, 0.78);
  line-height: 1.55;
}

.editor-tool-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.editor-tool-card__actions--row {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.editor-tool-card__actions .editor-chip-button {
  flex: 0 0 auto;
  min-width: 0;
}

.editor-chip-button {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(130deg, rgba(107, 115, 255, 0.18), rgba(182, 144, 255, 0.18));
  border-radius: 999px;
  border: 1px solid rgba(125, 132, 255, 0.35);
  color: rgba(51, 64, 110, 0.9);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background-clip: padding-box;
}

.editor-chip-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.editor-chip-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(102, 110, 255, 0.25);
  border-color: rgba(107, 115, 255, 0.55);
}

.editor-chip-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(107, 115, 255, 0.16);
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(107, 115, 255, 0.85);
}

.editor-tool-card__hint {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(70, 83, 132, 0.75);
  line-height: 1.5;
}

.editor-tool-card--images .editor-chip-button__icon {
  background: rgba(255, 130, 105, 0.18);
  color: rgba(255, 130, 105, 0.9);
}

.editor-inline-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 111, 255, 0.15);
  box-shadow: 0 12px 30px rgba(15, 26, 67, 0.08);
}

.editor-inline-tools[data-editor-tools-ready='true'] {
  border-color: rgba(60, 111, 255, 0.35);
  box-shadow: 0 16px 36px rgba(60, 111, 255, 0.16);
}

.editor-inline-tools p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.editor-inline-tools__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-inline-tools small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-inline-tools .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.editor-image-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 111, 255, 0.15);
  box-shadow: 0 12px 30px rgba(15, 26, 67, 0.08);
}

.editor-image-tools[data-editor-image-active='true'] {
  border-color: rgba(255, 119, 101, 0.35);
  box-shadow: 0 16px 36px rgba(255, 119, 101, 0.18);
}

.editor-image-tools p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.editor-image-tools__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-image-tools small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-image-tools .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.editor-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(60, 111, 255, 0.08);
}

.editor-status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  transition: background 0.2s ease;
}

.editor-status__dot[data-state='dirty'] {
  background: #ff7b5a;
}

.editor-status__dot[data-state='saving'] {
  background: #f0a500;
}

.editor-status__dot[data-state='error'] {
  background: #ff4d7c;
}

.editor-status__text {
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-block;
  line-height: 1.5;
}

.editor-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.editor-canvas {
  position: relative;
}

.editor-share-overlay {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(18, 25, 54, 0.88);
  padding: 0.4rem 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(98, 102, 255, 0.25);
  box-shadow: 0 12px 30px rgba(10, 18, 58, 0.28);
  backdrop-filter: blur(8px);
  z-index: 200;
}

.topbar__actions .editor-share-overlay {
  margin-right: 0.5rem;
}

.editor-share-overlay[data-context='topbar'] {
  position: static;
  margin-left: auto;
}

.editor-share-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  display: none;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border-radius: 20px;
  background: rgba(15, 20, 46, 0.96);
  border: 1px solid rgba(120, 125, 255, 0.28);
  box-shadow: 0 24px 48px rgba(8, 15, 45, 0.5);
  backdrop-filter: blur(16px);
  align-items: stretch;
  z-index: 210;
}

.editor-share-overlay[data-open='true'] .editor-share-panel {
  display: flex;
}

.editor-share-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.editor-share-overlay--inline {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 234, 255, 0.92));
  border: 1px solid rgba(128, 138, 255, 0.28);
  box-shadow: 0 18px 34px rgba(88, 106, 214, 0.18);
  padding: 0.35rem 0.5rem;
  gap: 0.55rem;
  backdrop-filter: blur(8px);
}

.editor-share-overlay--inline::after {
  display: none;
}

.editor-share-overlay--inline .editor-share__primary {
  background: linear-gradient(130deg, #6f77ff 0%, #a168ff 100%);
  border: none;
  color: #fff;
  padding: 0.48rem 1.2rem 0.48rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(108, 116, 255, 0.32);
  gap: 0.55rem;
}

.editor-share-overlay--inline .editor-share__chevron {
  color: rgba(255, 255, 255, 0.88);
  margin-left: 0.35rem;
}

.editor-share-overlay--inline .editor-share__label {
  letter-spacing: 0.14em;
}

.editor-share-overlay--inline .editor-share__primary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.editor-share-overlay--inline .editor-share__primary-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.editor-share-overlay--inline .editor-share-panel {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(142, 150, 255, 0.26);
  box-shadow: 0 22px 44px rgba(90, 108, 218, 0.2);
  right: auto;
  left: 0;
  z-index: 220;
}

.editor-share-overlay--inline .editor-share__panel-item {
  color: rgba(53, 66, 120, 0.92);
  border: 1px solid rgba(138, 150, 255, 0.18);
  background: linear-gradient(150deg, rgba(233, 236, 255, 0.42), rgba(255, 255, 255, 0.9));
}

.editor-share-overlay--inline .editor-share__panel-item:hover {
  box-shadow: 0 16px 32px rgba(104, 118, 232, 0.24);
  border-color: rgba(123, 134, 255, 0.38);
}

.editor-share-overlay--inline .editor-share__panel-icon {
  background: linear-gradient(150deg, rgba(127, 140, 255, 0.16), rgba(196, 176, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(150, 160, 255, 0.25);
  color: rgba(90, 106, 210, 0.92);
}

.editor-share__panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(115, 124, 255, 0.25), rgba(204, 169, 255, 0.25));
  box-shadow: inset 0 0 0 1px rgba(180, 160, 255, 0.3);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.editor-share__panel-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.editor-share__panel-label {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .editor-status--inline {
    justify-content: flex-start;
    width: 100%;
  }

  .editor-share-overlay,
  .editor-share-overlay--inline {
    position: static;
    margin: 0 auto 1rem;
  }

  .editor-share-panel {
    position: static;
    display: flex !important;
    width: auto;
    margin-top: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .editor-share__panel-item {
    min-width: 140px;
  }
}

@media (max-width: 520px) {
  .editor-share__panel-item {
    min-width: 120px;
  }
}

@media print {
  .editor-share-overlay {
    display: none !important;
  }
}

.editor-info-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(114, 125, 255, 0.12), rgba(182, 143, 255, 0.16));
  border: 1px solid rgba(116, 128, 255, 0.18);
  box-shadow: 0 10px 22px rgba(78, 92, 185, 0.14);
  color: rgba(40, 52, 105, 0.85);
}

.editor-info-card h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.editor-info-card p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.74rem;
}

.editor-status--compact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(108, 122, 255, 0.18);
  border-radius: 14px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 6px 16px rgba(52, 72, 180, 0.12);
  width: fit-content;
}

.editor-status__meta {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  font-size: 0.78rem;
}

.editor-status__time {
  font-size: 0.68rem;
  color: rgba(60, 74, 130, 0.72);
}

.editor-status--compact .editor-status__text {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(45, 58, 115, 0.98);
}

.editor-status--compact .editor-status__dot {
  width: 12px;
  height: 12px;
}

.editor-status--compact .editor-status__dot[data-state='idle'] {
  background: var(--green);
}

.editor-status--compact .editor-status__dot[data-state='dirty'] {
  background: #ffb347;
}

.editor-status--compact .editor-status__dot[data-state='saving'] {
  background: #4da3ff;
}

.editor-status--compact .editor-status__dot[data-state='error'] {
  background: #ff5f5f;
}

.dashboard-project__preview-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  cursor: pointer;
}


.dashboard-project__preview-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -4px;
}

/* Maak CV (leeg CV builder)
   ------------------------------------------------------------------ */
.page-make-cv {
  background: linear-gradient(180deg, #f6f8ff 0%, #fff 80%);
}

.make-cv {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5rem);
}

.make-cv__wrapper {
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.make-cv__sidebar {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  border: 1px solid rgba(200, 210, 255, 0.42);
  box-shadow: 0 30px 60px rgba(30, 40, 90, 0.12);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  max-height: none;
  overflow-y: auto;
  position: sticky;
  top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.make-cv__intro h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
}

.make-cv__intro p {
  margin: 0 0 1.3rem;
  color: var(--muted);
}

.make-cv__import {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.make-cv__import-item {
  border: 1px solid rgba(180, 192, 240, 0.55);
  background: #f9faff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: #1a2252;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.make-cv__import-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(50, 70, 140, 0.15);
}

.make-cv__import-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(120deg, #4f71ff, #7f9cff);
  color: #fff;
  font-size: 1.05rem;
}

.make-cv__section {
  display: grid;
  gap: 1.1rem;
}

.make-cv__accordion {
  border: none;
  border-radius: 16px;
  background: transparent;
  margin: 0;
}

.make-cv__accordion + .make-cv__accordion {
  margin-top: 1rem;
}

.make-cv__accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(180, 192, 240, 0.55);
  background: rgba(248, 250, 255, 0.92);
  box-shadow: 0 14px 34px rgba(28, 40, 82, 0.08);
}

.make-cv__accordion summary::-webkit-details-marker {
  display: none;
}

.make-cv__accordion summary span {
  font-weight: 700;
  color: #111b43;
  font-size: 1rem;
}

.make-cv__accordion-drag-handle {
  cursor: grab;
  color: #999;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.25rem;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.make-cv__accordion-drag-handle:hover {
  color: #5a70ff;
}

.make-cv__accordion-drag-handle:active {
  cursor: grabbing;
}

.make-cv__accordion[data-section-order] {
  transition: transform 0.2s ease;
}

.classic-cv__block.is-highlighted,
.classic-cv__sidebar-group.is-highlighted {
  outline: 1px solid #5a70ff;
  outline-offset: 2px;
  background: rgba(90, 110, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 2px rgba(90, 110, 255, 0.1);
}

.make-cv__accordion[open] summary span {
  color: #0d155b;
}

.make-cv__accordion-controls {
  display: inline-flex;
  gap: 0.35rem;
}

.make-cv__accordion-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem 1.1rem 1.25rem;
  margin-top: 0.6rem;
  border: 1px solid rgba(190, 200, 240, 0.4);
  border-radius: 14px;
  background: rgba(250, 252, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 20px 30px rgba(26, 38, 82, 0.08);
}

.make-cv__summary-icon,
.make-cv__summary-actions,
.make-cv__summary-arrow {
  pointer-events: none;
}

.make-cv__accordion-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #13205a;
}

.make-cv__summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(120, 132, 220, 0.12);
  border: 1px solid rgba(120, 132, 220, 0.25);
  color: #1d2a6b;
  font-weight: 700;
  font-size: 1.05rem;
}

.make-cv__summary-actions {
  display: inline-flex;
  gap: 0.5rem;
}

.make-cv__summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(120, 132, 220, 0.12);
  border: 1px solid rgba(120, 132, 220, 0.25);
  color: #1d2a6b;
  font-size: 0.85rem;
  font-weight: 700;
}

.make-cv__chips button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.make-cv__field select {
  width: 100%;
  border: 1px solid rgba(190, 200, 240, 0.65);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  background: rgba(250, 252, 255, 0.9);
}

.make-cv__preview-canvas {
  background: linear-gradient(135deg, rgba(90, 110, 255, 0.08), rgba(140, 80, 255, 0.05));
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
}

.make-cv__preview-scroll {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(190, 200, 225, 0.25);
  box-shadow: 0 22px 44px rgba(24, 34, 72, 0.12);
  overflow: hidden;
  display: block;
}

.classic-cv {
  display: block;
  font-family: 'Inter', sans-serif;
  color: #1b2338;
  font-size: 10px;
  line-height: 1.3;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 210 / 297;
  min-height: 1120px;
  height: 1120px;
  margin: 0 auto;
  overflow: hidden;
}

.classic-cv [hidden] {
  display: none !important;
}

.classic-cv__grid {
  display: grid;
  grid-template-columns: 23% 77%;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem 1.4rem 1.4rem;
  height: 100%;
  box-sizing: border-box;
}

.classic-cv__sidebar {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.classic-cv__photo {
  width: 85px;
  height: 85px;
  border-radius: 8px;
  border: 1.5px dashed rgba(68, 88, 152, 0.3);
  background: rgba(88, 112, 190, 0.06);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(40, 60, 130, 0.4);
  margin-bottom: 0.3rem;
}

.classic-cv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.classic-cv__sidebar-group {
  display: grid;
  gap: 0.3rem;
}

.classic-cv__sidebar-group--lined {
  padding-top: 0.7rem;
  border-top: 0.5px solid rgba(41, 66, 150, 0.12);
  margin-top: 0.2rem;
}

.classic-cv__sidebar-group h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #1b2338;
}

.classic-cv__sidebar-group p {
  margin: 0;
  font-weight: 500;
  color: rgba(40, 60, 130, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  line-height: 1.3;
}

.classic-cv__sidebar-group h3 {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(36, 47, 89, 0.75);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.classic-cv__sidebar-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-size: 10px;
  color: rgba(22, 28, 45, 0.82);
  line-height: 1.3;
}

.classic-cv__sidebar-group li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.3;
}

.classic-cv__sidebar-group li span {
  display: inline-block;
  font-size: 10px;
  line-height: 1.3;
}

.classic-cv__sidebar-group li span + span {
  font-weight: 500;
  color: rgba(42, 58, 110, 0.7);
  font-size: 10px;
}

.classic-cv__content {
  display: grid;
  gap: 0.7rem;
  border-left: 0.5px solid rgba(41, 66, 150, 0.12);
  padding-left: 1.4rem;
}

.classic-cv__block {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 0;
  min-height: auto;
  position: relative;
  overflow: visible;
}

.classic-cv__block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto;
  height: auto;
  margin-bottom: 0.3rem !important;
}

.classic-cv__block:not(.is-empty) {
  border: none;
  background: transparent;
  box-shadow: none;
}

.classic-cv__block.is-empty {
  background: transparent;
  border: none;
  box-shadow: none;
}

.classic-cv__block.is-empty .classic-cv__block-header,
.classic-cv__block.is-empty > *:not(.classic-cv__block-header) {
  display: none;
}

.classic-cv__block h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(36, 47, 89, 0.85);
  line-height: 1.3 !important;
  font-weight: 600;
}

.classic-cv__block > p {
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 0.2rem !important;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(24, 32, 62, 0.82);
}

.classic-cv__entries {
  display: grid;
  gap: 0.5rem;
  margin: 0 !important;
  margin-top: 0.2rem !important;
  padding: 0 !important;
}

.classic-cv__entry {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid rgba(41, 66, 150, 0.12);
}

.classic-cv__entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.classic-cv__entry header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.2rem;
}

.classic-cv__entry header > div:first-child {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.1rem;
  align-items: start;
}

.classic-cv__entry h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(22, 28, 45, 0.9);
  line-height: 1.3;
}

.classic-cv__entry > header > div:first-child span {
  display: block;
  font-size: 10px;
  color: rgba(22, 28, 45, 0.7);
  line-height: 1.3;
}

.classic-cv__entry p {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(24, 32, 62, 0.84);
}

.classic-cv__entry ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
  font-size: 9.5px;
  line-height: 1.3;
  color: rgba(24, 32, 62, 0.84);
}

.classic-cv__entry li {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.classic-cv__entry li:last-child {
  margin-bottom: 0;
}

.classic-cv__entry-meta {
  text-align: right;
  font-size: 9px;
  color: rgba(36, 47, 89, 0.62);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.1rem;
  align-items: start;
  line-height: 1.3;
}

.classic-cv__entry-date {
  white-space: nowrap;
  line-height: 1.3;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  min-height: auto;
}

.classic-cv__entry-location {
  white-space: nowrap;
  line-height: 1.3;
  margin-top: 0;
  display: flex;
  align-items: center;
  min-height: auto;
}

.make-cv__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.make-cv__section-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.make-cv__section-controls {
  display: inline-flex;
  gap: 0.35rem;
}

.make-cv__icon-btn {
  border: 1px solid rgba(180, 190, 230, 0.6);
  background: #fff;
  color: #1a2252;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.make-cv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.make-cv__grid--photo {
  grid-template-columns: 140px repeat(2, minmax(0, 1fr));
}

.make-cv__field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.make-cv__field span {
  color: rgba(26, 34, 82, 0.78);
  font-weight: 600;
}

.make-cv__field--calendar {
  gap: 0.55rem;
}

.make-cv__date-trigger {
  width: 100%;
  border: 1px solid rgba(182, 194, 246, 0.7);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(246, 248, 255, 0.95), rgba(232, 238, 255, 0.85));
  color: rgba(26, 34, 82, 0.72);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  position: relative;
  text-transform: capitalize;
}

.make-cv__date-trigger::after {
  content: '';
  width: 11px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M2 4l3.5 3L9 4' fill='none' stroke='%235a6eff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 0.75rem;
}

.make-cv__date-trigger:hover {
  border-color: rgba(96, 116, 255, 0.6);
  box-shadow: 0 6px 16px rgba(36, 52, 120, 0.12);
  color: rgba(22, 28, 66, 0.88);
}

.make-cv__date-trigger.has-value {
  border-color: rgba(96, 116, 255, 0.7);
  background: linear-gradient(135deg, rgba(236, 240, 255, 0.98), rgba(220, 228, 255, 0.9));
  color: rgba(20, 28, 64, 0.95);
}

.make-cv__date-trigger.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  pointer-events: none;
}

.make-cv__field input,
.make-cv__field textarea {
  width: 100%;
  border: 1px solid rgba(190, 200, 240, 0.65);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  background: rgba(250, 252, 255, 0.9);
  resize: vertical;
}

.make-cv__field textarea {
  min-height: 120px;
}

.make-cv__field--photo {
  padding: 0.85rem;
  border: 1px dashed rgba(150, 170, 230, 0.7);
  border-radius: 16px;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  background: rgba(246, 248, 255, 0.6);
}

.make-cv__photo-btn {
  width: 100%;
  max-width: 176px;
  aspect-ratio: 1;
  border-radius: 14px;
  border: none;
  background: rgba(236, 240, 255, 0.8);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  color: rgba(26, 34, 82, 0.75);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.make-cv__photo-btn:hover {
  background: rgba(224, 230, 255, 0.95);
  color: rgba(22, 28, 70, 0.95);
  box-shadow: 0 14px 28px rgba(32, 50, 120, 0.18);
  transform: translateY(-2px);
}

.make-cv__photo-btn-icon {
  font-size: 2.8rem;
  display: block;
  line-height: 1;
}

.make-cv__photo-btn-text {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}

.make-cv__photo-btn--hidden {
  display: none;
}

.make-cv__photo-input {
  display: none;
}

.make-cv__photo-preview {
  display: none;
  width: 100%;
  max-width: 176px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 34px rgba(24, 34, 78, 0.18);
}

.make-cv__photo-preview.is-visible {
  display: block;
}

.make-cv__photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.make-cv__photo-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(14, 22, 56, 0.35);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.classic-cv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.make-cv__photo-remove:hover {
  background: rgba(14, 22, 56, 0.55);
  transform: translateY(-1px);
}

.make-cv__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(26, 34, 82, 0.78);
  font-weight: 600;
}

.make-cv__grid--dates {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 0.8rem;
}

.make-cv__grid--dates--with-toggle .make-cv__toggle--inline {
  align-self: center;
}

.make-cv__toggle--inline {
  margin-left: auto;
}


.make-cv__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.make-cv-datepicker-open {
  overflow: hidden;
}

.make-cv-datepicker {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 64, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2500;
}

.make-cv-datepicker.is-visible {
  display: flex;
}

.make-cv-datepicker__panel {
  width: min(360px, 92vw);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 65px rgba(16, 28, 80, 0.2);
  display: grid;
  gap: 1.4rem;
  padding: 1.8rem 1.6rem 1.6rem;
}

.make-cv-datepicker__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.make-cv-datepicker__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(20, 28, 70, 0.92);
}

.make-cv-datepicker__subtitle {
  display: block;
  font-size: 0.82rem;
  color: rgba(24, 32, 72, 0.55);
  margin-top: 0.15rem;
}

.make-cv-datepicker__close {
  border: none;
  background: rgba(230, 235, 255, 0.8);
  color: rgba(28, 36, 82, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.make-cv-datepicker__close:hover {
  background: rgba(98, 118, 255, 0.16);
  color: rgba(26, 34, 82, 0.95);
}

.make-cv-datepicker__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.make-cv-datepicker__select {
  border: 1px solid rgba(186, 198, 246, 0.7);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: rgba(26, 34, 82, 0.8);
  background: linear-gradient(135deg, rgba(246, 248, 255, 0.98), rgba(230, 236, 255, 0.88));
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 2l4 4 4-4' fill='none' stroke='%23516dff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.make-cv-datepicker__select:focus {
  outline: none;
  border-color: rgba(90, 110, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(96, 116, 255, 0.18);
}

.make-cv-datepicker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  text-align: center;
}

.make-cv-datepicker__dayname {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(26, 34, 80, 0.55);
  text-transform: uppercase;
}

.make-cv-datepicker__empty {
  height: 42px;
}

.make-cv-datepicker__day {
  border: none;
  background: rgba(236, 240, 255, 0.7);
  color: rgba(28, 34, 80, 0.75);
  font-weight: 600;
  border-radius: 12px;
  height: 42px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.make-cv-datepicker__day:hover {
  background: rgba(112, 132, 255, 0.2);
  color: rgba(22, 28, 68, 0.95);
  transform: translateY(-1px);
}

.make-cv-datepicker__day.is-selected {
  background: linear-gradient(135deg, #5a70ff, #8d58ff);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(80, 108, 255, 0.24);
}

.make-cv-datepicker__confirm {
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, #566bff, #8d58ff);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.make-cv-datepicker__confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(80, 108, 255, 0.25);
}


.make-cv__chips .make-cv__chip {
  background: #f5f7fa;
  border: 1px solid rgba(68, 88, 152, 0.2);
  color: rgba(27, 35, 56, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.make-cv__chips .make-cv__chip:hover {
  background: rgba(90, 110, 255, 0.1);
  border-color: rgba(90, 110, 255, 0.3);
  color: rgba(90, 110, 255, 0.9);
}

.make-cv__chips .make-cv__chip.is-active {
  background: #5a70ff;
  border-color: #5a70ff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(90, 110, 255, 0.3);
}

.make-cv__chips button {
  border: 1px solid rgba(190, 200, 240, 0.65);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: #1a2252;
  cursor: pointer;
  transition: all 0.2s ease;
}

.make-cv__chips button:hover:not([disabled]) {
  background: rgba(90, 110, 255, 0.1);
  border-color: rgba(90, 110, 255, 0.3);
  color: rgba(90, 110, 255, 0.9);
}

.make-cv__chips button.is-active {
  background: linear-gradient(135deg, #5a70ff, #8d58ff);
  border-color: #5a70ff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(90, 110, 255, 0.3);
}

.make-cv__chips--wrap {
  gap: 0.5rem;
}

.make-cv__card {
  border: 1px solid rgba(190, 200, 240, 0.5);
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.65);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: visible;
}

.make-cv__card--compact {
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  padding-bottom: 2.5rem;
}

.make-cv__card--stacked {
  gap: 1.1rem;
}

.make-cv__collection {
  display: grid;
  gap: 1rem;
}

.make-cv__collection-items {
  display: grid;
  gap: 1rem;
}

.make-cv__collection-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(24, 34, 82, 0.8);
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.make-cv__collection-item-header strong {
  flex: 1;
  min-width: 0;
}

.make-cv__collection-remove {
  border: none;
  background: transparent;
  color: #ef4444;
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  position: relative;
}

.make-cv__collection-remove::before {
  content: '🗑️';
  font-size: 1rem;
  line-height: 1;
  display: block;
}

.make-cv__collection-remove:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
}

.make-cv__collection-remove:active:not(:disabled) {
  transform: scale(0.95);
  background: rgba(239, 68, 68, 0.2);
}

.make-cv__collection-remove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  color: #999;
}

.make-cv__card-remove {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #ef4444;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
  max-width: calc(100% - 1.5rem);
  white-space: nowrap;
}

.make-cv__card-remove span[aria-hidden="true"] {
  font-size: 1.1rem;
  line-height: 1;
  display: block;
}

.make-cv__card-remove span:not([aria-hidden="true"]):not(.sr-only) {
  display: inline-block;
}

.make-cv__card-remove:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
}

.make-cv__card-remove:active:not(:disabled) {
  transform: scale(0.95);
  background: rgba(239, 68, 68, 0.2);
}

.make-cv__card-remove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  color: #999;
}

.make-cv__card-header {
  position: relative;
}

.make-cv__collection-add {
  border: 1px dashed rgba(150, 170, 220, 0.7);
  background: rgba(250, 252, 255, 0.9);
  color: rgba(26, 34, 82, 0.8);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.make-cv__collection-add:hover {
  background: rgba(108, 128, 255, 0.08);
  border-color: rgba(108, 128, 255, 0.4);
  color: rgba(40, 60, 150, 0.95);
}

.make-cv__toggle--inline {
  margin-left: 0;
  align-self: end;
  padding-bottom: 0.5rem;
}

.make-cv__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
}

.make-cv__footer-actions {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.make-cv__preview {
  display: grid;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  border: 1px solid rgba(210, 220, 255, 0.45);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 28px 55px rgba(20, 40, 120, 0.14);
  position: sticky;
  top: clamp(1.5rem, 3vw, 2.5rem);
}

.make-cv__preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
  position: relative;
}

.make-cv__preview-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.make-cv__preview-zoom-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  border: 2px solid rgba(60, 111, 255, 0.3);
  background: rgba(255, 255, 255, 0.98);
  color: #3c6fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(60, 111, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.make-cv__preview-zoom-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(60, 111, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.make-cv__preview-zoom-toggle:hover {
  border-color: rgba(60, 111, 255, 0.5);
  background: linear-gradient(135deg, rgba(60, 111, 255, 0.05), rgba(138, 77, 255, 0.05));
  box-shadow: 0 4px 16px rgba(60, 111, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px) scale(1.02);
  color: #274bb8;
}

.make-cv__preview-zoom-toggle:hover::before {
  left: 100%;
}

.make-cv__preview-zoom-toggle:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(60, 111, 255, 0.2);
}

.make-cv__preview-zoom-icon {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.make-cv__preview-zoom-toggle:hover .make-cv__preview-zoom-icon {
  transform: scale(1.1);
}

.make-cv__preview-zoom-text {
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.make-cv__preview-frame.is-zoomed-medium {
  transform: scale(0.7);
  transform-origin: center top;
  transition: transform 0.3s ease;
}

.make-cv__preview-frame.is-zoomed-out {
  transform: scale(0.5);
  transform-origin: center top;
  transition: transform 0.3s ease;
}

.make-cv__preview-heading {
  display: grid;
  gap: 0.35rem;
}

.make-cv__preview-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.make-cv__preview-heading p {
  margin: 0;
  color: var(--muted);
}

.make-cv__preview-canvas {
  position: relative;
  background: rgba(247, 249, 255, 0.4);
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.make-cv__preview-canvas .make-cv__preview-zoom-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

@media (max-width: 1100px) {
  .make-cv__wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .make-cv__preview {
    position: static;
    order: -1;
  }

  .make-cv__sidebar {
    position: static;
    max-height: none;
  }
}

.make-cv__preview-resizer {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 2.25rem;
}

.make-cv__preview-viewport {
  width: 620px;
  min-width: 420px;
  max-width: none;
  transition: width 0.1s ease;
}

.make-cv__preview-size {
  position: absolute;
  top: -2.1rem;
  right: 0;
  background: rgba(20, 30, 72, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(20, 28, 80, 0.25);
}

.make-cv__preview-handle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #5a70ff, #8d58ff);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  box-shadow: 0 14px 28px rgba(36, 48, 120, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.make-cv__preview-handle::before {
  content: '';
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

body.make-cv-resizing {
  cursor: default;
  user-select: auto;
}

.make-cv__preview-scroll {
  width: 100%;
  max-width: 680px;
  background: transparent;
  border-radius: 20px;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: block;
}

.make-cv__preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
  color: rgba(26, 34, 82, 0.78);
  font-weight: 600;
  font-size: 0.82rem;
}

.make-cv__preview-zoom-value {
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(26, 34, 82, 0.65);
}

.make-cv__preview-range {
  appearance: none;
  flex: 0 0 160px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(96, 116, 255, 0.35), rgba(141, 88, 255, 0.45));
  outline: none;
  cursor: pointer;
  position: relative;
}

.make-cv__preview-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(96, 116, 255, 0.85);
  box-shadow: 0 10px 18px rgba(36, 48, 140, 0.25);
  transition: transform 0.2s ease;
}

.make-cv__preview-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.make-cv__preview-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(96, 116, 255, 0.85);
  box-shadow: 0 10px 18px rgba(36, 48, 140, 0.25);
}

.make-cv__preview-frame {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  padding: 1.8rem;
  border-radius: 20px;
  background: rgba(246, 249, 255, 0.85);
  border: 1px solid rgba(170, 185, 225, 0.4);
  box-shadow: 0 22px 44px rgba(20, 32, 72, 0.16);
  overflow: visible;
}

.make-cv__preview-content {
  transform-origin: top left;
  transition: transform 0.18s ease;
}

.make-cv__preview-handle-wrap {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.make-cv__preview-handle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(86, 105, 185, 0.4);
  background: linear-gradient(135deg, #647dff, #8a5dff);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: nwse-resize;
  box-shadow: 0 18px 34px rgba(26, 38, 104, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: none;
}

.make-cv__preview-handle::before {
  content: '';
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
}

.make-cv__preview-handle:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(26, 38, 104, 0.38);
}

.make-cv__preview-handle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(26, 34, 82, 0.75);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(26, 34, 92, 0.16);
  pointer-events: none;
}

body.is-resizing-cv {
  cursor: nwse-resize;
}

body.is-resizing-cv * {
  cursor: inherit !important;
}

.make-cv__preview-resize {
  display: grid;
  gap: 0.35rem;
  justify-items: flex-end;
  margin: 0;
  width: min(100%, 360px);
  user-select: none;
}

.make-cv__preview-resize-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(24, 36, 92, 0.55);
}

.make-cv__preview-track {
  position: relative;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  padding: 0.55rem 0.9rem 0.9rem;
  background: linear-gradient(135deg, rgba(247, 250, 255, 0.95), rgba(236, 241, 255, 0.97));
  border: 1px solid rgba(158, 178, 226, 0.36);
  box-shadow: 0 10px 24px rgba(18, 34, 88, 0.12);
 }

@media (max-width: 1024px) {
  .make-cv__preview-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
  }

  .make-cv__preview-resize {
    width: 100%;
    justify-items: flex-start;
  }
}

.make-cv__preview-track-value {
  position: absolute;
  top: calc(50% - 13px);
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(28, 46, 110, 0.78);
  text-shadow: 0 3px 10px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.make-cv__preview-track-label {
  position: absolute;
  top: 0.4rem;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(54, 66, 120, 0.5);
}

.make-cv__preview-track-label--min {
  left: 0.9rem;
}

.make-cv__preview-track-label--max {
  right: 0.9rem;
}

.make-cv__preview-track-rail {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 52%;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(204, 215, 244, 0.6), rgba(216, 228, 255, 0.38));
  box-shadow: inset 0 2px 6px rgba(22, 36, 88, 0.1);
  overflow: hidden;
}

.make-cv__preview-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(78, 132, 255, 0.9), rgba(86, 222, 255, 0.95));
  box-shadow: 0 8px 18px rgba(36, 98, 200, 0.2);
  transition: width 0.15s ease;
}

.make-cv__preview-handle {
  position: absolute;
  top: 52%;
  left: var(--handle-position, 50%);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid rgba(126, 150, 220, 0.36);
  background: #ffffff;
  box-shadow: 0 7px 15px rgba(32, 56, 132, 0.16);
  cursor: grab;
  touch-action: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  z-index: 2;
}

.make-cv__preview-handle:hover {
  transform: translate(-50%, -53%);
  box-shadow: 0 9px 18px rgba(32, 56, 132, 0.22);
}

.make-cv__preview-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 12px rgba(28, 48, 98, 0.24);
}

.make-cv__preview-handle-grip {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
}

.make-cv__preview-handle-grip::before {
  display: none;
}

.make-cv__preview-handle-text {
  display: none;
}

.make-cv__zoom-toggle {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(158, 178, 226, 0.6);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(26, 38, 104, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.make-cv__preview-frame:hover .make-cv__zoom-toggle,
.make-cv__preview-frame:focus-within .make-cv__zoom-toggle,
.make-cv__preview-frame.is-zoomed-out .make-cv__zoom-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.make-cv__zoom-toggle:hover {
  box-shadow: 0 20px 32px rgba(26, 38, 104, 0.2);
}

.make-cv__zoom-toggle:focus-visible {
  outline: 3px solid rgba(96, 128, 255, 0.35);
  outline-offset: 3px;
}

.make-cv__preview-frame.is-zoomed-out .make-cv__zoom-toggle {
  background: rgba(243, 246, 255, 0.95);
}

.make-cv__zoom-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(64, 84, 162, 0.88);
  border-radius: 50%;
  display: block;
}

.make-cv__zoom-icon::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 2.6px;
  background: rgba(64, 84, 162, 0.88);
  border-radius: 999px;
  bottom: -6px;
  right: -4px;
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.make-cv__zoom-sign {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: rgba(64, 84, 162, 0.88);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.make-cv__zoom-sign::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 10px;
  background: rgba(64, 84, 162, 0.88);
  border-radius: 999px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.make-cv__zoom-toggle[data-zoom-state='compact'] .make-cv__zoom-sign::before {
  opacity: 1;
}

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

.make-cv__preview-frame.is-zoomed-out {
  background: rgba(246, 249, 255, 0.78);
  box-shadow: 0 18px 36px rgba(20, 32, 72, 0.14);
}

/* ============================================
   NEW BLANK CV EDITOR - COMPLETE REDESIGN
   ============================================ */

/* Main Editor Container */
.page-blank-cv {
  background: #f5f7fa;
  min-height: 100vh;
}

.blank-cv-editor {
  padding: 2rem 0;
}

.blank-cv-editor__container {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  align-items: flex-start;
}

/* Left Sidebar: Form Inputs */
.blank-cv-editor__sidebar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.blank-cv-editor__sidebar-content {
  padding: 1.5rem;
}

/* Sidebar sections */
.blank-cv-section {
  margin-bottom: 2rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}

.blank-cv-section:last-child {
  margin-bottom: 0;
}

.blank-cv-section:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.blank-cv-section--personalia {
  background: radial-gradient(circle at top left, #eef2ff, #ffffff);
  border-color: #c7d2fe;
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.18);
}

.blank-cv-section--personalia .blank-cv-section__title {
  font-size: 1.1rem;
}

.blank-cv-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.blank-cv-section__header-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.blank-cv-section__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  font-weight: 600;
}

.blank-cv-section__subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.blank-cv-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1f35;
  margin: 0;
  user-select: none;
}

.blank-cv-section__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  user-select: none;
}

.blank-cv-section__header-row:hover {
  background-color: #f9fafb;
}

.blank-cv-section__header-row:hover .blank-cv-section__title {
  color: #4c6ef5;
}

.blank-cv-section__toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blank-cv-section__toggle-icon {
  font-size: 0.9rem;
  color: #4b5563;
}

.blank-cv-section.is-collapsed .blank-cv-section__toggle-icon {
  transform: rotate(180deg);
}

.blank-cv-section__toggle:hover {
  background: #f3f4ff;
  border-color: #a5b4fc;
}

.blank-cv-section__body {
  margin-top: 0.25rem;
}

.blank-cv-section.is-collapsed .blank-cv-section__body {
  display: none;
}

.blank-cv-section[data-draggable-section] {
  cursor: grab;
}

.blank-cv-section[data-draggable-section]::before {
  content: '⋮⋮';
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #6b7280;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

.blank-cv-section[data-draggable-section] .blank-cv-section__title {
  padding-left: 1.75rem;
}

.blank-cv-section.is-dragging {
  opacity: 0.9;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

/* Form Fields */
.blank-cv-field {
  margin-bottom: 1rem;
}

.blank-cv-field:last-child {
  margin-bottom: 0;
}

.blank-cv-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blank-cv-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blank-cv-field-row .blank-cv-field {
  margin-bottom: 0;
}

.blank-cv-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.375rem;
}

.blank-cv-field__input,
.blank-cv-field__textarea,
.blank-cv-field__select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1f35;
  transition: border-color 0.2s;
  font-family: inherit;
}

.blank-cv-field__input:focus,
.blank-cv-field__textarea:focus,
.blank-cv-field__select:focus {
  outline: none;
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.blank-cv-field__textarea {
  resize: vertical;
  min-height: 80px;
}

.blank-cv-field--photo {
  margin-bottom: 1.5rem;
}

/* Photo Upload */
.blank-cv-photo {
  position: relative;
}

.blank-cv-photo__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.blank-cv-photo__btn {
  width: 100%;
  padding: 1rem;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  transition: all 0.2s;
}

.blank-cv-photo__btn:hover {
  border-color: #4c6ef5;
  background: #f0f4ff;
  color: #4c6ef5;
}

.blank-cv-photo__icon {
  font-size: 1.25rem;
}

.blank-cv-photo__preview {
  display: none;
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.blank-cv-photo__preview.is-visible {
  display: block;
}

.blank-cv-photo__preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blank-cv-photo__remove {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #ef4444;
  border-radius: 6px;
  background: #ffffff;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.blank-cv-photo__remove:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #dc2626;
}

.blank-cv-photo__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blank-cv-photo__replace {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  transition: all 0.2s;
}

.blank-cv-photo__replace:hover {
  border-color: #4c6ef5;
  background: #f0f4ff;
  color: #4c6ef5;
}

/* Crop Modal */
.blank-cv-crop-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.blank-cv-crop-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.blank-cv-crop-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.blank-cv-crop-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.blank-cv-crop-modal__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1f35;
}

/* Rename CV Modal */
.blank-cv-rename-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.blank-cv-rename-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.blank-cv-rename-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 100%;
  z-index: 1;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blank-cv-rename-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.blank-cv-rename-modal__header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1f35;
}

.blank-cv-rename-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blank-cv-rename-modal__close:hover {
  background: #f8fafc;
  color: #475569;
}

.blank-cv-rename-modal__close svg {
  width: 20px;
  height: 20px;
}

.blank-cv-rename-modal__body {
  padding: 1.5rem;
}

.blank-cv-rename-modal__label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.blank-cv-rename-modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #1a1f35;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.blank-cv-rename-modal__input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.blank-cv-rename-modal__input::placeholder {
  color: #9ca3af;
}

.blank-cv-rename-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.blank-cv-rename-modal__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blank-cv-rename-modal__btn--cancel {
  background: #ffffff;
  color: #64748b;
  border-color: #e2e8f0;
}

.blank-cv-rename-modal__btn--cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.blank-cv-rename-modal__btn--save {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.blank-cv-rename-modal__btn--save:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.blank-cv-rename-modal__btn--save:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.blank-cv-crop-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.blank-cv-crop-modal__close:hover {
  background: #f3f4f6;
  color: #1a1f35;
}

.blank-cv-crop-modal__body {
  padding: 1.5rem;
  overflow: auto;
  flex: 1;
}

.blank-cv-crop-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.blank-cv-crop-container img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.blank-cv-crop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.blank-cv-crop-selection {
  position: absolute;
  border: 3px solid #4c6ef5;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  cursor: move;
  pointer-events: all;
  border-radius: 50%;
  background: transparent;
}

.blank-cv-crop-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Date Field */
.blank-cv-field--date {
  position: relative;
}

.blank-cv-field__date-trigger {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1f35;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
}

.blank-cv-field__date-trigger:hover {
  border-color: #4c6ef5;
}

.blank-cv-field__date-trigger.has-value {
  color: #1a1f35;
  font-weight: 500;
}

/* Toggle */
.blank-cv-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #4a5568;
}

.blank-cv-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Collection Items */
.blank-cv-collection {
  margin-top: 0.5rem;
}

.blank-cv-collection__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blank-cv-collection__add {
  width: 100%;
  padding: 0.625rem;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.blank-cv-collection__add:hover {
  border-color: #4c6ef5;
  background: #f0f4ff;
  color: #4c6ef5;
}

.blank-cv-collection-item {
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  background: #f9fafb;
  overflow: hidden;
  position: relative;
}

.blank-cv-collection-item__header {
  width: 100%;
  padding: 0.65rem 2.9rem 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f35;
  background: #f3f4ff;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 0.75rem;
}

.blank-cv-collection-item__summary {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blank-cv-collection-item__chevron {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #4b5563;
  background: #ffffff;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.blank-cv-collection-item.is-expanded .blank-cv-collection-item__chevron {
  transform: rotate(180deg);
  background: #4c6ef5;
  color: #ffffff;
  border-color: #4c6ef5;
}

.blank-cv-collection-item__body {
  padding: 0.75rem 1rem 0.75rem;
  display: none;
}

.blank-cv-collection-item.is-expanded .blank-cv-collection-item__body {
  display: block;
}

.blank-cv-collection-item__remove {
  width: 24px;
  height: 24px;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
}

.blank-cv-collection-item__remove:hover {
  background: #fecaca;
  transform: scale(1.05);
}

.blank-cv-collection-item__remove.is-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.blank-cv-collection-item__remove.is-disabled:hover {
  background: #e5e7eb;
  transform: none;
}

/* Skills */
.blank-cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.blank-cv-skill {
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #ffffff;
  color: #4a5568;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.blank-cv-skill:hover {
  border-color: #4c6ef5;
  color: #4c6ef5;
}

.blank-cv-skill.is-selected {
  background: #4c6ef5;
  border-color: #4c6ef5;
  color: #ffffff;
}

/* Right Side: Preview */
.blank-cv-editor__preview {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: fit-content;
  min-height: calc(100vh - 4rem);
}

.blank-cv-editor__preview-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e8ebf0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.blank-cv-editor__preview-title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blank-cv-editor__preview-title h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1f35;
}

.blank-cv-editor__edit-title-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.blank-cv-editor__edit-title-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
  transform: translateY(-1px);
}

.blank-cv-editor__edit-title-btn:active {
  transform: translateY(0);
}

.blank-cv-editor__edit-title-btn svg {
  width: 16px;
  height: 16px;
}

.blank-cv-editor__preview-header .preview-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 1rem;
}

/* Save Status Indicator */
.blank-cv-editor__preview-header .save-status {
  display: flex;
  align-items: center;
}

.blank-cv-editor__preview-header .save-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(0.625rem - 1px) 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  line-height: 1.5;
  margin: 0;
}

.blank-cv-editor__preview-header .save-status-indicator.saved {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.blank-cv-editor__preview-header .save-status-indicator.saving {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.blank-cv-editor__preview-header .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.blank-cv-editor__preview-header .save-status-indicator.saved .status-dot {
  background: #10b981;
  animation: none;
}

.blank-cv-editor__preview-header .save-status-indicator.saving .status-dot {
  background: #f59e0b;
  animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.blank-cv-editor__preview-header .status-text {
  white-space: nowrap;
}

.blank-cv-editor__scale-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

/* Preview Actions Dropdown */

.blank-cv-editor__preview-header .dropdown {
  position: relative;
  display: inline-block;
}

.blank-cv-editor__preview-header .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: calc(0.625rem - 1px) 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.blank-cv-editor__preview-header .dropdown-toggle:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.blank-cv-editor__preview-header .dropdown-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.blank-cv-editor__preview-header .dropdown-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  stroke-width: 2.5;
}

.blank-cv-editor__preview-header .dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.blank-cv-editor__preview-header .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.blank-cv-editor__preview-header .dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.blank-cv-editor__preview-header .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.blank-cv-editor__preview-header .dropdown-item:first-child {
  padding-top: 1rem;
}

.blank-cv-editor__preview-header .dropdown-item:last-child {
  border-bottom: none;
  padding-bottom: 1rem;
}

.blank-cv-editor__preview-header .dropdown-item:hover {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e293b;
  padding-left: 1.375rem;
}

.blank-cv-editor__preview-header .dropdown-item:active {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
}

.blank-cv-editor__preview-header .dropdown-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
  color: #6366f1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.blank-cv-editor__preview-header .dropdown-item:hover .dropdown-icon {
  color: #4f46e5;
  transform: scale(1.1);
}

.blank-cv-editor__preview-header .dropdown-item span {
  flex: 1;
  line-height: 1.5;
}

.blank-cv-editor__scale-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.blank-cv-editor__scale-slider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blank-cv-editor__scale-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f35;
  min-width: 45px;
  text-align: right;
}

.blank-cv-editor__scale-input {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: #e8ebf0;
  outline: none;
  -webkit-appearance: none;
}

.blank-cv-editor__scale-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4c6ef5;
  cursor: pointer;
}

.blank-cv-editor__scale-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4c6ef5;
  cursor: pointer;
  border: none;
}

.blank-cv-editor__reset-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.blank-cv-editor__reset-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.blank-cv-editor__reset-btn:active {
  background: #f1f5f9;
  transform: translateY(1px);
}

.blank-cv-editor__reset-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.blank-cv-editor__reset-btn:hover .blank-cv-editor__reset-icon {
  transform: rotate(180deg);
}

.blank-cv-editor__reset-text {
  font-size: 0.875rem;
}

.blank-cv-editor__preview-container {
  flex: 1 1 auto;
  min-height: 640px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: #f5f7fa;
}

.blank-cv-editor__preview-wrapper {
  transform-origin: top center;
}

/* CV Preview - A4 Template */
.blank-cv-preview {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 28% 72%;
  gap: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #1a1f35;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Sidebar (Left) */
.blank-cv-preview__sidebar {
  background: #f7f8fc;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.blank-cv-preview__sidebar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.04), transparent);
}

.blank-cv-preview__photo {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: #e8ebf0;
  margin: 0 auto 0.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.blank-cv-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blank-cv-preview__sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  margin-bottom: 0.3rem;
  position: relative;
}

.blank-cv-preview__sidebar-group--lined {
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.blank-cv-preview__sidebar-group--lined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.blank-cv-preview__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1f35;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.blank-cv-preview__role {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  position: relative;
  padding-bottom: 0.3rem;
}

.blank-cv-preview__role::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25%;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.blank-cv-preview__sidebar-title {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #2d3748;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  position: relative;
  padding-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blank-cv-preview__sidebar-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-left: 0.2rem;
}

.blank-cv-preview__sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.blank-cv-preview__sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  line-height: 1.2;
  color: #4a5568;
  padding: 0.15rem 0;
  position: relative;
  padding-left: 0.5rem;
}

.blank-cv-preview__sidebar-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(0, 0, 0, 0.2);
  font-size: 8px;
}

.blank-cv-preview__sidebar-list li span:last-child {
  font-weight: 500;
  color: #1a1f35;
}

.blank-cv-preview__sidebar-text {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  color: #4a5568;
  padding-left: 0.5rem;
}

.blank-cv-preview__sidebar-text:empty::after {
  content: '(Nog geen interesses toegevoegd)';
  color: #c7c7c7;
  font-style: italic;
  font-size: 9px;
}

/* Main Content (Right) */
.blank-cv-preview__content {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #fafafa;
  position: relative;
}

.blank-cv-preview__content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(76, 110, 245, 0.1), rgba(76, 110, 245, 0.05), transparent);
}

.blank-cv-preview__block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 0.8rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.blank-cv-preview__block[hidden] {
  display: none;
}

.blank-cv-preview__block-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1a1f35;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blank-cv-preview__block-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: rgba(76, 110, 245, 0.5);
  border-radius: 2px;
  flex-shrink: 0;
}

.blank-cv-preview__block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-left: 0.2rem;
  max-width: 30%;
}

.blank-cv-preview__block-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #4a5568;
  padding-left: 0.4rem;
}

.blank-cv-preview__block-text:empty::after {
  content: '(Nog geen informatie toegevoegd)';
  color: #c7c7c7;
  font-style: italic;
  font-size: 9px;
}

.blank-cv-preview__entries {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.3rem;
  padding-left: 0.4rem;
}

.blank-cv-preview__entries:empty::after,
.blank-cv-preview__entries[data-empty]::after {
  content: '(Nog geen items toegevoegd)';
  color: #c7c7c7;
  font-style: italic;
  font-size: 9px;
  padding: 0.3rem 0;
  display: block;
}

.blank-cv-preview__entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  margin-bottom: 0.4rem;
  position: relative;
}

.blank-cv-preview__entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(76, 110, 245, 0.15);
  border-radius: 1px;
}

.blank-cv-preview__entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blank-cv-preview__entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.blank-cv-preview__entry-primary {
  flex: 1;
}

.blank-cv-preview__entry-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #1a1f35;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.blank-cv-preview__entry-subtitle {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  font-weight: 600;
}

.blank-cv-preview__entry-meta {
  text-align: right;
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
  font-weight: 600;
}

.blank-cv-preview__entry-description {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #4a5568;
  padding-left: 0.6rem;
  padding-top: 0.3rem;
}

.blank-cv-preview__entry-description ul {
  margin: 0.15rem 0 0 0;
  padding-left: 1rem;
  list-style: none;
}

.blank-cv-preview__entry-description li {
  margin: 0.1rem 0;
  font-size: 9.5px;
  line-height: 1.2;
  position: relative;
  padding-left: 0.6rem;
}

.blank-cv-preview__entry-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(76, 110, 245, 0.4);
  font-size: 7px;
}

/* Footer */
.blank-cv-editor__preview-footer {
  padding: 1.5rem;
  border-top: 1px solid #e8ebf0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Hide empty sections */
.blank-cv-preview__block.is-empty {
  display: none;
}

.blank-cv-preview [hidden] {
  display: none !important;
}

