/* ============================================================
   TOOLSPOT — Email Signature Generator Stylesheet (Enhanced)
   ============================================================ */

/* ── TOOL HEADER ── */
.tool-header p {
  max-width: 1200px;
}

/* ── PRESET ROLE BUTTONS ── */
.preset-section {
  margin-bottom: 20px;
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
}

.preset-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

.preset-role-btn {
  padding: 8px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-role-btn:hover {
  border-color: var(--red);
  background: rgba(249, 115, 22, 0.22);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.preset-role-btn:active {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .preset-role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .preset-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .preset-role-grid {
    grid-template-columns: 1fr;
  }
}


/* ── PROFILE MANAGER & BACKUP PANEL ── */
.profile-manager-panel {
  margin-bottom: 20px;
}

.profile-manager-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-manager-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.slot-select-group, .json-backup-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-select-group label, .json-backup-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
  margin: 0;
  line-height: 1.3;
}

.slot-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

.slot-inp-box {
  flex: 1;
  min-width: 0;
  height: 44px;
}

.slot-inp-box select {
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  height: 100%;
  padding: 0 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.json-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

/* Secondary Action Buttons (Export JSON, Import JSON, Copy HTML, View Code, Download .html) */
.rb-btn,
.json-actions .rb-btn,
.json-actions .json-import-btn,
.sig-sec-btn {
  height: 44px;
  padding: 0 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  user-select: none;
  text-decoration: none;
  flex: 1;
}

.rb-btn:hover,
.json-actions .rb-btn:hover,
.json-actions .json-import-btn:hover,
.sig-sec-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(249, 115, 22, 0.5);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.rb-btn:active,
.json-actions .rb-btn:active,
.json-actions .json-import-btn:active,
.sig-sec-btn:active {
  transform: translateY(0);
}

/* Primary Accent Buttons (Save Slot, Upload Photo, Add Badge, Primary CTAs) */
.fg label.rb-btn,
.rb-btn-save-slot,
.rb-btn-primary,
.rb-btn-upload-photo,
.rb-btn-add-cert {
  height: 44px;
  padding: 0 18px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  user-select: none;
  flex: none !important;
  width: auto !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0 !important;
}

.rb-btn-save-slot:hover,
.rb-btn-primary:hover,
.rb-btn-upload-photo:hover,
.rb-btn-add-cert:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

.rb-btn-save-slot:active,
.rb-btn-primary:active,
.rb-btn-upload-photo:active,
.rb-btn-add-cert:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.json-import-btn {
  margin: 0;
  cursor: pointer;
}






/* ── CERTIFICATION BADGES ── */
.cert-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cert-search-box {
  width: 190px;
  flex: none;
}

.cert-search-box input {
  height: 34px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 100%;
  transition: all 0.2s;
}

.cert-search-box input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.25);
}

.cert-chips-wrapper {
  max-height: 165px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

[data-theme="light"] .cert-chips-wrapper {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cert-chips-wrapper::-webkit-scrollbar {
  width: 5px;
}

.cert-chips-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.cert-chips-wrapper::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.35);
  border-radius: 10px;
}

.cert-chips-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.7);
}

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

.cert-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.cert-chip.active {
  border-color: var(--red);
  background: rgba(249, 115, 22, 0.15);
  color: var(--text);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

/* Custom Cert Input Wrapper */
.custom-cert-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.custom-cert-input-wrap .inp-box {
  flex: 1;
  min-width: 0;
  height: 44px;
}

/* ── QR CODE STYLE EDITOR BOX ── */
.qr-style-editor-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 10px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.qr-editor-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  width: 100%;
}

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

body.light .qr-style-editor-box {
  background: #ffffff !important;
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

body.light .qr-editor-title {
  color: #ea580c !important;
}

body.light .qr-style-editor-box .inp-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

body.light .qr-style-editor-box .inp-box:focus-within {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
}

/* ── TOGGLE OPTION PILLS (.opt-pill) OVERRIDES ── */
.fg label.opt-pill,
.opt-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100%;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  border: 1px solid var(--glass-border) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  color: var(--text) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.fg label.opt-pill:hover,
.opt-pill:hover {
  border-color: rgba(249, 115, 22, 0.4) !important;
  background: rgba(249, 115, 22, 0.12) !important;
  color: var(--text) !important;
}

.fg label.opt-pill input[type="checkbox"],
.fg label.opt-pill input[type="radio"],
.opt-pill input[type="checkbox"],
.opt-pill input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #f97316;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── COLOR PICKER & SWATCHES ── */
/* ── COLOR & GRADIENT CUSTOMIZER ── */
.color-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.color-mode-pills {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 100px;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  gap: 0;
  flex-shrink: 0;
  min-width: 172px;
}

[data-theme="dark"] .color-mode-pills {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .color-mode-pills {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.color-mode-pills-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 100px;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.45), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.color-mode-pills[data-active-index="1"] .color-mode-pills-slider {
  transform: translateX(100%);
}

.color-mode-pill {
  position: relative;
  z-index: 2;
  flex: 1 1 50%;
  min-width: 80px;
  padding: 5px 8px;
  border-radius: 100px;
  border: none;
  background: transparent !important;
  color: var(--text-2, #64748b);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.color-mode-pill:hover {
  color: var(--text, #0f172a);
}

.color-mode-pill:active {
  transform: scale(0.95);
}

.color-mode-pill.active {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  background: transparent !important;
  box-shadow: none !important;
}

.custom-color-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 4px 10px 4px 4px;
  height: 44px;
}

[data-theme="light"] .custom-color-input-box {
  background: #ffffff;
  border-color: #cbd5e1;
}

.custom-color-input-box input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.custom-color-input-box input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.custom-color-input-box input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.custom-color-input-box input[type="text"] {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: none;
  width: 80px;
  text-transform: uppercase;
  outline: none;
}

/* GRADIENT SWATCHES GRID */
.gradient-swatches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .gradient-swatches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gradient-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.gradient-swatch:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-1px);
}

.gradient-swatch.active {
  border-color: var(--red);
  background: rgba(249, 115, 22, 0.15);
  color: var(--text);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.grad-preview {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* DUAL COLOR GRADIENT BUILDER */
.custom-gradient-builder {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
}

[data-theme="light"] .custom-gradient-builder {
  background: #f8fafc;
  border-color: #cbd5e1;
}

@media (max-width: 500px) {
  .custom-gradient-builder {
    grid-template-columns: 1fr;
  }
}

.grad-col-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lbl-subtext {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
}

.inp-box-color {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 4px 8px;
  height: 38px;
}

[data-theme="light"] .inp-box-color {
  background: #ffffff;
  border-color: #cbd5e1;
}

.inp-box-color input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.inp-box-color span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* OPACITY SLIDER */
.opacity-slider-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 14px;
}

[data-theme="light"] .opacity-slider-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.opacity-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.opacity-val-badge {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--red2);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.slider-row input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), #f97316);
  outline: none;
  cursor: pointer;
  accent-color: #f97316;
}

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

.theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-2);
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-swatch:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.theme-swatch.active {
  border-color: var(--red);
  background: rgba(249, 115, 22, 0.15);
  color: var(--text);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.swatch-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.custom-color-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.2s;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
}

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

.custom-color-wrap input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  opacity: 0;
  cursor: pointer;
}

/* ── AVATAR UPLOAD & CONTROLS ── */
.avatar-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.avatar-controls-row .inp-box {
  flex: 1;
  min-width: 0;
  height: 44px;
}

.avatar-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.avatar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview-box span {
  font-size: 22px;
  color: var(--text-3);
}

/* ── SIGNATURE PREVIEW AREA ── */
.sig-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.sig-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.sig-bg-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
}

.sig-bg-btn {
  padding: 4px 12px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sig-bg-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* ── ACTIONS BAR ── */
.sig-actions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.sig-hero-copy-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.sig-hero-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.sig-hero-copy-btn:active {
  transform: translateY(0);
}

.hero-btn-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.hero-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-btn-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.hero-btn-sub {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.sig-secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

@media (max-width: 640px) {
  .sig-secondary-actions {
    grid-template-columns: 1fr;
  }
}

.sig-sec-btn {
  justify-content: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}


.sig-canvas-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  color: #1e293b;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, border-color 0.3s;
  overflow-x: auto;
}

.sig-canvas-card.bg-dark {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f3f4f6;
}

/* ── SETUP GUIDES TABS & CARDS ── */
.setup-guides-section {
  margin-top: 40px;
  width: 100%;
}

.guide-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.guide-tab-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-tab-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text);
}

.guide-tab-btn.active {
  border-color: var(--red);
  background: rgba(249, 115, 22, 0.15);
  color: var(--text);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

.guide-content-panel {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(20px);
}

.guide-content-panel.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid var(--red);
  color: var(--red2);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Modal HTML Viewer */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0f172a;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--red);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body textarea {
  width: 100%;
  height: 320px;
  background: #020617;
  color: #38bdf8;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  resize: vertical;
  outline: none;
}

/* ══════════════════════════════════════════
   LIGHT MODE OVERRIDES FOR EMAIL SIG GENERATOR
   ══════════════════════════════════════════ */
body.light .preset-section {
  background: rgba(249, 115, 22, 0.07);
  border-color: rgba(249, 115, 22, 0.25);
}

body.light .profile-manager-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

body.light .slot-select-group label,
body.light .json-backup-group label {
  color: #0f172a;
}

/* ── BUTTON STYLES IN LIGHT MODE ── */

/* Secondary Action Buttons (Export JSON, Import JSON, Copy HTML, View Code, Download .html) */
body.light .rb-btn,
body.light .json-actions .rb-btn,
body.light .json-actions .json-import-btn,
body.light .sig-sec-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light .rb-btn:hover,
body.light .json-actions .rb-btn:hover,
body.light .json-actions .json-import-btn:hover,
body.light .sig-sec-btn:hover {
  background: #f8fafc !important;
  border-color: #f97316 !important;
  color: #ea580c !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}

body.light .rb-btn:active,
body.light .json-actions .rb-btn:active,
body.light .json-actions .json-import-btn:active,
body.light .sig-sec-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}

/* Primary Action Buttons (Save Slot, Upload Photo, Add Badge & Primary CTAs) */
body.light .fg label.rb-btn,
body.light .rb-btn-primary,
body.light .rb-btn-save-slot,
body.light .rb-btn-upload-photo,
body.light .rb-btn-add-cert {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border: 1px solid #ea580c !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: auto !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.light .rb-btn-primary:hover,
body.light .rb-btn-save-slot:hover,
body.light .rb-btn-upload-photo:hover,
body.light .rb-btn-add-cert:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
  border-color: #c2410c !important;
  color: #ffffff !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4) !important;
}

body.light .rb-btn-primary:active,
body.light .rb-btn-save-slot:active,
body.light .rb-btn-upload-photo:active,
body.light .rb-btn-add-cert:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2) !important;
}

/* Light Mode Certification Badges */
body.light .cert-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.light .cert-chip:hover {
  border-color: #f97316;
  color: #ea580c;
}

body.light .cert-chip.active {
  border-color: #ea580c;
  background: #ffedd5;
  color: #c2410c;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}


/* Preset Role Buttons */
body.light .preset-role-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.light .preset-role-btn:hover {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.15);
}



body.light .sig-bg-toggle {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light .sig-bg-btn {
  color: #64748b;
}

body.light .sig-bg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

body.light .guide-tab-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #475569;
}

body.light .guide-tab-btn.active {
  border-color: var(--red);
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}

body.light .guide-content-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

body.light .modal-box {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

body.light .modal-header h3 {
  color: #0f172a;
}

body.light .modal-body textarea {
  background: #f8fafc;
  color: #0284c7;
  border-color: rgba(15, 23, 42, 0.15);
}

/* Light Mode Option Pills */
body.light .fg label.opt-pill,
body.light .opt-pill {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.light .fg label.opt-pill:hover,
body.light .opt-pill:hover {
  border-color: #f97316 !important;
  background: #fff7ed !important;
  color: #ea580c !important;
}

/* ── EXPLANATORY & EDUCATIONAL CONTENT (SEO / GEO / AEO) ── */
.explanatory-content {
  margin-top: 50px;
  line-height: 1.75;
}

.explanatory-content .panel {
  margin-bottom: 24px;
}

.explanatory-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 14px;
}

.explanatory-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 10px;
}

.explanatory-content p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.compat-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.4);
  -webkit-overflow-scrolling: touch;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.compat-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.compat-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  vertical-align: middle;
}

.compat-table tr:last-child td {
  border-bottom: none;
}

.compat-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-compat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-compat--full {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-compat--partial {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.anatomy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.anatomy-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red2);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.anatomy-card-desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

/* Light Theme overrides for Explanatory Content */
body.light .compat-table-wrap {
  border-color: rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

body.light .compat-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom-color: #e2e8f0;
}

body.light .compat-table td {
  border-bottom-color: #f1f5f9;
  color: #0f172a;
}

body.light .compat-table tr:hover td {
  background: #f8fafc;
}

body.light .badge-compat--full {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

body.light .badge-compat--partial {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

body.light .anatomy-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

@media (max-width: 768px) {
  .anatomy-grid {
    grid-template-columns: 1fr;
  }
}

