/* ============================================================
   TOOLSPOT — RESUME BUILDER SPECIFIC STYLES
   ============================================================ */

.rb-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.rb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rb-btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.rb-btn-primary:hover {
  background: #ea580c;
  border-color: #ea580c;
}

.rb-btn-remove {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  width: 100%;
  border-color: rgba(220, 38, 38, 0.2);
  margin-top: 12px;
  margin-bottom: 14px;
}

.rb-btn-remove:hover {
  background: rgba(220, 38, 38, 0.2);
}

/* ── EDITOR LAYOUT FIX ── */
#rb-editor {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  /* Force children to take full width */
}

#rb-editor .panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#rb-editor .form-fields {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
}

#rb-editor .fg {
  width: 100% !important;
  align-items: stretch !important;
  margin-left: 0 !important;
}

#rb-editor .form-grid {
  width: 100% !important;
  margin-left: 0 !important;
}


/* ── ATS KEYWORDS ── */
.ats-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ats-chip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.ats-chip:hover {
  background: rgba(16, 185, 129, 0.2);
}

body.light .ats-chip {
  color: #059669;
}

/* ── PREVIEW PANEL (RIGHT) ── */
.rb-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: auto;
  /* Allow horizontal scroll if scaling gets tight on mobile */
  position: relative;
  padding: 0;
  /* Override .panel padding */
  min-height: 50vh;
  border-radius: 20px;
  /* Match typical panel rounding */
}

.rb-preview-toolbar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

body.light .rb-preview-toolbar {
  background: rgba(255, 255, 255, 0.5);
}

.rb-preview-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rb-preview-controls .rb-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-preview-controls .rb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.rb-preview-controls select.rb-btn {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px !important;
}

body.light .rb-preview-controls select.rb-btn {
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); */
}

body.light .rb-preview-controls .rb-btn {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .rb-preview-controls .rb-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.rb-preview-controls .rb-btn-primary {
  background: var(--red) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.rb-preview-controls .rb-btn-primary:hover {
  background: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Ensure options are readable in dark mode */
#export-format option {
  background: #1e293b;
  color: white;
}

body.light #export-format option {
  background: white;
  color: #333;
}

/* Scaling container to simulate A4 */
.rb-scale-container {
  padding: 40px;
  transition: transform 0.2s;
  transform-origin: top center;
}

@media (max-width: 768px) {
  .rb-scale-container {
    transform: scale(0.6);
    padding: 20px;
  }
}

/* ── THEME SWATCHES (RESTORATION & UPGRADE) ── */
.color-picker-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.theme-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--panel-bg);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
}

.theme-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.theme-swatch.active {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.swatch-color {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-color-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  cursor: pointer;
  background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
  transition: transform 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-color-wrap:hover {
  transform: scale(1.1);
}

.custom-color-wrap input[type="color"] {
  opacity: 0.001;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* The actual A4 Resume Sheet */
.a4-sheet {
  width: 794px;
  /* A4 width at 96 DPI */
  min-height: 1123px;
  /* A4 height */
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  /* Enhanced visibility */
  border-radius: 8px;
  /* Rounded corners for preview UI */
  overflow: hidden;
  /* Ensure content respects the border radius */
  color: #333;
  /* Resumes are always printed white/black */
  font-family: var(--resume-font, 'Inter', sans-serif);
  position: relative;
  box-sizing: border-box;
}

/* ── RESUME TEMPLATES ── */

/* 1. Classic Template (Clean, safe, conservative) */
.template-classic {
  padding: 48px;
}

.template-classic .resume-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--resume-primary-color, #333);
  padding-bottom: 16px;
}

.template-classic .r-name {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--resume-primary-color, #333);
}

.template-classic .r-contact {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

.template-classic .r-section {
  margin-bottom: 20px;
}

.template-classic .r-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--resume-primary-color, #333);
  text-transform: uppercase;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.template-classic .r-item {
  margin-bottom: 12px;
}

.template-classic .r-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

.template-classic .r-item-sub {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.template-classic .r-text {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

.template-classic .r-skills-list {
  font-size: 13px;
  line-height: 1.6;
}

/* 2. Modern Template (2 Column) */
.template-modern {
  display: flex;
  min-height: 1123px;
}

.template-modern .r-left-col {
  width: 32%;
  background: var(--resume-primary-color, #1e293b);
  color: white;
  padding: 40px 24px;
}

.template-modern .r-right-col {
  width: 68%;
  padding: 40px;
}

.template-modern .r-name {
  font-size: 26px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 8px;
}

.template-modern .r-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.template-modern .r-contact-item {
  font-size: 11px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.template-modern .r-section-title-light {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  margin: 32px 0 16px;
}

.template-modern .r-section-title-dark {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--resume-primary-color, #1e293b);
  border-bottom: 2px solid var(--resume-primary-color, #1e293b);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.template-modern .r-item {
  margin-bottom: 16px;
}

.template-modern .r-item-title {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}

.template-modern .r-item-meta {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
}

.template-modern .r-text {
  font-size: 12px;
  line-height: 1.6;
  color: #444;
}

.template-modern .r-skill-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 4px 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 3. Executive Template (Dense, Traditional) */
.template-executive {
  padding: 48px;
}

.template-executive .resume-header {
  text-align: center;
  border-bottom: 4px double var(--resume-primary-color, #111);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.template-executive .r-name {
  font-size: 32px;
  font-weight: 800;
  font-family: 'Times New Roman', serif;
  color: var(--resume-primary-color, #111);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.template-executive .r-title {
  display: none;
}

.template-executive .r-contact {
  font-size: 11px;
  color: #333;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.template-executive .r-section {
  margin-bottom: 16px;
}

.template-executive .r-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  border-bottom: 2px solid var(--resume-primary-color, #111);
  padding-bottom: 2px;
  margin-bottom: 8px;
}

.template-executive .r-item {
  margin-bottom: 10px;
}

.template-executive .r-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  color: #222;
}

.template-executive .r-item-sub {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-style: italic;
  font-size: 12px;
  color: #444;
  margin-bottom: 2px;
}

.template-executive .r-text {
  font-size: 11px;
  line-height: 1.4;
  color: #111;
}

.template-executive .r-skills-list {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #222;
}

/* 4. Creative Template (Left aligned bold elements) */
.template-creative {
  padding: 50px 40px;
}

.template-creative .resume-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.template-creative .r-name-box {
  flex: 1;
}

.template-creative .r-name {
  font-size: 38px;
  font-weight: 800;
  color: var(--resume-primary-color, #222);
  line-height: 1;
  letter-spacing: -1px;
}

.template-creative .r-title {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin-top: 5px;
}

.template-creative .r-contact {
  text-align: right;
  font-size: 11px;
  color: #555;
}

.template-creative .r-section {
  display: flex;
  margin-bottom: 24px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.template-creative .r-section-title {
  width: 140px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--resume-primary-color, #222);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.template-creative .r-content {
  flex: 1;
}

.template-creative .r-item {
  margin-bottom: 14px;
}

.template-creative .r-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: #222;
}

.template-creative .r-item-sub {
  font-size: 12px;
  color: var(--resume-primary-color, #666);
  font-weight: 600;
  margin-bottom: 4px;
}

.template-creative .r-text {
  font-size: 12px;
  line-height: 1.6;
  color: #444;
}

.template-creative .r-skill-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  margin: 0 4px 6px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 5. Minimalist Template (Clean typography) */
.template-minimalist {
  padding: 50px;
}

.template-minimalist .resume-header {
  margin-bottom: 40px;
}

.template-minimalist .r-name {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: lowercase;
  color: #111;
  margin-bottom: 6px;
}

.template-minimalist .r-title {
  font-size: 12px;
  color: var(--resume-primary-color, #555);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.template-minimalist .r-contact {
  margin-top: 12px;
  font-size: 11px;
  color: #777;
}

.template-minimalist .r-section {
  margin-bottom: 30px;
}

.template-minimalist .r-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--resume-primary-color, #111);
  margin-bottom: 12px;
}

.template-minimalist .r-item {
  margin-bottom: 16px;
}

.template-minimalist .r-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 13px;
  color: #222;
}

.template-minimalist .r-item-date {
  font-size: 11px;
  color: #888;
  font-family: monospace;
}

.template-minimalist .r-item-sub {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.template-minimalist .r-text {
  font-size: 12px;
  line-height: 1.7;
  color: #444;
}

.template-minimalist .r-skills-list {
  font-size: 12px;
  color: #444;
  line-height: 1.8;
}

/* 6. Professional Template (Grid Matrix) */
.template-professional {
  padding: 40px;
}

.template-professional .resume-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-bottom: 2px solid var(--resume-primary-color, #111);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.template-professional .r-name {
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.template-professional .r-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--resume-primary-color, #555);
}

.template-professional .r-contact {
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
  color: #444;
}

.template-professional .r-section {
  margin-bottom: 20px;
}

.template-professional .r-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  color: var(--resume-primary-color, #111);
  margin-bottom: 10px;
  border-left: 3px solid var(--resume-primary-color, #111);
}

.template-professional .r-item {
  margin-bottom: 12px;
}

.template-professional .r-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  color: #111;
}

.template-professional .r-item-sub {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.template-professional .r-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: #333;
}

.template-professional .r-skills-list {
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
}

/* 7. Startup Template (Bold & Clean) */
.template-startup {
  padding: 40px;
}

.template-startup .resume-header {
  text-align: center;
  margin-bottom: 30px;
}

.template-startup .r-name {
  font-size: 34px;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}

.template-startup .r-title {
  font-size: 14px;
  color: var(--resume-primary-color, #ef4444);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.template-startup .r-contact {
  font-size: 12px;
  color: #666;
}

.template-startup .r-section {
  margin-bottom: 24px;
}

.template-startup .r-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 3px solid var(--resume-primary-color, #ef4444);
  padding-bottom: 2px;
}

.template-startup .r-item {
  margin-bottom: 16px;
  border-left: 2px solid #eee;
  padding-left: 12px;
  margin-left: 4px;
}

.template-startup .r-item-header {
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

.template-startup .r-item-sub {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  margin-bottom: 4px;
}

.template-startup .r-item-sub span.date {
  color: var(--resume-primary-color, #ef4444);
  font-weight: 600;
  margin-left: 6px;
}

.template-startup .r-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: #444;
}

.template-startup .r-skill-pill {
  display: inline-block;
  border: 1px solid var(--resume-primary-color, #ef4444);
  color: var(--resume-primary-color, #ef4444);
  background: transparent;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin: 0 6px 8px 0;
}

/* 8. Academic Template (Rigorous) */
.template-academic {
  padding: 48px 56px;
}

.template-academic .resume-header {
  text-align: center;
  border-bottom: 1px solid #111;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.template-academic .r-name {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  margin-bottom: 4px;
}

.template-academic .r-title {
  display: none;
}

.template-academic .r-contact {
  font-size: 11px;
  font-family: 'Times New Roman', serif;
  color: #111;
}

.template-academic .r-section {
  margin-bottom: 16px;
}

.template-academic .r-section-title {
  font-size: 12px;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  padding: 2px 6px;
  margin-bottom: 8px;
  display: inline-block;
}

.template-academic .r-item {
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
}

.template-academic .r-date-col {
  width: 100px;
  font-family: 'Times New Roman', serif;
  font-size: 11px;
  font-style: italic;
  flex-shrink: 0;
}

.template-academic .r-content-col {
  flex: 1;
}

.template-academic .r-item-header {
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  font-size: 12px;
  color: #111;
  margin-bottom: 2px;
}

.template-academic .r-item-sub {
  font-size: 11px;
  font-family: 'Times New Roman', serif;
  color: #333;
  margin-bottom: 2px;
}

.template-academic .r-text {
  font-size: 11px;
  font-family: 'Times New Roman', serif;
  line-height: 1.4;
  color: #111;
}

.template-academic .r-text-block {
  font-size: 11px;
  font-family: 'Times New Roman', serif;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* 9. Functional Template (Skills First) */
.template-functional {
  padding: 40px;
}

.template-functional .resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--resume-primary-color, #222);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.template-functional .r-name {
  font-size: 30px;
  font-weight: 800;
  color: #111;
}

.template-functional .r-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--resume-primary-color, #555);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.template-functional .r-contact {
  text-align: right;
  font-size: 11px;
  color: #555;
}

.template-functional .r-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--resume-primary-color, #222);
  margin-bottom: 12px;
}

.template-functional .r-skills-grid {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.template-functional .r-skill-pill {
  display: inline-block;
  background: white;
  border: 1px solid #ddd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin: 0 6px 6px 0;
  color: #333;
}

.template-functional .r-exp-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  margin-bottom: 16px;
  border-left: 2px solid var(--resume-primary-color, #222);
  padding-left: 12px;
}

.template-functional .r-item-date {
  font-size: 11px;
  font-weight: 600;
  color: #666;
}

.template-functional .r-item-header {
  font-weight: 700;
  font-size: 13px;
  color: #222;
}

.template-functional .r-item-sub {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.template-functional .r-text {
  font-size: 12px;
  line-height: 1.5;
  color: #444;
}

/* 10. Hybrid Template (Split Top Header Block) */
.template-hybrid {
  padding: 0;
  min-height: 1123px;
  display: flex;
  flex-direction: column;
}

.template-hybrid .r-top-block {
  background: var(--resume-primary-color, #0f172a);
  color: white;
  padding: 40px;
  text-align: center;
}

.template-hybrid .r-name {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.template-hybrid .r-title {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.template-hybrid .r-contact {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.template-hybrid .r-main {
  padding: 30px 40px;
  flex: 1;
  background: white;
}

.template-hybrid .r-section {
  margin-bottom: 24px;
}

.template-hybrid .r-section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--resume-primary-color, #0f172a);
  border-bottom: 2px solid var(--resume-primary-color, #0f172a);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.template-hybrid .r-item {
  margin-bottom: 16px;
}

.template-hybrid .r-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

.template-hybrid .r-item-sub {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  margin-bottom: 4px;
}

.template-hybrid .r-text {
  font-size: 12px;
  line-height: 1.6;
  color: #333;
}

.template-hybrid .r-skill-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.05);
  color: #222;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin: 0 6px 6px 0;
}

/* ── DRAG AND DROP REORDERING ── */
.rb-item-card {
  position: relative;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
  background: var(--panel-bg, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.rb-item-card.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.rb-item-card.drag-over {
  border-top: 3px solid var(--red);
  margin-top: 16px;
}

.drag-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3, #888);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: grab;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 12px;
  user-select: none;
}

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