/* ResumeGen – style.css

/* base resume section */
.res-section {
  margin-bottom: 16px;
  color: inherit;
}

/* make select options readable on dark background */
select option {
  background: #282a30;
  color: #e2e2eb;
}


:root {
  /* surfaces */
  --bg: #0f1115;
  --surf-low: #16181d;
  --surf: rgba(30, 31, 38, 0.45);
  --surf-high: rgba(38, 39, 48, 0.6);
  --surf-highest: rgba(45, 46, 56, 0.75);

  /* text */
  --text: #e2e2eb;
  --text-dim: #c7c4d7;
  --outline: #908fa0;
  --outline-var: #464554;

  /* accent – overridden by JS */
  --accent: #6366f1;
  --accent-dim: #8083ff;

  /* fonts */
  --font-ui: 'Inter', sans-serif;
  --font-head: 'Manrope', sans-serif;

  /* header height */
  --header-h: 56px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- BACKGROUND BLOBS ---- */
.glass-bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.15;
  animation: blobFloat 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
  will-change: transform;
}

.blob-1 { top: -100px; left: -100px; animation-duration: 25s; }
.blob-2 { bottom: -150px; right: -50px; animation-duration: 30s; animation-direction: alternate-reverse; }
.blob-3 { top: 40%; left: 30%; width: 300px; height: 300px; opacity: 0.1; animation-duration: 20s; }

@keyframes blobFloat {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to { transform: translate(100px, 50px) rotate(90deg) scale(1.1); }
}

/* ---- ENTRANCE ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.editor-section, .customize-group {
  animation: fadeInUp 0.4s ease backwards;
}

/* Staggered delays */
.editor-section:nth-child(1) { animation-delay: 0.05s; }
.editor-section:nth-child(2) { animation-delay: 0.1s; }
.editor-section:nth-child(3) { animation-delay: 0.15s; }
.editor-section:nth-child(4) { animation-delay: 0.2s; }
.editor-section:nth-child(5) { animation-delay: 0.25s; }
.editor-section:nth-child(6) { animation-delay: 0.3s; }

.customize-group:nth-child(1) { animation-delay: 0.1s; }
.customize-group:nth-child(2) { animation-delay: 0.15s; }
.customize-group:nth-child(3) { animation-delay: 0.2s; }
.customize-group:nth-child(4) { animation-delay: 0.25s; }
.customize-group:nth-child(5) { animation-delay: 0.3s; }
.customize-group:nth-child(6) { animation-delay: 0.35s; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--outline-var);
  border-radius: 99px;
}

/* ---- HEADER ---- */
.app-header {
  height: var(--header-h);
  background: rgba(17, 19, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.portfolio-link-nav {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-main);
}

.portfolio-link-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-1px);
}

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

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* mobile panel tabs – hidden on desktop */
.mobile-nav {
  display: none;
  gap: 4px;
}

.mobile-nav-btn {
  background: var(--surf-high);
  border: none;
  color: var(--text-dim);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ---- BUTTONS ---- */
.btn-ghost,
.btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
}

.btn-ghost {
  background: var(--surf-high);
  color: var(--text-dim);
  border: 1px solid rgba(70, 69, 84, 0.4);
}

.btn-ghost:hover {
  background: var(--surf-highest);
  color: var(--text);
  border-color: rgba(70, 69, 84, 0.7);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost:hover {
  background: var(--surf-highest);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ---- MAIN LAYOUT ---- */
.app-main {
  display: grid;
  grid-template-columns: var(--editor-w, 320px) 2px 1fr 2px var(--customize-w, 276px);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}

.resizer {
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: col-resize;
  transition: background 0.2s, width 0.2s;
  z-index: 100;
  position: relative;
}

.resizer:hover, .resizer.dragging {
  background: var(--accent);
  width: 4px;
}

.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---- EDITOR ---- */
.editor-panel {
  background: var(--surf);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-sections {
  padding: 8px 0;
}

.editor-section {
  border-bottom: 1px solid rgba(70, 69, 84, 0.12);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}

.section-header:hover {
  background: rgba(99, 102, 241, 0.08);
  padding-left: 20px;
}

.section-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 0.9rem;
}

.chevron {
  color: var(--outline);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.editor-section.open .chevron {
  transform: rotate(180deg);
}

.section-body {
  display: none;
  padding: 4px 16px 16px;
  flex-direction: column;
  gap: 10px;
}

.editor-section.open .section-body {
  display: flex;
}

/* ---- FORM ELEMENTS ---- */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Increased from 4px */
  min-width: 0; /* Prevents grid items from overflowing */
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
  opacity: 0.95;
}

.form-group input,
.form-group textarea,
.form-group select,
.skill-input-row input,
.skill-input-row select {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 12px 14px;
  transition: all 0.25s ease;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.skill-input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--surf-highest);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* ---- DYNAMIC CARDS (experience/education/etc) ---- */
.entry-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.entry-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.entry-card .btn-icon {
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.entry-card:hover .btn-icon {
  opacity: 1;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.entry-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.entry-card-actions {
  display: flex;
  gap: 4px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--outline);
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
  display: flex;
  align-items: center;
}

.btn-icon:hover {
  background: var(--surf-high);
  color: var(--text);
}

.btn-icon.del:hover {
  color: #ef4444;
}

.btn-add {
  background: none;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 4px;
}

.btn-add:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent);
}

/* skills / languages row */
.skill-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.skill-input-row input {
  flex: 1;
}

.skill-input-row select {
  width: 110px;
  flex-shrink: 0;
}

.btn-add-inline {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
  flex-shrink: 0;
}

.btn-add-inline:hover {
  filter: brightness(1.1);
}

/* skill chips */
.skills-chips,
.langs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surf-highest);
  border-radius: 99px;
  padding: 4px 10px 4px 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid rgba(70, 69, 84, 0.3);
}

.chip .chip-label {
  font-weight: 500;
}

.chip .chip-level {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--outline);
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.12s;
}

.chip-remove:hover {
  color: #ef4444;
}

/* ---- PREVIEW PANEL ---- */
.preview-panel {
  display: flex;
  flex-direction: column;
  background: #0c0e14;
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(17, 19, 25, 0.7);
  border-bottom: 1px solid rgba(70, 69, 84, 0.15);
  flex-shrink: 0;
}

.preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-btn {
  background: var(--surf-high);
  border: 1px solid rgba(70, 69, 84, 0.3);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.12s;
}

.zoom-btn:hover {
  background: var(--surf-highest);
}

#zoomLevel {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 38px;
  text-align: center;
}

.preview-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

.preview-scale-wrapper {
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* ---- THE RESUME PAPER ---- */
.resume-page {
  width: 210mm;
  height: 297mm;
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 8px 64px rgba(0, 0, 0, 0.5), 0 2px 16px rgba(0, 0, 0, 0.3);
  margin: 0 auto 32px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.resume-page.letter {
  width: 215.9mm;
  height: 279.4mm;
}

.page-content {
  width: 100%;
  height: 100%;
  display: block;  /* Explicitly not flex to avoid stretching */
  box-sizing: border-box;
}

.page-footer {
  position: absolute;
  bottom: 8mm;
  right: 15mm;
  font-size: 8pt;
  color: #888;
  font-family: inherit;
  z-index: 10;
}


/* ---- CUSTOMIZE PANEL ---- */
.customize-panel {
  background: var(--surf);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.customize-header {
  padding: 16px;
  border-bottom: 1px solid rgba(70, 69, 84, 0.15);
  flex-shrink: 0;
}

.customize-header h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.customize-group {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(70, 69, 84, 0.1);
}

.customize-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.range-val {
  color: var(--accent);
  font-weight: 700;
}

/* template thumbnails */
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.template-card {
  background: var(--surf);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  text-align: center;
}

.template-card:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.4);
}

.template-card.active {
  border-color: var(--accent);
}

.template-card span {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
  display: block;
  margin-top: 5px;
}

.template-preview {
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

/* mini template previews */
.modern-preview .tp-header {
  background: var(--accent);
  height: 16px;
}

.modern-preview .tp-lines {
  padding: 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modern-preview .tp-lines div {
  background: #ddd;
  height: 4px;
  border-radius: 2px;
}

.modern-preview .tp-lines div:nth-child(1) {
  width: 80%;
}

.modern-preview .tp-lines div:nth-child(2) {
  width: 60%;
}

.modern-preview .tp-lines div:nth-child(3) {
  width: 70%;
}

.classic-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 4px;
}

.classic-preview .tp-lines-full {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.classic-preview .tp-lines-full div {
  background: #ccc;
  height: 4px;
  border-radius: 2px;
}

.classic-preview .tp-lines-full div:nth-child(1) {
  width: 90%;
}

.classic-preview .tp-lines-full div:nth-child(2) {
  width: 70%;
}

.classic-preview .tp-lines-full div:nth-child(3) {
  width: 80%;
}

.classic-preview .tp-lines-full div:nth-child(4) {
  width: 60%;
}

.minimal-preview .tp-accent {
  background: var(--accent);
  height: 3px;
}

.minimal-preview .tp-lines {
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.minimal-preview .tp-lines div {
  background: #ddd;
  height: 4px;
  border-radius: 2px;
}

.minimal-preview .tp-lines div:nth-child(1) {
  width: 70%;
}

.minimal-preview .tp-lines div:nth-child(2) {
  width: 55%;
}

.minimal-preview .tp-lines div:nth-child(3) {
  width: 65%;
}

.executive-preview {
  display: flex;
}

.executive-preview .tp-sidebar {
  background: #2d2d44;
  width: 18px;
  flex-shrink: 0;
}

.executive-preview .tp-lines {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.executive-preview .tp-lines div {
  background: #ddd;
  height: 4px;
  border-radius: 2px;
}

.executive-preview .tp-lines div:nth-child(1) {
  width: 80%;
}

.executive-preview .tp-lines div:nth-child(2) {
  width: 60%;
}

.executive-preview .tp-lines div:nth-child(3) {
  width: 70%;
}

.creative-preview {
  position: relative;
}

.creative-preview .tp-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
}

.creative-preview .tp-lines {
  padding: 4px 4px 4px 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.creative-preview .tp-lines div {
  background: #ddd;
  height: 4px;
  border-radius: 2px;
}

.creative-preview .tp-lines div:nth-child(1) {
  width: 70%;
}

.creative-preview .tp-lines div:nth-child(2) {
  width: 55%;
}

.creative-preview .tp-lines div:nth-child(3) {
  width: 65%;
}

/* ---- COLOR SWATCHES ---- */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
  outline: none;
}

.swatch:hover {
  transform: scale(1.15);
}

.swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

/* ---- CUSTOM SELECT STYLES ---- */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23908fa0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  padding-right: 30px !important;
}

select:hover {
  border-color: var(--accent-dim);
}

.color-picker-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-picker {
  width: 44px;
  height: 38px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: var(--surf-highest);
  flex-shrink: 0;
}

.hex-input {
  flex: 1;
  background: var(--surf-highest);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inconsolata', monospace;
  font-size: 0.9rem;
  padding: 0 10px;
  height: 38px;
  outline: none;
  transition: border-color 0.2s;
}

.hex-input:focus {
  border-color: var(--accent);
}

/* ---- RANGE INPUT ---- */
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--surf-highest);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  transition: box-shadow 0.15s;
}

.range-input::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.25);
}

/* ---- SELECT ---- */
.customize-select {
  width: 100%;
  background: var(--surf-highest);
  border: 1px solid rgba(70, 69, 84, 0.35);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
}

.customize-select:focus {
  border-color: var(--accent);
}

/* ---- SECTION VISIBILITY TOGGLES ---- */
.section-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
}

.toggle-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---- RADIO GROUP ---- */
.radio-group {
  display: flex;
  gap: 16px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
}

.radio-item input {
  accent-color: var(--accent);
}

/* ---- IMPORT MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surf);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(70, 69, 84, 0.2);
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--outline);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}

.modal-close:hover {
  background: var(--surf-high);
  color: var(--text);
}

.import-tabs {
  display: flex;
  border-bottom: 1px solid rgba(70, 69, 84, 0.2);
}

.import-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--outline);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 11px 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.import-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.import-content {
  padding: 20px;
}

.import-pane {
  display: none;
}

.import-pane.active {
  display: block;
}

.drop-zone {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.drop-zone p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.drop-zone strong {
  color: var(--text);
}

.or-text {
  font-size: 0.75rem;
  color: var(--outline);
}

.file-label {
  position: relative;
  cursor: pointer;
}

.file-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

/* ---- AI SECTION (PREMIUM) ---- */
.ai-section {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ai-label {
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.ai-tips-container {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  min-height: 90px;
  max-height: 250px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.ai-empty-text {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-style: italic;
  margin: 0;
}

.ai-tip {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  animation: slideUpAi 0.4s ease forwards;
}

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

.ai-tip:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ai-tip-title {
  display: block;
  font-weight: 700;
  color: #8b5cf6;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.ai-tip-text {
  color: #e2e8f0;
}

.ai-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-weight: 600;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Dual Ring AI Spinner */
.loader-ai-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
}
.loader-ai-spinner:after {
  content: " ";
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-color: #8b5cf6 transparent #8b5cf6 transparent;
  animation: loader-ai-spinner 1.2s linear infinite;
}
@keyframes loader-ai-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.linkedin-info {
  background: var(--surf-high);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.linkedin-info strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.linkedin-info ol {
  padding-left: 18px;
}

.linkedin-info code {
  background: var(--surf-highest);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent);
}

.hint {
  font-size: 0.8rem;
  color: var(--outline);
  margin-bottom: 14px;
  line-height: 1.6;
}

#pasteTextarea {
  width: 100%;
  min-height: 180px;
  background: var(--surf-high);
  border: 1px solid rgba(70, 69, 84, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 12px;
  resize: vertical;
  outline: none;
  line-height: 1.6;
}

#pasteTextarea:focus {
  border-color: var(--accent);
}

/* ---- AI CHAT ASSISTANT DRAWER ---- */
.ai-chat-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.ai-chat-drawer.open {
  right: 0;
}

.ai-chat-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(139, 92, 246, 0.1);
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.ai-chat-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.ai-chat-close:hover {
  color: #fff;
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
}

.ai-msg.bot {
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.15);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.ai-msg.user {
  align-self: flex-end;
  background: #6366f1;
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ai-chat-input-area {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

#aiChatInput {
  flex: 1;
  background: var(--surf-high);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: border-color 0.2s;
}

#aiChatInput:focus {
  border-color: #8b5cf6;
}

#sendAiChatBtn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #8b5cf6;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

#sendAiChatBtn:hover {
  transform: scale(1.05);
  background: #7c3aed;
}

#sendAiChatBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* typing bubble */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.typing-dots span {
  width: 4px;
  height: 4px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.res-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
}

.res-link:hover {
  border-bottom-color: currentColor;
  opacity: 0.8;
}

.res-link svg {
  fill: currentColor;
}

.progress-bar {
  height: 4px;
  background: var(--surf-high);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.2s;
}

/* ---- LOADING ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 25, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay.visible {
  display: flex;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--surf-highest);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

#loadingText {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--surf-highest);
  border: 1px solid rgba(70, 69, 84, 0.4);
  color: var(--text);
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 99px;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================================
   RESUME TEMPLATES
   ================================================================ */

/* -- shared resume elements -- */
.res-section-title {
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.res-entry {
  margin-bottom: 12px;
}

.res-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
}

.res-entry-title {
  font-weight: 600;
}

.res-entry-sub {
  color: #555;
  font-size: 0.88em;
}

.res-entry-date {
  color: #777;
  font-size: 0.82em;
  white-space: nowrap;
}

.res-entry-desc {
  margin-top: 5px;
  font-size: 0.9em;
  color: #444;
  line-height: 1.55;
  white-space: pre-line;
}

.res-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  align-content: flex-start;
}

.res-skill-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.res-skill-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.08);
}

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

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.res-entry-link {
  font-size: 0.8em;
  color: #666;
  margin-top: 2px;
}

/* === MODERN TEMPLATE === */
.tpl-modern {
  display: flex;
  flex-direction: column;
}

.tpl-modern .res-header {
  padding: 32px;
  padding-bottom: 24px;
  color: #fff;
}

.tpl-modern .res-name {
  font-size: 2em;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.tpl-modern .res-jobtitle {
  font-size: 1em;
  opacity: 0.85;
  margin-bottom: 12px;
}

.tpl-modern .res-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82em;
  opacity: 0.9;
}

.tpl-modern .res-body {
  padding: 24px 32px;
}

.tpl-modern .res-section-title {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
}

.tpl-modern .res-skill-chip {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}

/* === CLASSIC TEMPLATE === */
.tpl-classic {
  padding: 40px;
}

.tpl-classic .res-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #222;
}

.tpl-classic .res-name {
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tpl-classic .res-jobtitle {
  font-size: 0.9em;
  color: #555;
  margin: 4px 0 10px;
}

.tpl-classic .res-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.8em;
  color: #555;
}

.tpl-classic .res-section {
  margin-bottom: 18px;
}

.tpl-classic .res-section-title {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1.5px solid #222;
}

.tpl-classic .res-entry-title {
  color: #111;
}

.tpl-classic .res-skill-chip {
  background: #f0f0f0;
  color: #333;
}

/* === MINIMAL TEMPLATE === */
.tpl-minimal {
  padding: 40px;
}

.tpl-minimal .res-header {
  margin-bottom: 28px;
}

.tpl-minimal .res-name {
  font-size: 2em;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
}

.tpl-minimal .res-jobtitle {
  font-size: 0.95em;
  color: #777;
  margin: 6px 0 12px;
  font-weight: 400;
}

.tpl-minimal .res-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8em;
  color: #888;
}

.tpl-minimal .res-accent-bar {
  height: 3px;
  margin-bottom: 28px;
  border-radius: 2px;
}

.tpl-minimal .res-section {
  margin-bottom: 22px;
}

.tpl-minimal .res-section-title {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #999;
  border-bottom: none;
  margin-bottom: 12px;
}

.tpl-minimal .res-skill-chip {
  background: #f5f5f5;
  color: #444;
  border: 1px solid #e8e8e8;
}

/* === EXECUTIVE TEMPLATE === */
.tpl-executive {
  display: flex;
  min-height: 100%;
}

.tpl-executive .res-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 32px 20px;
  color: #fff;
}

.tpl-executive .res-main {
  flex: 1;
  padding: 32px 28px;
}

.tpl-executive .res-name {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.tpl-executive .res-jobtitle {
  font-size: 0.82em;
  opacity: 0.75;
  margin-bottom: 20px;
}

.tpl-executive .res-sidebar-section {
  margin-bottom: 20px;
}

.tpl-executive .res-sidebar-title {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 4px;
}

.tpl-executive .res-contact-item {
  font-size: 0.75em;
  opacity: 0.85;
  margin-bottom: 4px;
  word-break: break-all;
}

.tpl-executive .res-section-title {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid;
  margin-bottom: 12px;
}

.tpl-executive .res-skill-chip {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.78em;
}

.tpl-executive .res-main .res-skill-chip {
  background: #f0f0f4;
  color: #333;
}

/* === CREATIVE TEMPLATE === */
.tpl-creative {
  padding: 36px;
}

.tpl-creative .res-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.tpl-creative .res-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #6366f1), #8b5cf6);
}

.tpl-creative .res-name {
  font-size: 1.7em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tpl-creative .res-jobtitle {
  font-size: 0.9em;
  color: #666;
  margin: 4px 0 8px;
}

.tpl-creative .res-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78em;
  color: #777;
}

.tpl-creative .res-section {
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
}

.tpl-creative .res-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.2;
}

.tpl-creative .res-section-title {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.tpl-creative .res-skill-chip {
  color: #fff;
  font-size: 0.78em;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  .app-main {
    grid-template-columns: 280px 1fr 240px;
  }
}

@media (max-width: 900px) {
  .app-main {
    grid-template-columns: 1fr;
  }

  .editor-panel,
  .preview-panel,
  .customize-panel {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 10;
    overflow-y: auto;
    border: none;
  }

  .editor-panel.mobile-active,
  .preview-panel.mobile-active,
  .customize-panel.mobile-active {
    display: flex;
    flex-direction: column;
  }

  .preview-panel.mobile-active {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .btn-label {
    display: none;
  }

  .header-actions .btn-ghost:first-child .btn-label {
    display: none;
  }
}

@media (max-width: 520px) {
  .app-header {
    padding: 0 12px;
  }

  .btn-ghost,
  .btn-primary {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .resume-paper {
    width: 100% !important;
    min-height: unset;
  }

  .preview-scroll {
    padding: 12px;
  }

  .modal {
    border-radius: 0;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

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

/* Template Thumbnails - Previews in the Sidebar */
.atspro-preview .tp-lines-full { display: flex; flex-direction: column; gap: 4px; padding: 10px; width: 100%; }
.atspro-preview .tp-lines-full div { height: 2px; background: rgba(255,255,255,0.15); width: 100%; }

.tech-preview .tp-header-mono { height: 10px; background: var(--accent); margin-bottom: 4px; border-radius: 2px 2px 0 0; opacity: 0.4; width: 100%; }
.tech-preview .tp-lines { padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.tech-preview .tp-lines div { height: 2px; background: rgba(255,255,255,0.1); width: 80%; }

.bold-preview .tp-accent-top { height: 15px; background: var(--accent); opacity: 0.4; margin-bottom: 5px; width: 100%; }
.bold-preview .tp-lines { padding: 5px; }
.bold-preview .tp-lines div { height: 2px; background: rgba(255,255,255,0.1); width: 100%; margin-bottom: 3px; }

.compact-preview .tp-lines-dense { display: flex; flex-direction: column; gap: 2px; padding: 6px; width: 100%; }
.compact-preview .tp-lines-dense div { height: 2px; background: rgba(255,255,255,0.1); width: 100%; }

.serif-preview .tp-header-serif { height: 8px; border-bottom: 1px solid var(--accent); margin: 6px; opacity: 0.6; width: 80%; }
.serif-preview .tp-lines { padding: 4px 8px; }
.serif-preview .tp-lines div { height: 2px; background: rgba(255,255,255,0.1); width: 90%; margin-bottom: 3px; }

/* ---- TEMPLATE SPECIFIC LAYOUTS (Actual Resume Styles) ---- */
.resume-body.tpl-atspro { padding: 40px !important; }
.resume-body.tpl-atspro .section-title { border-bottom: 2px solid #333; text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 4px; margin-bottom: 12px; }
.resume-body.tpl-atspro .item-header { font-weight: 700; }

.resume-body.tpl-tech { font-family: 'Inconsolata', monospace !important; }
.resume-body.tpl-tech .section-title { color: var(--accent); border-left: 4px solid var(--accent); padding-left: 12px; background: rgba(255,255,255,0.02); }
.resume-body.tpl-tech .item-header { border-left: 2px solid rgba(255,255,255,0.1); padding-left: 10px; }

.resume-body.tpl-bold .resume-header { background: var(--accent); color: white; padding: 30px; margin: -40px -40px 30px -40px; }
.resume-body.tpl-bold .resume-header * { color: white !important; }
.resume-body.tpl-bold .section-title { color: var(--accent); font-weight: 800; border-left: none; }

.resume-body.tpl-compact { font-size: 9pt !important; transform-origin: top left; }
.resume-body.tpl-compact .section { margin-bottom: 10px; }
.resume-body.tpl-compact .item-header { margin-bottom: 0; }

.resume-body.tpl-serif { font-family: 'Playfair Display', serif !important; }
.resume-body.tpl-serif .section-title { font-style: italic; border-bottom: 1px solid rgba(0,0,0,0.1); display: block; width: 100%; }