/*
 * Shipping Label Generator v2.2
 * ALL CSS scoped to .slg-wrap — zero impact on site header/footer/fonts
 * toolbaz.in
 */

/* ── Tool container: CSS variables scoped here ── */
.slg-wrap {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface2: #f1f4f9;
  --border: #e2e8f2;
  --border-hover: #c7d2e8;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.08) 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', monospace;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: #f8f9fc;
  -webkit-font-smoothing: antialiased;
}

/* ── Scoped box-sizing reset (ONLY inside tool) ── */
.slg-wrap *, .slg-wrap *::before, .slg-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── H1 Title ── */
.slg-wrap .slg-tool-title {
  padding: 28px 20px 0;
  max-width: 1400px;
  margin: 0 auto;
}
.slg-wrap .slg-h1 {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  border: none !important;
  text-transform: none !important;
}
.slg-wrap .slg-h1 .slg-grad {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.slg-wrap .slg-h1-sub {
  font-size: 15px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  background: none !important;
  -webkit-text-fill-color: #475569 !important;
}
@media (max-width: 640px) {
  .slg-wrap .slg-tool-title { padding: 16px 12px 0; }
  .slg-wrap .slg-h1 { font-size: 20px !important; }
}

/* ── Fixed notification (global — needs fixed positioning) ── */
.notif {
  position: fixed !important; bottom: 24px !important; right: 24px !important;
  background: #0f172a; color: white;
  padding: 12px 18px; border-radius: 14px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 10px;
  z-index: 999999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s;
  max-width: 320px;
  font-family: 'Inter', sans-serif;
}
.notif.show { transform: translateY(0) !important; opacity: 1 !important; }
.notif.success { background: #10b981; }
.notif.error { background: #ef4444; }


/* v2.3: Removed unscoped :root block that leaked CSS variables (--bg, --border, --text, --accent...)
   into the parent theme (Astra etc.), which collapsed site footer width.
   All tool variables are already defined inside .slg-wrap above — fully isolated. */

/* ===== SCROLLBAR (scoped to tool only) ===== */
.slg-wrap ::-webkit-scrollbar { width: 6px; height: 6px; }
.slg-wrap ::-webkit-scrollbar-track { background: transparent; }
.slg-wrap ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }





















/* ===== MAIN LAYOUT ===== */
.slg-wrap .main-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) {
  .slg-wrap .main-wrap { grid-template-columns: 1fr; }
}

/* ===== MARKETPLACE TABS ===== */
.slg-wrap .marketplace-tabs {
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.slg-wrap .mkt-tab {
  flex: 1; min-width: 80px;
  padding: 8px 12px;
  border: none; background: transparent;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--text-2);
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
}
.slg-wrap .mkt-tab:hover { background: var(--surface); color: var(--text); }
.slg-wrap .mkt-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.slg-wrap .mkt-tab .tab-icon { display: block; font-size: 16px; margin-bottom: 2px; }

/* ===== CARDS ===== */
.slg-wrap .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.slg-wrap .card:hover { box-shadow: var(--shadow-lg); }
.slg-wrap .card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.slg-wrap .card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.slg-wrap .card-icon.blue { background: rgba(99,102,241,0.1); }
.slg-wrap .card-icon.purple { background: rgba(139,92,246,0.1); }
.slg-wrap .card-icon.pink { background: rgba(236,72,153,0.1); }
.slg-wrap .card-icon.green { background: rgba(16,185,129,0.1); }
.slg-wrap .card-icon.orange { background: rgba(245,158,11,0.1); }
.slg-wrap .card-title {
  font-family: var(--font);
  font-weight: 700; font-size: 15px; color: var(--text);
}
.slg-wrap .card-subtitle { font-size: 13px; color: var(--text-3); margin-top: 1px; }

/* ===== FORM ===== */
.slg-wrap .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slg-wrap .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.slg-wrap .form-grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .slg-wrap .form-grid, .slg-wrap .form-grid.cols-3 { grid-template-columns: 1fr; }
}
.slg-wrap .form-group { display: flex; flex-direction: column; gap: 6px; }
.slg-wrap .form-group.full { grid-column: 1 / -1; }
.slg-wrap .form-label {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 5px;
}
.slg-wrap .form-label .req { color: var(--accent); }
.slg-wrap .form-input, .slg-wrap .form-select, .slg-wrap .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; color: var(--text);
  transition: all 0.2s;
  outline: none;
  appearance: none;
}
.slg-wrap .form-input:focus, .slg-wrap .form-select:focus, .slg-wrap .form-textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.slg-wrap .form-input.error { border-color: var(--danger); background: rgba(239,68,68,0.03); }
.slg-wrap .form-input.valid { border-color: var(--success); }
.slg-wrap .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px; }
.slg-wrap .form-textarea { resize: vertical; min-height: 80px; }
.slg-wrap .input-hint { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.slg-wrap .input-error { font-size: 11.5px; color: var(--danger); margin-top: 2px; display: none; }
.slg-wrap .input-error.show { display: block; }

/* ===== DIMENSION GROUP ===== */
.slg-wrap .dim-group {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end;
}

/* ===== QUALITY SCORE ===== */
.slg-wrap .quality-score {
  background: var(--grad-soft);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.slg-wrap .score-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  position: relative;
}
.slg-wrap .score-num {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  line-height: 1;
}
.slg-wrap .score-max { font-size: 10px; color: var(--text-3); }
.slg-wrap .score-ring {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: conic-gradient(var(--success) var(--pct, 0%), transparent 0%);
  opacity: 0.3;
  transition: all 0.5s;
}
.slg-wrap .score-info { flex: 1; }
.slg-wrap .score-label { font-weight: 700; font-size: 15px; color: var(--text); }
.slg-wrap .score-desc { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.slg-wrap .score-bars { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.slg-wrap .score-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.slg-wrap .score-bar-track { flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.slg-wrap .score-bar-fill { height: 100%; background: var(--grad); border-radius: 99px; transition: width 0.5s; }

/* ===== WARNINGS ===== */
.slg-wrap .warnings-area { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.slg-wrap .warn-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}
.slg-wrap .warn-item.error { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); color: #b91c1c; }
.slg-wrap .warn-item.warning { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); color: #92400e; }
.slg-wrap .warn-item.info { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.2); color: #3730a3; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ===== TOGGLE ROW ===== */
.slg-wrap .toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.slg-wrap .toggle-row:last-child { border-bottom: none; }
.slg-wrap .toggle-label { font-size: 14px; font-weight: 500; color: var(--text); }
.slg-wrap .toggle-desc { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.slg-wrap .toggle {
  width: 42px; height: 24px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none;
  outline: none;
}
.slg-wrap .toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.slg-wrap .toggle.on { background: var(--accent); }
.slg-wrap .toggle.on::after { transform: translateX(18px); }

/* ===== NOTES CHIPS ===== */
.slg-wrap .notes-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slg-wrap .note-chip {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  cursor: pointer; background: var(--surface);
  transition: all 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.slg-wrap .note-chip:hover { border-color: var(--accent); color: var(--accent); }
.slg-wrap .note-chip.selected {
  background: rgba(99,102,241,0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== GENERATE BUTTON ===== */
.slg-wrap .btn-generate {
  width: 100%;
  padding: 14px 24px;
  background: var(--grad);
  border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 16px; font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.slg-wrap .btn-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}
.slg-wrap .btn-generate:active { transform: translateY(0); }
.slg-wrap .btn-generate::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

/* ===== SECONDARY BUTTONS ===== */
.slg-wrap .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.slg-wrap .btn {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none;
  white-space: nowrap;
}
.slg-wrap .btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
}
.slg-wrap .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,0.04); }
.slg-wrap .btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 2px 10px rgba(99,102,241,0.25);
}
.slg-wrap .btn-primary:hover { background: var(--accent-2); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
.slg-wrap .btn-success { background: var(--success); color: white; }
.slg-wrap .btn-success:hover { opacity: 0.9; }
.slg-wrap .btn-sm { padding: 7px 12px; font-size: 12.5px; }

/* ===== STICKY PREVIEW ===== */
.slg-wrap .preview-panel {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== LABEL PREVIEW CARD ===== */
.slg-wrap .label-preview-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.slg-wrap .preview-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.slg-wrap .preview-title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.slg-wrap .preview-actions { display: flex; gap: 8px; }
.slg-wrap .label-canvas {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.slg-wrap .label-frame {
  background: white;
  border: 1.5px solid #1e293b;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

/* ===== GENERIC LABEL STYLE ===== */
.slg-wrap .lbl-generic .lbl-top {
  background: #1e293b; color: white;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.slg-wrap .lbl-amazon .lbl-top { background: #232f3e; color: white; }
.slg-wrap .lbl-usps .lbl-top { background: #004b87; color: white; }
.slg-wrap .lbl-delhivery .lbl-top { background: #e32636; color: white; }
.slg-wrap .lbl-fedex .lbl-top { background: #4d148c; color: white; }
.slg-wrap .lbl-dhl .lbl-top { background: #d40511; color: white; }
.slg-wrap .lbl-ups .lbl-top { background: #351c15; color: white; }

.slg-wrap .lbl-courier-name {
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.5px;
}
.slg-wrap .lbl-service-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.15); padding: 3px 8px; border-radius: 4px;
}
.slg-wrap .lbl-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.slg-wrap .lbl-addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slg-wrap .lbl-addr-block {}
.slg-wrap .lbl-addr-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b; margin-bottom: 3px;
}
.slg-wrap .lbl-addr-name { font-weight: 700; font-size: 13px; color: #0f172a; line-height: 1.2; }
.slg-wrap .lbl-addr-company { font-size: 11px; color: #475569; }
.slg-wrap .lbl-addr-street { font-size: 11.5px; color: #334155; margin-top: 3px; line-height: 1.4; }
.slg-wrap .lbl-addr-city { font-size: 11.5px; font-weight: 600; color: #0f172a; }
.slg-wrap .lbl-divider { border: none; border-top: 1.5px dashed #cbd5e1; }
.slg-wrap .lbl-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slg-wrap .lbl-tracking-block {}
.slg-wrap .lbl-tracking-label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; }
.slg-wrap .lbl-tracking-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #0f172a; letter-spacing: 0.05em; }
.slg-wrap .lbl-barcode-area { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.slg-wrap .lbl-barcode-area svg { max-width: 200px; height: 40px; }
.slg-wrap .lbl-qr-area { display: flex; flex-direction: column; align-items: center; }
.slg-wrap .lbl-qr-area canvas, .slg-wrap .lbl-qr-area img { width: 64px !important; height: 64px !important; }
.slg-wrap .lbl-qr-label { font-size: 8px; color: #94a3b8; text-align: center; margin-top: 3px; }
.slg-wrap .lbl-bottom-row { display: flex; align-items: center; justify-content: space-between; }
.slg-wrap .lbl-weight-box {
  border: 1.5px solid #1e293b; border-radius: 4px;
  padding: 4px 10px;
  font-weight: 700; font-size: 12px; color: #0f172a;
}
.slg-wrap .lbl-priority-badge {
  padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.slg-wrap .priority-standard { background: #f1f5f9; color: #475569; }
.slg-wrap .priority-express { background: #fef3c7; color: #92400e; }
.slg-wrap .priority-overnight { background: #fee2e2; color: #991b1b; }
.slg-wrap .priority-sameday { background: #dcfce7; color: #065f46; }
.slg-wrap .lbl-notes-area { display: flex; flex-wrap: wrap; gap: 4px; }
.slg-wrap .lbl-note-chip {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid #e2e8f0; color: #475569; padding: 2px 7px; border-radius: 3px;
}
.slg-wrap .lbl-note-chip.fragile { border-color: #fca5a5; color: #dc2626; }
.slg-wrap .lbl-note-chip.handle { border-color: #6ee7b7; color: #047857; }
.slg-wrap .lbl-note-chip.bend { border-color: #93c5fd; color: #1d4ed8; }
.slg-wrap .lbl-note-chip.signature { border-color: #c4b5fd; color: #6d28d9; }
.slg-wrap .lbl-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.slg-wrap .lbl-footer-brand { font-size: 8px; color: #cbd5e1; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.slg-wrap .lbl-pkg-info { font-size: 9px; color: #64748b; font-family: var(--font-mono); }

/* ===== AMAZON SPECIFIC ===== */
.slg-wrap .lbl-amazon .lbl-amazon-logo {
  font-weight: 900; font-size: 18px; font-style: italic; color: white;
}
.slg-wrap .lbl-amazon .lbl-amazon-logo span { color: #ff9900; }
.slg-wrap .lbl-amazon .lbl-large-addr { font-size: 15px; font-weight: 700; }

/* ===== RETURN LABEL ===== */
.slg-wrap .lbl-return-banner {
  background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 8px, #fefce8 8px, #fefce8 16px);
  border-bottom: 2px solid #f59e0b;
  padding: 5px 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #92400e;
  text-align: center;
}

/* ===== COPY COUNTER ===== */
.slg-wrap .copy-row { display: flex; align-items: center; gap: 8px; }
.slg-wrap .copy-btn { width: 30px; height: 30px; border: 1.5px solid var(--border); border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); transition: all 0.2s; }
.slg-wrap .copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.slg-wrap .copy-count { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); min-width: 24px; text-align: center; }

/* ===== BULK PANEL ===== */
.slg-wrap .bulk-section { display: none; }
.slg-wrap .bulk-section.active { display: block; }

/* ===== PROGRESS BAR ===== */
.slg-wrap .progress-wrap { display: none; }
.slg-wrap .progress-wrap.show { display: block; }
.slg-wrap .progress-bar {
  height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 8px;
}
.slg-wrap .progress-fill {
  height: 100%; background: var(--grad); border-radius: 99px;
  width: 0%; transition: width 0.3s;
}

/* ===== HISTORY ===== */
.slg-wrap .history-list { display: flex; flex-direction: column; gap: 8px; }
.slg-wrap .history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.slg-wrap .history-item:hover { border-color: var(--accent); background: rgba(99,102,241,0.03); }
.slg-wrap .history-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.slg-wrap .history-info { flex: 1; min-width: 0; }
.slg-wrap .history-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slg-wrap .history-meta { font-size: 11px; color: var(--text-3); }
.slg-wrap .history-badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.slg-wrap .history-badge.gen { background: rgba(16,185,129,0.1); color: var(--success); }

/* ===== SECTION SPACING ===== */
.slg-wrap .section-gap { display: flex; flex-direction: column; gap: 20px; }

/* ===== CONTENT SECTION ===== */
.slg-wrap .content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}
.slg-wrap .content-section h2 {
  font-family: var(--font);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}
.slg-wrap .content-section p {
  font-size: 15.5px; color: var(--text-2); line-height: 1.8;
  margin-bottom: 14px;
}
.slg-wrap .content-section h3 {
  font-family: var(--font);
  font-size: 17px; font-weight: 700; color: var(--text);
  margin: 24px 0 8px;
}

/* ===== FEATURES GRID ===== */
.slg-wrap .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.slg-wrap .feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.slg-wrap .feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.slg-wrap .feature-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(99,102,241,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.slg-wrap .feature-card h4 {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--text);
  margin-bottom: 5px;
}
.slg-wrap .feature-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ===== HOW TO STEPS ===== */
.slg-wrap .steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 28px 0;
}
.slg-wrap .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.slg-wrap .step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.slg-wrap .step-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.slg-wrap .step-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin: 0; }

/* ===== FAQ ===== */
.slg-wrap .faq-list { display: flex; flex-direction: column; gap: 2px; margin: 24px 0; }
.slg-wrap .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}
.slg-wrap .faq-item.open { border-color: var(--accent); }
.slg-wrap .faq-q {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer;
  font-weight: 600; font-size: 14.5px; color: var(--text);
}
.slg-wrap .faq-q:hover { color: var(--accent); }
.slg-wrap .faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s;
  color: var(--text-3);
}
.slg-wrap .faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.slg-wrap .faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 14px; color: var(--text-2); line-height: 1.7;
}
.slg-wrap .faq-item.open .faq-a { max-height: 300px; }
.slg-wrap .faq-a-inner { padding: 0 20px 16px; }

/* ===== COMPARISON TABLE ===== */
.slg-wrap .compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.slg-wrap .compare-table th {
  background: var(--text); color: white;
  padding: 12px 16px; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-align: left;
}
.slg-wrap .compare-table th:first-child { border-radius: 0; }
.slg-wrap .compare-table td {
  padding: 11px 16px; font-size: 13.5px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.slg-wrap .compare-table tr:last-child td { border-bottom: none; }
.slg-wrap .compare-table tr:nth-child(even) td { background: var(--bg); }
.slg-wrap .compare-table .check { color: var(--success); font-size: 15px; }
.slg-wrap .compare-table .cross { color: var(--text-3); font-size: 15px; }
.slg-wrap .compare-table .highlight td { color: var(--text); font-weight: 500; }
.slg-wrap .compare-table .highlight td:first-child { color: var(--accent); font-weight: 700; }





/* ===== NOTIFICATION ===== */
.notif {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text); color: white;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 10px;
  z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s;
  max-width: 320px;
}
.notif.show { transform: translateY(0); opacity: 1; }
.notif.success { background: var(--success); }
.notif.error { background: var(--danger); }

/* ===== SECTION DIVIDER ===== */
.slg-wrap .sec-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== ACCORDION SECTION ===== */
.slg-wrap .accordion-section { border-top: 1px solid var(--border); }
.slg-wrap .accordion-trigger {
  width: 100%; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--text-2);
  text-align: left;
}
.slg-wrap .accordion-trigger:hover { color: var(--text); }
.slg-wrap .accordion-trigger svg { transition: transform 0.2s; color: var(--text-3); }
.slg-wrap .accordion-trigger.open svg { transform: rotate(180deg); color: var(--accent); }
.slg-wrap .accordion-body { display: none; padding-bottom: 14px; }
.slg-wrap .accordion-body.open { display: block; }

/* ===== LOGO UPLOAD ===== */
.slg-wrap .logo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.slg-wrap .logo-upload-area:hover { border-color: var(--accent); background: rgba(99,102,241,0.03); }
.slg-wrap .logo-preview { max-height: 50px; max-width: 120px; margin: 0 auto 8px; display: none; }

/* ===== PRINT STYLES (scoped — never hide site footer/header) ===== */
@media print {
  .slg-wrap { display: block; }
  .slg-wrap .label-frame { border: 2px solid #000; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  
  .slg-wrap .hero { padding: 32px 16px 28px; }
  .slg-wrap .main-wrap { padding: 20px 12px; }
  .slg-wrap .card { padding: 16px; }
  .slg-wrap .btn-row { gap: 8px; }
  .slg-wrap .content-section { padding: 40px 16px; }
}

/* ===== MISC ===== */
.slg-wrap .text-gradient { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.slg-wrap .mt-4 { margin-top: 16px; }
.slg-wrap .mt-3 { margin-top: 12px; }
.slg-wrap .mt-2 { margin-top: 8px; }
.slg-wrap .mb-3 { margin-bottom: 12px; }
.slg-wrap .gap-section { margin-bottom: 24px; }
.slg-wrap .label-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px; text-align: center; gap: 10px;
}
.slg-wrap .label-empty-state .empty-icon { font-size: 40px; opacity: 0.3; }
.slg-wrap .label-empty-state p { font-size: 13px; color: var(--text-3); max-width: 200px; line-height: 1.5; }
.slg-wrap .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Customs section hidden by default */
.slg-wrap .customs-section { display: none; }
.slg-wrap .customs-section.show { display: grid; }
