/* salary-calculator.css */
/* Design: Clean enterprise dark-accented, deep navy + warm amber */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-page:     #0f1117;
  --bg-card:     #181c26;
  --bg-panel:    #1e2333;
  --bg-input:    #252b3b;
  --bg-hover:    #2a3046;

  --border:      #2d3348;
  --border-focus:#4a90d9;
  --border-accent:#f0a500;

  --text-primary: #e8ecf4;
  --text-secondary:#8e97b0;
  --text-muted:  #5a627a;
  --text-accent: #f0a500;
  --text-link:   #4a90d9;

  --blue:        #4a90d9;
  --blue-dim:    #1f3a5f;
  --amber:       #f0a500;
  --amber-dim:   #3d2a00;
  --green:       #3ecf8e;
  --green-dim:   #0d3324;
  --red:         #e55a5a;
  --red-dim:     #3d1212;
  --purple:      #9b6dff;
  --purple-dim:  #2a1f4d;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.5);

  --font:        'Plus Jakarta Sans', sans-serif;
  --mono:        'JetBrains Mono', monospace;

  --transition:  0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14px;
}

/* ── Layout ─────────────────────────────────────────────────── */
.sc-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.sc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0px;
}
.sc-header-icon {
  width: 48px; height: 48px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.sc-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.sc-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.sc-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .sc-layout { grid-template-columns: 1fr; }
}

/* ── Card ───────────────────────────────────────────────────── */
.sc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sc-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-card-header h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}
.sc-card-header .section-icon {
  font-size: 15px;
  opacity: 0.7;
}
.sc-card-body { padding: 20px; }

/* ── Form Sections ──────────────────────────────────────────── */
.form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Form Controls ──────────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.field-group:last-child { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-row .field-group { margin-bottom: 0; }

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13.5px;
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
input[type="number"] { font-family: var(--mono); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e97b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}
input::placeholder { color: var(--text-muted); }
input:disabled, select:disabled { opacity: 0.45; cursor: not-allowed; }

.input-with-btn {
  display: flex;
  gap: 8px;
}
.input-with-btn input { flex: 1; }

.input-pair {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--amber);
  color: #0f1117;
  border-color: var(--amber);
}
.btn-primary:hover:not(:disabled) {
  background: #ffb820;
  box-shadow: 0 0 20px rgba(240,165,0,0.35);
}
.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: var(--bg-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-link);
  border-color: transparent;
  padding-left: 8px; padding-right: 8px;
}
.btn-ghost:hover:not(:disabled) { background: var(--blue-dim); }
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: var(--red);
}
.btn-danger:hover:not(:disabled) { background: #5a1515; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; min-width: 36px; }
.btn-full { width: 100%; }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Setting Bar ────────────────────────────────────────────── */
.setting-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  /* Aligns the buttons to the bottom so they sit level with the select box */
  align-items: flex-end; 
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Force the select and buttons to the same height and scale */
#setting-select, 
.setting-bar .btn {
  height: 36px;        /* Fixed height ensures they match perfectly */
  padding: 0 12px;     /* Uniform horizontal spacing */
  font-size: 14px;     /* Uniform text size */
  line-height: 1;      /* Prevents text from shifting vertically */
  box-sizing: border-box; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.setting-bar-controls {
  display: flex;
  gap: 8px;
}

/* Optional: Ensure the label doesn't add weird spacing */
.field-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* ── State Selector ─────────────────────────────────────────── */
.state-selector {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 140px;
  overflow-y: auto;
}
.state-selector::-webkit-scrollbar { width: 4px; }
.state-selector::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.state-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12.5px;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.state-item:last-child { border-bottom: none; }
.state-item:hover { background: var(--bg-hover); }
.state-item.selected { background: var(--blue-dim); color: var(--blue); }
.state-item input[type="checkbox"] {
  width: auto; accent-color: var(--blue);
}

/* ── Radio / Toggle ─────────────────────────────────────────── */
.radio-group { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.radio-chip input { display: none; }
.radio-chip:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--blue);
}
.radio-chip:hover { border-color: var(--border-focus); }

/* ── Calculate Button Row ───────────────────────────────────── */
.calc-action {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

/* ── Results Panel ──────────────────────────────────────────── */
.results-panel { position: sticky; top: 20px; }

.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}
.results-empty-icon { font-size: 48px; opacity: 0.3; }
.results-empty p { font-size: 13px; line-height: 1.7; }

/* Summary cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.summary-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.summary-card.highlight {
  border-color: var(--amber);
  background: linear-gradient(135deg, var(--amber-dim), var(--bg-panel));
}
.summary-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.summary-card .amount {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}
.summary-card.highlight .amount { color: var(--amber); }
.summary-card .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Result sections */
.result-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.result-section:last-child { border-bottom: none; }

.result-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-section-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.result-section-dot.green { background: var(--green); }
.result-section-dot.red   { background: var(--red); }
.result-section-dot.purple{ background: var(--purple); }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  gap: 8px;
}
.result-row:last-child { border-bottom: none; }
.result-row .name {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.result-row .val {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}
.result-row .val.deduction { color: var(--red); }
.result-row .val.employer  { color: var(--purple); }

.result-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.result-total-row .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.result-total-row .val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
}

/* Meta badges */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 16px;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid;
}
.meta-badge.info  { background: var(--blue-dim);   color: var(--blue);  border-color: var(--blue-dim); }
.meta-badge.warn  { background: var(--amber-dim);  color: var(--amber); border-color: var(--amber-dim); }
.meta-badge.ok    { background: var(--green-dim);  color: var(--green); border-color: var(--green-dim); }
.meta-badge.note  { background: var(--purple-dim); color: var(--purple);border-color: var(--purple-dim); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;

  background: rgba(0,0,0,0.75);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* 🔥 THIS IS THE REAL FIX */
.modal {
  position: fixed;          /* NOT relative, NOT flex child */
  top: 20%;
  left: 20%;
  top: 5%;
  transform: translate(-50%, -50%);  /* perfect center */

  width: calc(100% - 40px);
  max-width: 780px;
  max-height: 90vh;

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);

  overflow-y: auto;
}

.modal-backdrop.open .modal { transform: translateY(0); }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.modal-header {
  position: sticky; top: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-panel);
  gap: 8px;
  flex-wrap: wrap;
}

.modal-footer .btn-group {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.modal-grid .full-width { grid-column: 1 / -1; }

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

/* ── Insurance Block ────────────────────────────────────────── */
.insurance-list { display: flex; flex-direction: column; gap: 8px; }
.insurance-item {
  display: grid;
  grid-template-columns: 1fr 140px 100px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.insurance-item .ins-name {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.insurance-item .ins-name .ins-icon { font-size: 14px; }

/* ── Loading spinner ────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
  max-width: 340px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.success { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.toast.error   { background: var(--red-dim);   color: var(--red);   border: 1px solid var(--red); }
.toast.info    { background: var(--blue-dim);  color: var(--blue);  border: 1px solid var(--blue); }

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); font-size: 12px; }
.text-amber { color: var(--amber); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.flex  { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }

/* Currency symbol */
.currency-sym {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.currency-sym::before { content: '₹'; }


/* ─────────────────────────────────────────────
   LOGIN MODAL (FINAL - FIXED + RESPONSIVE)
───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   LOGIN MODAL — FINAL (ISOLATED + CLEAN UI)
───────────────────────────────────────────── */

/* HARD RESET (break global modal conflicts) */
#loginModal.modal {
  all: unset;

  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px);

  padding: 16px;
  box-sizing: border-box;
}

/* Hidden */
#loginModal.hidden {
  display: none !important;
}

/* Wrapper */
#loginModal .login-modal-content {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;

  animation: modalFadeIn 0.25s ease;
}

/* Card */
#loginModal .login-card {
  background: #ffffff;
  color: #111; /* ✅ readable text */
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}

/* Close button */
#loginModal .close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
}

#loginModal .close-modal:hover {
  color: #000;
}

/* Logo */
#loginModal .logo {
  display: block;
  margin: 0 auto 10px;
  max-height: 48px;
}

/* Title */
#loginModal h2 {
  text-align: center;
  margin-bottom: 14px;
  font-size: 20px;
  color: #111;
}

/* Text elements */
#loginModal label,
#loginModal p,
#loginModal span {
  color: #333;
}

/* Inputs */
#loginModal input[type="text"],
#loginModal input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;

  background: #f9fafb;       /* ✅ clean light bg */
  color: #111;               /* ✅ readable text */
  border: 1px solid #d1d5db;

  font-size: 14px;
  transition: all 0.2s ease;
}

/* Placeholder */
#loginModal input::placeholder {
  color: #9ca3af;
}

/* Focus */
#loginModal input:focus {
  background: #ffffff;
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Autofill fix */
#loginModal input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f9fafb inset !important;
  -webkit-text-fill-color: #111 !important;
}

/* Password toggle */
#loginModal .password-wrapper {
  position: relative;
}

#loginModal .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 18px;
  opacity: 0.6;
}

/* Actions */
#loginModal .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 10px 0 14px;
  color: #444;
}

/* Links */
#loginModal a {
  color: #2563eb;
  text-decoration: none;
}

#loginModal a:hover {
  text-decoration: underline;
}

/* Submit button */
#loginModal button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

#loginModal button[type="submit"]:hover {
  background: #1e4ed8;
}

/* Google button */
#loginModal .google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 12px;
  padding: 10px;

  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

#loginModal .google-btn:hover {
  background: #f5f5f5;
}

/* Footer links */
#loginModal .links {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

/* Messages */
#loginModal .error-message {
  background: #fee2e2;
  color: #b91c1c;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 13px;
}

#loginModal .success-message {
  background: #dcfce7;
  color: #166534;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 13px;
}



/* ── SEO & Content Sections ─────────────────────────────────── */

/* Container for text content below the header or above the footer */
.seo-intro {
  margin-top: 12px;
  padding: 0 5px;
  width: 100%;
}

.seo-intro p:not(.text-muted) {
  max-width: 900px; 
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.seo-content {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%; /* Ensure it spans the full container width */
}

.seo-content h2, 
.seo-content h3, 
.seo-content p, 
.seo-content ul {
  max-width: 1000px; /* Keep text readable */
  margin-left: auto;
  margin-right: auto;
}

/* Typography for SEO Articles */
.seo-content h2 {
  font-size: 24px;
  color: var(--amber);
  margin: 16px auto 8px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}

.seo-content h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 24px 0 12px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;  
}

.seo-content h3 + p {
  text-align: center;
  max-width: 800px; /* Keeps centered text readable */
  margin-left: auto;
  margin-right: auto;
}

.seo-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify; /* Improves clean enterprise look on desktop */
}

/* List Styling for SEO benefits/steps */
.seo-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.seo-content li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  position: relative;
  list-style: none;
}

.seo-content li::before {
  content: '→';
  color: var(--amber);
  position: absolute;
  left: -20px;
  font-weight: bold;
}

/* Links within SEO text */
.seo-content a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dashed var(--blue-dim);
  transition: all var(--transition);
}

.seo-content a:hover {
  color: var(--text-primary);
  border-bottom-style: solid;
}

/* Trust Badges and Highlights */
.trust-badge {
  display: inline-flex;
  gap: 15px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--green) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Last Updated Timestamp Styling ── */

.seo-intro .text-muted {
  display: block;
  font-size: 12px;
  color: var(--text-muted); /* Uses your existing variable */
  margin-top: 0px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-top: 1px solid var(--border);
  font-style: italic;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

/* Optional: Add a small calendar icon before the text using CSS */
.seo-intro .text-muted::before {
  content: '📅';
  margin-right: 6px;
  font-style: normal;
  font-size: 11px;
}

/* Ensure it aligns well on mobile devices */
@media (max-width: 640px) {
  .seo-intro .text-muted {
    text-align: center;
    border-top: 1px dashed var(--border); /* Slightly softer look for mobile */
  }
}

/* Mobile adjustments for text */
@media (max-width: 768px) {
  .seo-content p {
    text-align: left;
  }
  .seo-content h2 {
    font-size: 20px;
  }
}


/* Small height screens */
@media (max-height: 700px) {
  #loginModal {
    align-items: flex-start !important;
    padding-top: 40px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #loginModal .login-card {
    padding: 18px 14px;
    border-radius: 10px;
  }

  #loginModal h2 {
    font-size: 18px;
  }
}

/* Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  body { background: white; color: #000; }
  .sc-left-col, .setting-bar, .calc-action { display: none; }
  .sc-layout { grid-template-columns: 1fr; }
  .sc-card { border: 1px solid #ccc; }
  .results-panel { position: static; }
}

@media (max-width: 640px) {
  .modal {
    top: auto;
    left: 0;
    bottom: 0;

    transform: translateX(-50%);

    width: 100%;
    max-height: 92vh;

    border-radius: 16px 16px 0 0;
  }
}
