/* ═══════════════════════════════════════════════════════════
   Prime Resume Builder — CSS
   Prime Tools Hub | primetoolshub.in
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Google Fonts Import ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&family=Lato:wght@400;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ── 2. Root Tokens ─────────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #4f46e5;
  --brand-hover:  #4338ca;
  --brand-glow:   rgba(79,70,229,.25);
  --brand-light:  rgba(79,70,229,.15);
  --accent:       #10b981;
  --danger:       #ef4444;
  --warning:      #f59e0b;

  /* Backgrounds */
  --bg:           #0B1121;
  --bg-surface:   rgba(255, 255, 255, 0.03);
  --bg-elevated:  rgba(255, 255, 255, 0.05);
  --bg-hover:     rgba(255, 255, 255, 0.08);
  --bg-glass:     rgba(11, 17, 33, 0.85);

  /* Text */
  --text:         #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted:   #8b949e;
  --text-faint:   #484f58;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(0,0,0,.3);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow-md:    0 4px 6px rgba(0,0,0,.5);
  --shadow-lg:    0 10px 25px rgba(0,0,0,.5);
  --shadow-xl:    0 20px 40px rgba(0,0,0,.6);

  /* Radii */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 350ms ease;

  /* Layout */
  --topnav-h:   64px;
  --header-h:   72px;
  --mobtab-h:   52px;
  --mobnav-h:   56px;
  --editor-w:   600px;
  --sectab-w:   72px;

  /* Z-index */
  --z-sticky:  100;
  --z-fab:     200;
  --z-toast:   300;
  --z-modal:   400;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--t-slow), color var(--t-slow);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── 5. Utility ──────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-xs { margin-top: 6px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }

/* ── 6. Site Topnav ──────────────────────────────────────── */
.site-topnav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topnav-h);
  padding: 0 64px; /* Balanced padding for perfect centering */
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow), border-color var(--t-slow);
}

.site-topnav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.site-topnav .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--brand-glow);
}

/* Fix universal nav button in dark theme */
#univNavToggleBtn, .univ-nav-toggle {
  background: transparent !important;
  color: var(--text) !important;
  border-color: transparent !important;
}

/* ── 7. App Wrapper ──────────────────────────────────────── */
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topnav-h));
}

/* ── 8. App Header ───────────────────────────────────────── */
.app-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding: 0 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow), border-color var(--t-slow);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px var(--brand-glow);
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Autosave badge */
.autosave-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--r-full);
  padding: 6px 14px;
  transition: all var(--t-base);
}

.autosave-badge.saving {
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-color: var(--border);
}

.save-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.autosave-badge.saving .save-dot {
  animation: savePulse 800ms ease-in-out infinite;
}

@keyframes savePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.6); }
}

/* ── 9. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--r-full);
  font-family: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-base), opacity var(--t-base);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-decoration: none;
}

.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,.08); }

/* Sizes */
.btn-sm  { padding: 8px 14px; font-size: .85rem; border-radius: var(--r-full); }
.btn-md  { padding: 12px 20px; font-size: .95rem; }
.btn-lg  { padding: 14px 28px; font-size: 1.05rem; }
.btn-icon { padding: 0; width: 42px; height: 42px; justify-content: center; flex-shrink: 0; border-radius: 50%; }

/* Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.btn-primary:hover { box-shadow: 0 4px 14px var(--brand-glow); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-danger {
  background: rgba(239,68,68,.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,.2);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

/* Mobile: hide labels */
.btn-label { display: inline; }

/* ── 10. Mobile Tabs Bar ─────────────────────────────────── */
.mob-tabs-bar {
  display: none;
  position: sticky;
  top: calc(var(--topnav-h) + var(--header-h));
  z-index: calc(var(--z-sticky) - 2);
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
}

.mob-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t-base);
  position: relative;
}

.mob-tab i { font-size: 1.05rem; }

.mob-tab.active { color: var(--brand); }

.mob-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand), #7c3aed);
  border-radius: var(--r-full) var(--r-full) 0 0;
}

/* ── 11. App Main & Layout ───────────────────────────────── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ── 12. Editor Panel ────────────────────────────────────── */
.editor-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: background var(--t-slow), border-color var(--t-slow);
  /* Independent scroll: height fixed to layout height */
  height: 100%;
  min-width: 0;
}

/* Section tabs (top nav inside editor) */
.sec-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
  flex-shrink: 0;
  min-width: 0;
  padding: 14px 18px;
  gap: 10px;
}

.sec-tabs::-webkit-scrollbar {
  height: 6px;
}
.sec-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.sec-tabs::-webkit-scrollbar-thumb {
  background-color: var(--text-muted);
  border-radius: 10px;
}

.sec-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-base);
  flex-shrink: 0;
}

.sec-tab i { font-size: 0.95rem; }

.sec-tab:hover { 
  color: var(--text); 
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.sec-tab.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.preview-scroll {
  flex: 1;
  overflow: auto;
  background: #050810;
  padding: 40px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.editor-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.editor-content::-webkit-scrollbar {
  width: 12px;
}
.editor-content::-webkit-scrollbar-track {
  background: transparent;
}
.editor-content::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 10px;
  border: 3px solid var(--bg-body);
}
.editor-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}

/* Section panels */
.sec-panel { display: none; }
.sec-panel.active { display: block; }

/* ── 13. Form Components ─────────────────────────────────── */
.form-block {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: background var(--t-slow), border-color var(--t-slow);
}

.form-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 20px;
}

.form-block-header i { color: var(--brand); }

.header-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: 0;
  margin-left: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

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

.field.span-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .01em;
}

.req { color: var(--danger); }

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-slow);
  outline: none;
  min-height: 46px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
  background: rgba(0,0,0,0.4);
}

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

.field-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.4;
}

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-left: 42px; }
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Textarea word count */
.textarea-wrap { position: relative; }
.word-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.68rem;
  color: var(--text-faint);
  background: var(--bg-surface);
  padding: 1px 4px;
  border-radius: var(--r-xs);
  pointer-events: none;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 4px 0;
}

/* ── 14. Photo Toggle ────────────────────────────────────── */
.photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.photo-preview {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 1.6rem;
}

.photo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.photo-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.photo-edit-btn:hover { background: var(--brand-hover); }

.photo-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch { position: relative; }
.toggle-switch input { display: none; }

.toggle-track {
  display: flex;
  align-items: center;
  width: 38px;
  height: 22px;
  background: var(--border-strong);
  border-radius: var(--r-full);
  transition: background var(--t-base);
  cursor: pointer;
  padding: 2px;
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--t-base);
}

.toggle-switch input:checked + .toggle-track { background: var(--brand); }
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }

.toggle-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── 15. Repeat Items (Exp, Edu, etc.) ───────────────────── */
.repeat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.repeat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.repeat-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.repeat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  background: transparent;
}

.repeat-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.card-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.card-icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.card-icon-btn.delete:hover { background: rgba(239,68,68,.1); color: var(--danger); }
.card-icon-btn.drag-handle { cursor: grab; color: var(--text-faint); }
.card-icon-btn.drag-handle:active { cursor: grabbing; }

.repeat-card-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.repeat-card-body.collapsed { display: none; }

.repeat-card-body .form-grid { margin-top: 12px; }

/* Add item button */
.btn-add-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  margin-top: 12px;
}
.btn-add-item:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

/* Section visibility toggle */
.vis-toggle-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: auto;
  transition: color var(--t-fast), background var(--t-fast);
}
.vis-toggle-btn:hover { color: var(--brand); background: var(--brand-light); }
.vis-toggle-btn.hidden-section { color: var(--text-faint); opacity: .5; }

/* ── 16. Action Verb Suggestions ─────────────────────────── */
.verb-suggestion-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(79,70,229,.05);
  border: 1px solid var(--brand-light);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}

.verb-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  padding-top: 4px;
}

.verb-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.verb-chip {
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--brand-light);
  border-radius: var(--r-full);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.verb-chip:hover { background: var(--brand); color: #fff; }

/* ── 17. Skills Tag Input ────────────────────────────────── */
.skill-input-wrap { position: relative; }

.skill-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.skill-option {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast);
}
.skill-option:hover { background: var(--bg-hover); }

.skill-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  min-height: 32px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--brand-light);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: var(--r-full);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: default;
}

.skill-tag-del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.skill-tag-del:hover { background: rgba(79,70,229,.2); }

.skill-related-box {
  margin-top: 12px;
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.skill-related-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.skill-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-related-chip {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.skill-related-chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── 18. Design Panel Components ─────────────────────────── */

/* Template grid */
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.tpl-card {
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.tpl-card:hover { border-color: var(--brand); box-shadow: 0 4px 16px var(--brand-glow); }

.tpl-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.tpl-card.active::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  z-index: 2;
  line-height: 26px;
  text-align: center;
}

/* Template thumbs */
.tpl-thumb {
  height: 140px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.tpl-thumb-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1e293b;
}

.tpl-thumb-line { height: 1px; background: currentColor; opacity: .3; }
.tpl-thumb-bar { height: 3px; background: var(--brand); width: 50%; }
.tpl-thumb-section { font-size: 0.48rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); }
.tpl-thumb-row { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 4px; }
.tpl-thumb-mono { font-family: monospace; font-size: 0.45rem; color: #334155; letter-spacing: 1px; margin-top: 6px; }

.tpl-thumb-classic { background: #fff; color: #1e293b; }
.tpl-thumb-harvard { background: #fff; }
.tpl-thumb-tech    { background: #f8fafc; }

.tpl-thumb-executive {
  background: #fff;
  flex-direction: row;
  gap: 0;
  padding: 0;
}
.tpl-thumb-sidebar {
  width: 36px;
  background: var(--brand);
  flex-shrink: 0;
}
.tpl-thumb-main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 6px; }

.tpl-thumb-fresh { background: #f5f3ff; padding: 0; }
.tpl-thumb-fresh-header {
  background: var(--brand);
  padding: 14px 12px 10px;
}
.tpl-thumb-fresh-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.tpl-thumb-indian-fresher { background: #fff; }
.tpl-thumb-resume-title { text-align: center; font-size: 0.5rem; font-weight: bold; margin-bottom: 4px; color: #000; }
.tpl-thumb-table { height: 12px; background: repeating-linear-gradient(180deg, #e2e8f0, #e2e8f0 2px, transparent 2px, transparent 4px); margin: 4px 0; }
.tpl-thumb-modern-split { background: #fff; display: flex; padding: 0; }
.tpl-thumb-modern-split .tpl-thumb-sidebar { width: 35%; background: #f8fafc; border-right: 1px solid #e2e8f0; height: 100%; }
.tpl-thumb-modern-split .tpl-thumb-main { width: 65%; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.tpl-thumb-corporate-bold { background: #fff; display: flex; flex-direction: column; padding: 12px; }

.tpl-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.tpl-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }

.tpl-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tpl-badge.ats { background: rgba(16,185,129,.1); color: var(--accent); }

/* Color swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
  border-color: var(--bg-surface);
  box-shadow: 0 0 0 3px currentColor, 0 0 0 5px var(--bg-surface);
}

.color-custom-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--border);
  overflow: hidden;
}
.color-custom-wrap input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* Font buttons */
.font-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.font-btn {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  text-align: center;
}

.font-btn:hover { border-color: var(--brand); color: var(--brand); }
.font-btn.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }

/* Segmented control */
.seg-ctrl {
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px;
}

.seg-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}

.seg-btn.active {
  background: var(--bg-surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.seg-btn:hover:not(.active) { color: var(--text); }

/* Layout Scale Slider */
.layout-scale-block .form-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auto-fit-btn-small {
  background: rgba(139, 92, 246, 0.1);
  color: var(--brand);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.auto-fit-btn-small:hover {
  background: var(--brand);
  color: #fff;
}
.layout-scale-wrapper {
  padding: 10px 0;
}
.scale-slider {
  width: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.scale-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.scale-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  margin-top: -7px;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: transform 0.2s;
}

.scale-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.layout-scale-alert {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 12px;
}
.layout-scale-alert.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Section Order List */
.section-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: grab;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
}

.section-order-item:active { cursor: grabbing; box-shadow: var(--shadow-md); }
.section-order-item.sortable-ghost { opacity: .4; }
.section-order-item.sortable-drag { box-shadow: var(--shadow-lg); background: var(--bg-surface); }

.section-order-item i.grip { color: var(--text-faint); font-size: 0.95rem; }

.section-order-label { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); flex: 1; }

.section-order-vis {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  transition: color var(--t-fast);
}
.section-order-vis:hover { color: var(--brand); }
/* Hidden state: eye-slash icon visible, button styled in red/dim */
.section-order-vis.sec-vis-off {
  color: var(--danger);
  opacity: .8;
}

.section-order-vis.sec-vis-off:hover {
  background: rgba(239,68,68,.1);
  color: var(--danger);
}

/* Row itself dims when section is hidden */
.section-order-item.sec-item-hidden {
  opacity: .65;
}

.section-order-item.sec-item-hidden .section-order-label {
  text-decoration: line-through;
  color: var(--text-faint);
}

/* ── 19. ATS Score Panel ─────────────────────────────────── */
.ats-score-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.ats-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

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

.ats-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.ats-ring-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms cubic-bezier(.4,0,.2,1), stroke 400ms ease;
}

.ats-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.ats-score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ats-grade-wrap { flex: 1; }

.ats-grade {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.ats-grade-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ats-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ats-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.ats-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ats-check-icon.pass { background: rgba(16,185,129,.15); color: var(--accent); }
.ats-check-icon.fail { background: rgba(239,68,68,.1); color: var(--danger); }
.ats-check-icon.warn { background: rgba(245,158,11,.1); color: var(--warning); }

.ats-check-text { flex: 1; color: var(--text-secondary); font-weight: 500; }
.ats-check-pts { font-size: 0.85rem; font-weight: 700; color: var(--text-faint); flex-shrink: 0; }

/* JD Results */
.jd-results {
  margin-top: 14px;
}

.jd-result-section { margin-bottom: 12px; }

.jd-result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

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

.jd-kw-chip {
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.jd-kw-chip.found { background: rgba(16,185,129,.12); color: var(--accent); border: 1px solid rgba(16,185,129,.2); }
.jd-kw-chip.missing { background: rgba(239,68,68,.08); color: var(--danger); border: 1px solid rgba(239,68,68,.2); }

.jd-match-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── 20. Export Panel ────────────────────────────────────── */
.export-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.export-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.export-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.export-info { flex: 1; min-width: 0; }
.export-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.export-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.export-arrow { color: var(--text-faint); font-size: 1rem; }

.export-status {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  border: 1px dashed var(--border);
}

/* ── 21. Preview Panel ───────────────────────────────────── */
.preview-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  /* Independent scroll: panel fills its grid cell, never overflows */
  height: 100%;
  overflow: hidden;
  min-width: 0;
  transition: background var(--t-slow);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--t-slow), border-color var(--t-slow);
}

.toolbar-right { display: flex; align-items: center; gap: 12px; }

.preview-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.preview-scale-wrap {
  position: relative;
  transform-origin: top center;
}

/* ── 22. Resume Sheet ────────────────────────────────────── */
.resume-sheet {
  width: 794px;
  min-height: 1123px;
  background: #fff;
  box-shadow: 0 4px 40px rgba(0,0,0,.15);
  overflow: hidden;
  position: relative;
  /* CSS vars used by templates */
  --r-accent:   #4f46e5;
  --r-font:     'Inter', sans-serif;
  --r-spacing:  1.5;
  --r-size:     10pt;
}

/* Empty state */
.resume-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  gap: 12px;
  color: #94a3b8;
  text-align: center;
  padding: 40px;
}
.resume-empty-icon { font-size: 3rem; opacity: .5; }
.resume-empty p { font-size: 0.95rem; color: #94a3b8; }
.resume-empty-sub { font-size: 0.8rem; color: #cbd5e1; }

/* Page overflow warning line */
.page-overflow-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 1123px;
  border-top: 2.5px dashed var(--danger);
  z-index: 10;
}

.overflow-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ── 23. Resume Content Styles (shared across templates) ─── */
.resume-sheet * {
  box-sizing: border-box;
}

.resume-sheet {
  font-family: var(--r-font);
  font-size: var(--r-size);
  color: #1e293b;
  line-height: var(--r-spacing);
}

/* ─── Template: Classic India ─── */
.resume-sheet.tpl-classic {
  padding: 36px 40px;
}

.tpl-classic .r-header {
  text-align: center;
  border-bottom: 2px solid var(--r-accent);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.tpl-classic .r-name {
  font-size: 1.8em;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tpl-classic .r-title {
  font-size: 1em;
  color: var(--r-accent);
  font-weight: 600;
  margin-top: 2px;
}

.tpl-classic .r-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 7px;
  font-size: .85em;
  color: #475569;
}

.tpl-classic .r-contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tpl-classic .r-contact-item i { color: var(--r-accent); font-size: .9em; }

.tpl-classic .r-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--r-accent);
  margin: 0 auto 10px;
  display: block;
}

.tpl-classic .r-section { margin-bottom: 14px; }

.tpl-classic .r-section-title {
  font-size: .95em;
  font-weight: 800;
  color: var(--r-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 1.5px solid var(--r-accent);
  padding-bottom: 3px;
  margin-bottom: 8px;
}

.tpl-classic .r-entry { margin-bottom: 10px; }

.tpl-classic .r-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.tpl-classic .r-entry-title { font-weight: 700; font-size: 1em; color: #0f172a; }
.tpl-classic .r-entry-date { font-size: .85em; color: #64748b; white-space: nowrap; }
.tpl-classic .r-entry-sub { font-size: .88em; color: #475569; font-weight: 600; }
.tpl-classic .r-entry-desc { font-size: .88em; color: #334155; margin-top: 3px; line-height: 1.55; }

.tpl-classic .r-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.tpl-classic .r-skill-chip {
  padding: 3px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: .85em;
  color: #334155;
  font-weight: 500;
}

.tpl-classic .r-summary { font-size: .9em; color: #334155; line-height: 1.6; }

.tpl-classic .r-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

/* ─── Template: Harvard Clean ─── */
.resume-sheet.tpl-harvard {
  padding: 40px 44px;
}

.tpl-harvard .r-name {
  font-size: 2em;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.01em;
}

.tpl-harvard .r-title {
  font-size: 1em;
  color: #475569;
  margin: 3px 0 8px;
}

.tpl-harvard .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: .83em;
  color: #64748b;
  border-top: 1.5px solid #e2e8f0;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 6px 0;
  margin-bottom: 16px;
}

.tpl-harvard .r-contact-item { display: flex; align-items: center; gap: 4px; }
.tpl-harvard .r-contact-item i { color: var(--r-accent); }

.tpl-harvard .r-section { margin-bottom: 15px; }

.tpl-harvard .r-section-title {
  font-size: .88em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--r-accent);
  padding-left: 10px;
  border-left: 3.5px solid var(--r-accent);
  margin-bottom: 9px;
  line-height: 1.4;
}

.tpl-harvard .r-entry { margin-bottom: 10px; padding-left: 10px; }
.tpl-harvard .r-entry-header { display: flex; justify-content: space-between; align-items: flex-start; }
.tpl-harvard .r-entry-title { font-weight: 700; font-size: .98em; }
.tpl-harvard .r-entry-date { font-size: .82em; color: #64748b; }
.tpl-harvard .r-entry-sub { font-size: .88em; color: #475569; font-style: italic; }
.tpl-harvard .r-entry-desc { font-size: .88em; color: #334155; margin-top: 3px; line-height: 1.55; }

.tpl-harvard .r-skills { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 10px; }
.tpl-harvard .r-skill-chip {
  padding: 2px 9px;
  background: rgba(79,70,229,.07);
  border: 1px solid rgba(79,70,229,.15);
  border-radius: 3px;
  font-size: .82em;
  color: #334155;
}

.tpl-harvard .r-summary { font-size: .9em; line-height: 1.6; padding-left: 10px; }

.tpl-harvard .r-photo {
  float: right;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--r-accent);
  margin-left: 14px;
}

/* ─── Template: Tech Minimal ─── */
.resume-sheet.tpl-tech {
  padding: 36px 42px;
  background: #fafafa;
}

.tpl-tech .r-header {
  border-bottom: 3px solid #1e293b;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.tpl-tech .r-name {
  font-size: 1.7em;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.02em;
}

.tpl-tech .r-title {
  font-size: .9em;
  color: #64748b;
  font-family: monospace;
  margin-top: 2px;
}

.tpl-tech .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-size: .8em;
  color: #475569;
  margin-top: 6px;
  font-family: monospace;
}

.tpl-tech .r-contact-item::before { content: '· '; color: var(--r-accent); }
.tpl-tech .r-contact-item:first-child::before { content: ''; }

.tpl-tech .r-section { margin-bottom: 13px; }

.tpl-tech .r-section-title {
  font-family: monospace;
  font-size: .85em;
  font-weight: 700;
  color: var(--r-accent);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tpl-tech .r-section-title::before {
  content: '──';
  color: #94a3b8;
  font-size: .9em;
}

.tpl-tech .r-section-title::after {
  content: '──────────────────────────────────────────';
  color: #e2e8f0;
  font-size: .7em;
  overflow: hidden;
  flex: 1;
}

.tpl-tech .r-entry { margin-bottom: 9px; }
.tpl-tech .r-entry-header { display: flex; justify-content: space-between; }
.tpl-tech .r-entry-title { font-weight: 700; font-size: .95em; }
.tpl-tech .r-entry-date { font-size: .8em; color: #64748b; font-family: monospace; }
.tpl-tech .r-entry-sub { font-size: .85em; color: var(--r-accent); font-family: monospace; }
.tpl-tech .r-entry-desc { font-size: .85em; color: #334155; margin-top: 3px; line-height: 1.5; }

.tpl-tech .r-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.tpl-tech .r-skill-chip {
  padding: 2px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: .8em;
  color: #334155;
  font-family: monospace;
}

.tpl-tech .r-photo {
  float: right;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1.5px solid #1e293b;
  margin-left: 12px;
}

/* ─── Template: Elegant Executive ─── */
.resume-sheet.tpl-executive {
  padding: 0;
}

.resume-sheet.tpl-executive #resumeContentWrapper {
  display: flex;
  min-height: 1123px;
  align-items: stretch;
}

.tpl-executive .r-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--r-accent);
  padding: 32px 18px;
  color: rgba(255,255,255,.9);
}

.tpl-executive .r-main {
  flex: 1;
  min-width: 0;
  padding: 32px 28px;
}

.tpl-executive .r-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.5);
  margin: 0 auto 14px;
  display: block;
}

.tpl-executive .r-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  margin: 0 auto 14px;
}

.tpl-executive .r-sb-name {
  font-size: 1.15em;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 4px;
}

.tpl-executive .r-sb-title {
  font-size: .82em;
  color: rgba(255,255,255,.75);
  text-align: center;
  margin-bottom: 16px;
}

.tpl-executive .r-sb-section-title {
  font-size: .7em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
  margin: 12px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 4px;
}

.tpl-executive .r-sb-item {
  font-size: .82em;
  color: rgba(255,255,255,.85);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.tpl-executive .r-sb-item i { margin-top: 2px; font-size: .9em; opacity: .7; }

.tpl-executive .r-sb-skill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  font-size: .78em;
  color: rgba(255,255,255,.9);
  margin: 2px 2px 0 0;
}

.tpl-executive .r-name {
  font-size: 1.6em;
  font-weight: 900;
  color: #0f172a;
}

.tpl-executive .r-title {
  font-size: .92em;
  color: var(--r-accent);
  font-weight: 600;
  margin: 2px 0 12px;
}

.tpl-executive .r-section { margin-bottom: 14px; }

.tpl-executive .r-section-title {
  font-size: .82em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--r-accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tpl-executive .r-section-title::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: #e2e8f0;
}

.tpl-executive .r-entry { margin-bottom: 9px; }
.tpl-executive .r-entry-header { display: flex; justify-content: space-between; }
.tpl-executive .r-entry-title { font-weight: 700; font-size: .95em; }
.tpl-executive .r-entry-date { font-size: .8em; color: #64748b; }
.tpl-executive .r-entry-sub { font-size: .85em; color: #475569; font-weight: 600; }
.tpl-executive .r-entry-desc { font-size: .85em; color: #334155; margin-top: 3px; line-height: 1.5; }

/* ─── Template: Fresh Graduate ─── */
.resume-sheet.tpl-fresh {
  padding: 0 0 32px;
}

.tpl-fresh .r-header {
  background: linear-gradient(135deg, var(--r-accent), #7c3aed);
  padding: 28px 36px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tpl-fresh .r-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.tpl-fresh .r-photo-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tpl-fresh .r-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.5);
  flex-shrink: 0;
}

.tpl-fresh .r-name {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.1;
}

.tpl-fresh .r-title {
  font-size: .88em;
  color: rgba(255,255,255,.8);
  margin-top: 3px;
  font-weight: 500;
}

.tpl-fresh .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-top: 10px;
  font-size: .8em;
  color: rgba(255,255,255,.85);
}

.tpl-fresh .r-contact-item { display: flex; align-items: center; gap: 4px; }
.tpl-fresh .r-contact-item i { opacity: .7; }

.tpl-fresh .r-body { padding: 20px 36px 0; }

.tpl-fresh .r-section { margin-bottom: 14px; }

.tpl-fresh .r-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--r-accent);
  margin-bottom: 9px;
}

.tpl-fresh .r-section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--r-accent);
  border-radius: 2px;
}

.tpl-fresh .r-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.tpl-fresh .r-entry { margin-bottom: 10px; }
.tpl-fresh .r-entry-header { display: flex; justify-content: space-between; align-items: flex-start; }
.tpl-fresh .r-entry-title { font-weight: 700; font-size: .95em; color: #0f172a; }
.tpl-fresh .r-entry-date {
  font-size: .78em;
  background: var(--r-accent);
  color: #fff;
  padding: 1px 7px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}
.tpl-fresh .r-entry-sub { font-size: .85em; color: #475569; font-weight: 600; }
.tpl-fresh .r-entry-desc { font-size: .85em; color: #334155; margin-top: 3px; line-height: 1.5; }

.tpl-fresh .r-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.tpl-fresh .r-skill-chip {
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--r-accent), #7c3aed);
  color: #fff;
  border-radius: 20px;
  font-size: .8em;
  font-weight: 600;
}

/* ── Indian Fresher ──────────────────────────────────────── */
.resume-sheet.tpl-indian-fresher {
  padding: 30px 40px;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

.tpl-indian-fresher .indian-fresher-wrap {
  width: 100%;
}

.tpl-indian-fresher .indian-header-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tpl-indian-fresher .indian-header {
  margin-bottom: 15px;
}

.tpl-indian-fresher .indian-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
}

.tpl-indian-fresher .indian-contact-line {
  font-size: 14px;
  line-height: 1.4;
}

.tpl-indian-fresher .r-section {
  margin-bottom: 15px;
}

.tpl-indian-fresher .r-section-title-gray {
  background: #e2e8f0;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tpl-indian-fresher .indian-summary {
  font-size: 14px;
  line-height: 1.5;
  padding: 0 10px;
}

.tpl-indian-fresher .indian-edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 10px;
}

.tpl-indian-fresher .indian-edu-table th,
.tpl-indian-fresher .indian-edu-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.tpl-indian-fresher .indian-edu-table th {
  font-weight: bold;
}

.tpl-indian-fresher .indian-personal-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 10px;
  font-size: 14px;
}

.tpl-indian-fresher .indian-personal-row {
  display: flex;
}

.tpl-indian-fresher .indian-personal-label {
  width: 150px;
}

.tpl-indian-fresher .indian-personal-colon {
  width: 20px;
  text-align: center;
}

.tpl-indian-fresher .indian-personal-val {
  flex: 1;
}

.tpl-indian-fresher .indian-list {
  list-style-type: disc;
  margin-left: 25px;
  font-size: 14px;
  line-height: 1.5;
}

.tpl-indian-fresher .indian-list li {
  margin-bottom: 4px;
}

.tpl-indian-fresher .indian-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding: 0 10px;
  font-size: 14px;
}

.tpl-indian-fresher .indian-footer-right {
  text-align: right;
  align-self: flex-end;
}

/* ── Modern Split ────────────────────────────────────────── */
.resume-sheet.tpl-modern-split {
  padding: 0;
  background: #fff;
  color: #1e293b;
}

.tpl-modern-split .modern-split-wrap {
  display: flex;
  min-height: 100%;
}

.tpl-modern-split .r-sidebar {
  width: 32%;
  background: #f8fafc;
  padding: 30px 24px;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tpl-modern-split .r-main {
  width: 68%;
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
}

.tpl-modern-split .r-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tpl-modern-split .r-name {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--r-accent);
  margin-bottom: 4px;
  line-height: 1.1;
  text-transform: uppercase;
}

.tpl-modern-split .r-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tpl-modern-split .r-sb-section {
  margin-bottom: 5px;
}

.tpl-modern-split .r-sb-title {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--r-accent);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--r-accent);
  padding-bottom: 4px;
  display: inline-block;
  letter-spacing: 1px;
}

.tpl-modern-split .r-sb-item {
  font-size: 0.85em;
  margin-bottom: 8px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

.tpl-modern-split .r-sb-item i {
  color: var(--r-accent);
  width: 14px;
  text-align: center;
}

.tpl-modern-split .r-sb-skills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tpl-modern-split .r-sb-skills span {
  background: #e2e8f0;
  color: #1e293b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.tpl-modern-split .r-summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 24px;
}

.tpl-modern-split .r-section { margin-bottom: 20px; }
.tpl-modern-split .r-section-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--r-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.tpl-modern-split .r-entry { margin-bottom: 14px; }
.tpl-modern-split .r-entry-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tpl-modern-split .r-entry-title { font-weight: 700; font-size: 1em; color: #1e293b; }
.tpl-modern-split .r-entry-sub { font-weight: 600; font-size: 0.9em; color: var(--r-accent); }
.tpl-modern-split .r-entry-date { font-size: 0.85em; color: #64748b; font-weight: 600; }
.tpl-modern-split .r-entry-desc { font-size: 0.9em; color: #334155; line-height: 1.5; margin-top: 4px; }

.tpl-modern-split .tpl-modern-split-r-skills { display: none; }


/* ── Corporate Bold ──────────────────────────────────────── */
.resume-sheet.tpl-corporate-bold {
  padding: 40px 48px;
  background: #fff;
  color: #000;
}

.tpl-corporate-bold .r-header {
  text-align: center;
  margin-bottom: 24px;
}

.tpl-corporate-bold .r-name {
  font-size: 2.4em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: #000;
}

.tpl-corporate-bold .r-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.tpl-corporate-bold .r-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85em;
  color: #333;
}

.tpl-corporate-bold .r-divider {
  color: #ccc;
  margin: 0 4px;
}

.tpl-corporate-bold .r-section { margin-bottom: 20px; }
.tpl-corporate-bold .r-section-title {
  font-size: 1em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.tpl-corporate-bold .r-summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #222;
}

.tpl-corporate-bold .r-entry { margin-bottom: 14px; }
.tpl-corporate-bold .r-entry-header { display: flex; justify-content: space-between; align-items: baseline; }
.tpl-corporate-bold .r-entry-title { font-weight: 800; font-size: 1.05em; color: #000; }
.tpl-corporate-bold .r-entry-sub { font-weight: 600; font-size: 0.9em; color: #333; margin-top: 2px; font-style: italic; }
.tpl-corporate-bold .r-entry-date { font-size: 0.9em; font-weight: 700; color: #000; }
.tpl-corporate-bold .r-entry-desc { font-size: 0.9em; color: #222; line-height: 1.5; margin-top: 4px; }

.tpl-corporate-bold .tpl-corporate-bold-r-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-corporate-bold .tpl-corporate-bold-r-skill-chip {
  padding: 2px 0;
  font-size: 0.95em;
  font-weight: 600;
  color: #000;
}
.tpl-corporate-bold .tpl-corporate-bold-r-skill-chip:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: #888;
}

/* ── 24. Mobile Panels ───────────────────────────────────── */
.mob-panel { display: none; }
.mob-panel.active { display: block; }

/* Mobile Accordion */
.mob-acc-item {
  border-bottom: 1px solid var(--border);
}

.mob-acc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.mob-acc-header:active { background: var(--bg-hover); }

.mob-acc-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: background var(--t-base);
}

.mob-acc-header.open .mob-acc-icon {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
}

.mob-acc-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.mob-acc-badge {
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--r-full);
}

.mob-acc-chevron {
  color: var(--text-faint);
  font-size: 0.8rem;
  transition: transform var(--t-base);
}
.mob-acc-header.open .mob-acc-chevron { transform: rotate(180deg); }

.mob-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(.4,0,.2,1);
}
.mob-acc-body.open { max-height: 3000px; }

.mob-acc-inner {
  padding: 12px 14px 16px;
  background: var(--bg-elevated);
}

/* Mobile Preview */
.mob-preview-wrap {
  width: 100%;
  overflow: hidden;
  padding: 12px 10px;
}

.mob-preview-scaler {
  transform-origin: top left;
  width: 794px;
}

.mob-export-actions {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mob-export-content {
  padding: 16px;
}

.ats-mini-panel { text-align: center; padding: 12px 0; }
.ats-mini-score {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-top: 6px;
}
.ats-mini-label { font-size: 1rem; color: var(--text-muted); }

/* ── 25. FAB & Bottom Nav ────────────────────────────────── */
.fab {
  display: none;
  position: fixed;
  bottom: 72px;
  right: 16px;
  z-index: var(--z-fab);
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  padding: 13px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 24px var(--brand-glow);
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.fab:active { transform: scale(.96); }

.mob-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fab);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  align-items: center;
  gap: 12px;
}

.mob-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
}
.mob-nav-btn:hover { background: var(--bg-hover); color: var(--text); }

.mob-nav-label {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── 26. Custom Modal ───────────────────────────────────────── */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) ease;
}

.custom-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.custom-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-base) cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.custom-modal-overlay.show .custom-modal-box {
  transform: scale(1) translateY(0);
}

.custom-modal-icon {
  font-size: 3rem;
  color: var(--brand);
  margin-bottom: 20px;
}

.custom-modal-icon.danger {
  color: var(--danger);
}

.custom-modal-content h3 {
  margin: 0 0 10px 0;
  color: var(--text);
  font-size: 1.25rem;
}

.custom-modal-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.custom-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ── 27. Toast Notifications ─────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 14px 24px;
  box-shadow: var(--shadow-2xl);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  max-width: 400px;
  pointer-events: all;
  animation: toastIn 400ms cubic-bezier(.34,1.56,.64,1);
}

.toast.removing { animation: toastOut 300ms ease forwards; }

.toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--brand); }
.toast.warn    { border-left: 4px solid var(--warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(30px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(30px) scale(.9); }
}

/* ── 27. Custom Sections ─────────────────────────────────── */
.custom-section-block {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.custom-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
}

.custom-section-title-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

/* ── 28a. Desktop: Hide all mobile-only elements ─────────── */
@media (min-width: 1024px) {
  .mob-tabs-bar   { display: none !important; }
  .mob-panel      { display: none !important; }
  .mob-accordion  { display: none !important; }
  .fab            { display: none !important; }
  .mob-bottom-nav { display: none !important; }
}

/* ── 28b. Responsive: Tablet ─────────────────────────────── */
@media (max-width: 1023px) {
  .app-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editor-panel, .preview-panel { display: none; }

  .mob-tabs-bar { display: block !important; }
  .mob-panel.active { display: block !important; }
  .fab { display: flex !important; }
  .mob-bottom-nav { display: flex !important; }

  .app-header { padding: 0 14px; gap: 8px; }
  .brand-sub { display: none; }
}

/* ── 29. Responsive: Mobile 600px ────────────────────────── */
@media (max-width: 600px) {
  .app-header { height: auto; padding: 8px 12px; }
  .brand-icon { width: 32px; height: 32px; font-size: .9rem; }
  .brand-name { font-size: 0.88rem; }

  .autosave-badge span:last-child { display: none; }
  .autosave-badge { padding: 5px 8px; gap: 0; }

  .btn-label { display: none; }
  .btn-md { padding: 7px 10px; }

  .fab { bottom: 68px; right: 12px; padding: 12px 16px; font-size: .82rem; }
}

/* ── 30. Responsive: Mobile 430px ────────────────────────── */
@media (max-width: 430px) {
  .site-topnav { padding: 0 14px 0 60px; }

  .form-grid { grid-template-columns: 1fr !important; }
  .field.span-full { grid-column: 1 !important; }

  input, textarea, select {
    font-size: 16px !important;
    min-height: 44px;
  }

  textarea { min-height: 80px; }

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

  .tpl-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    height: 76px;
  }

  .tpl-thumb { height: 76px; border-radius: 0; }

  .mob-acc-inner { padding: 10px 12px 14px; }

  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 80px;
    transform: none;
  }

  .toast { max-width: 100%; }
}

/* ── 32. Ultimate Guide Modal ────────────────────────────── */
.btn-premium-guide {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  animation: pulse-guide 2s infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-premium-guide:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-guide {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.guide-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.guide-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.guide-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.guide-modal-overlay.active .guide-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.guide-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.guide-close-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.guide-header {
  text-align: center;
  margin-bottom: 40px;
}
.guide-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.guide-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.guide-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.guide-step-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.guide-modal-overlay.active .guide-step-card {
  animation: guide-step-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--anim-delay);
}

@keyframes guide-step-up {
  to { opacity: 1; transform: translateY(0); }
}

.guide-step-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, var(--brand), #ec4899);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.guide-step-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  background: rgba(30, 41, 59, 0.9);
}
.guide-step-card:hover::before {
  opacity: 1;
}

.guide-step-number {
  position: absolute;
  top: -15px; right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  transition: color 0.4s ease;
  line-height: 1;
}
.guide-step-card:hover .guide-step-number {
  color: rgba(255, 255, 255, 0.15);
}

.guide-step-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(236, 72, 153, 0.2));
  color: #c4b5fd;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.guide-step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.guide-step-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-footer {
  text-align: center;
}
.guide-start-btn {
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--brand), #c026d3);
  border: none;
  box-shadow: 0 10px 25px rgba(192, 38, 211, 0.3);
  transition: all 0.3s ease;
  color: #fff;
  cursor: pointer;
}
.guide-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(192, 38, 211, 0.5);
}

@media (max-width: 900px) {
  .guide-steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .guide-steps-grid { grid-template-columns: 1fr; }
  .guide-header h2 { font-size: 1.8rem; }
  .guide-modal-content { padding: 24px; }
  .guide-header h2 { font-size: 1.8rem; }
  .guide-modal-content { padding: 24px; }
}

/* ── 33. Features Masterclass Section ────────────────────── */
.features-masterclass {
  position: relative;
  background: #0f172a; /* Deep dark background */
  color: #fff;
  padding: 100px 20px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  z-index: 10;
}

/* Glowing Orbs Background */
.fm-bg-orbs {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.fm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: fm-float 15s infinite alternate ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: #6366f1; top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #ec4899; bottom: -200px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #10b981; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes fm-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.fm-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.fm-header {
  text-align: center;
  margin-bottom: 80px;
}
.fm-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.fm-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.fm-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Bento Grid */
.fm-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.fm-col-span-2 { grid-column: span 2; }

/* Cards */
.fm-card {
  position: relative;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  overflow: hidden;
  cursor: default;
}
.fm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.5s ease;
}

.fm-card:hover {
  transform: translateY(-10px) scale(1.02) perspective(1000px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
  background: rgba(30, 41, 59, 0.8);
}
.fm-card:hover::before {
  background: linear-gradient(135deg, var(--brand), #ec4899);
}

.fm-icon {
  font-size: 2.5rem;
  color: #818cf8;
  margin-bottom: 24px;
  transition: transform 0.5s ease;
}
.fm-card:hover .fm-icon {
  transform: scale(1.1) translateY(-5px);
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.fm-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.fm-card p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 1rem;
}

/* Zig-Zag Layout */
.fm-zigzag {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 80px 0;
}
.fm-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.fm-row-reverse {
  flex-direction: row-reverse;
}

.fm-text-side {
  flex: 1;
}
.fm-visual-side {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.fm-icon-large {
  font-size: 3.5rem;
  color: #ec4899;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.4));
}
.fm-row-reverse .fm-icon-large { color: #8b5cf6; filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)); }

.fm-text-side h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}
.fm-text-side p {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 16px;
}
.fm-list {
  list-style: none;
  padding: 0; margin-top: 24px;
}
.fm-list li {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.fm-list li i { color: #10b981; }

/* Visual Mockups */
.fm-glass-mockup {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.fm-row:hover .fm-glass-mockup { transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.05); }

.mockup-header { font-size: 1rem; color: #fff; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;}
.mockup-slider-track { height: 6px; background: rgba(255,255,255,0.2); border-radius: 10px; position: relative; margin-bottom: 30px; }
.mockup-slider-thumb { width: 20px; height: 20px; background: #fff; border-radius: 50%; position: absolute; top: 50%; left: 30%; transform: translate(-50%, -50%); box-shadow: 0 0 15px #fff; animation: fm-slide 3s infinite alternate ease-in-out; }
.mockup-alert { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; padding: 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }

@keyframes fm-slide { 0% { left: 90%; } 100% { left: 30%; } }

.fm-bento-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%; max-width: 350px;
  transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.fm-row-reverse:hover .fm-bento-mini { transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.05); }

.mini-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  backdrop-filter: blur(10px);
}
.color-box { background: linear-gradient(135deg, #3b82f6, #8b5cf6); border: none; }
.tpl-box { grid-column: span 2; color: #ec4899; font-size: 3rem; }

/* Scroll Reveal Animations */
.fm-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  transition-delay: var(--delay, 0s);
}
.fm-reveal.fm-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .fm-bento-grid { grid-template-columns: 1fr 1fr; }
  .fm-col-span-2 { grid-column: span 1; }
  .fm-row, .fm-row-reverse { flex-direction: column; text-align: center; gap: 40px; }
  .fm-list li { justify-content: center; }
  .fm-title { font-size: 2.8rem; }
}
@media (max-width: 768px) {
  .fm-bento-grid { grid-template-columns: 1fr; }
  .features-masterclass { padding: 60px 20px; }
  .fm-title { font-size: 2.2rem; }
}

/* ── 34. FAQ Section ─────────────────────────────────────── */
.faq-section {
  background: #0B1121; /* Slightly darker than masterclass to create visual separation */
  padding: 100px 20px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: 3rem;
  margin-top: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  padding: 0; /* Override fm-card padding to allow button to be full width */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 5;
  position: relative;
}

.faq-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.faq-item.active .faq-icon-wrap {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 5;
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.faq-answer strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .faq-header h2 { font-size: 2.2rem; }
  .faq-question { font-size: 1.05rem; padding: 20px; }
  .faq-answer p { padding: 0 20px 20px 20px; font-size: 0.95rem; }
}

/* ── 35. CTA Section ─────────────────────────────────────── */
.cta-section {
  background: var(--bg-body);
  padding: 80px 20px 120px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cta-container {
  max-width: 800px;
  width: 100%;
}

.cta-box {
  padding: 60px 40px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.cta-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-box h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.cta-btn {
  margin-top: 10px;
  font-size: 1.2rem;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  border: none;
  transition: all 0.3s ease;
  color: #fff;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.5);
  color: #fff;
}

@media (max-width: 768px) {
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 2rem; }
  .cta-btn { font-size: 1.1rem; padding: 14px 28px; }
}

/* ── 36. Professional Footer ─────────────────────────────── */
.app-footer {
  background: #0B1121;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo i {
  color: var(--brand);
}

.footer-copy {
  font-size: 0.9rem;
  margin: 0;
}

.made-with-love {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ── 37. Print / PDF ─────────────────────────────────────── */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html, body {
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .site-topnav, .app-header, .mob-tabs-bar, .editor-panel,
  .preview-toolbar, .mob-panel, .fab, .mob-bottom-nav,
  .toast-container, .page-overflow-line { display: none !important; }

  .app-layout { display: block; }

  .preview-panel {
    display: block !important;
    overflow: visible;
  }

  .preview-scroll { overflow: visible; padding: 0; }
  .preview-scale-wrap { transform: none !important; }

  .resume-sheet {
    width: 794px !important;
    min-height: 1123px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}
