:root {
  --upgrade-color: #ff9800;
  --upgrade-color-hover: #e68900;
  --upgrade-text: #fff;
  --account-surface: #1f1f1f; /* default card surface for account pages */
  --account-surface-alt: #262626; /* subtle contrast surface used for nested blocks */
  --account-border: rgba(255, 255, 255, 0.08); /* low-contrast border aligned with dark theme */
  --account-sidebar: #161616; /* sidebar background keeps darker tone */
  --account-muted: #b5b5b5; /* muted body copy on dark theme */
}

/* Universal box-sizing for predictable layouts */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light {
  background-color: #ffffff;
  color: #000000;
  --account-surface: #ffffff; /* lighten account cards on light mode */
  --account-surface-alt: #f5f7fb; /* pale accent surface for nested areas */
  --account-border: rgba(0, 0, 0, 0.08); /* soft border contrast for light theme */
  --account-sidebar: #f0f2f5; /* light sidebar background */
  --account-muted: #5f6368; /* muted copy in light mode */
}

body.light .main-header {
  background: #eaeaea;
}

body.light .container,
body.light main.container {
  background-color: #ffffff;
  color: #000000;
}

a {
  color: #ffffff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* favicon displayed alongside uNAME links */
.favicon {

  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;

}

/* open-all button spacing below username list */
.open-all-btn {
  margin-top: 8px;
}

/* flex row for paired form fields */
.form-row {
  display: flex;
  flex-wrap: wrap; /* allow wrap on narrow screens */
  gap: 1rem;      /* spacing between columns */
}

/* columns inside .form-row */
.form-col {
  flex: 1 1 200px; /* grow but keep sensible min width */
}

/* layout for advanced pack checkboxes */
.adv-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.adv-packs .form-col {
  flex: 1 1 150px;
}

/* ParkMobile form rows need consistent spacing even when combined with mt-2 */
.pm-form .form-row {
  justify-content: flex-start; /* override generic space-between */
  margin-bottom: 0.5rem;      /* balanced vertical spacing */

}

/* ParkMobile list cards */
.pm-card { margin: 8px 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: var(--card-bg); }
.pm-group .pm-card:nth-of-type(even), .pm-card.alt { background: var(--card-bg-alt); } /* use nth-of-type so preceding summary doesn't affect alternation */

/* Search engine result cards mimic ParkMobile styling */
.se-card { margin: 8px 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: var(--card-bg); }

/* Badge showing engine/query values */
.query-badge { font-size: 0.75rem; background: #eef4ff; color: #1e3a8a; border-radius: 6px; padding: 2px 6px; margin-left: 4px; }

/* Thumbnails for image search results */
img.thumb { max-width: 100px; max-height: 100px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin-top: 4px; }

/* Header navigation */
.main-header {
  background: #1f1f1f;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.brand {
  color: #fff;
  font-size: 1.5rem;
}
.brand img.logo {
  max-height: 40px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* flex layout keeps report export controls evenly spaced without disturbing form state */
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.container,
main.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.text-center {
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}

h3 {
  margin-top: 0;
  color: #fff;
}

/* Account dashboard layout and typography */
.account-wrapper {
  display: grid; /* grid keeps sidebar and content aligned */
  grid-template-columns: minmax(220px, 260px) 1fr; /* two-column layout with flexible sidebar */
  gap: 2.5rem;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 2rem; /* keep navigation visible while scrolling */
  background: var(--account-sidebar);
  border: 1px solid var(--account-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-sidebar h2 {
  font-size: 1.35rem;
  margin: 0;
}

.account-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem; /* evenly space quick links */
}

.account-sidebar li a {
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.25rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.account-sidebar li a:hover,
.account-sidebar li a:focus {
  background: rgba(59, 130, 246, 0.16); /* reuse primary blue accent */
  color: #3b82f6;
  text-decoration: none;
}

.account-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* responsive cards */
  gap: 1.75rem;
}

.account-card {
  background: var(--account-surface);
  border: 1px solid var(--account-border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25); /* subtle elevation consistent with dark theme */
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.account-card h3 {
  color: inherit;
  font-size: 1.35rem;
}

.account-card form {
  display: grid;
  gap: 1rem;
}

.account-card label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.account-card input[type="text"],
.account-card input[type="password"] {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--account-border);
  background: var(--account-surface-alt);
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* inline: align team roster and activity lists with existing account layout */
.team-dashboard-grid {
  display: grid;
  gap: 2rem;
}

.team-dashboard-grid > .account-card {
  min-width: 0;
}

@media (min-width: 900px) {
  .team-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.member-roster,
.member-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.member-roster li,
.member-activity li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.member-roster__details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.member-activity details {
  border: 1px solid var(--account-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: var(--account-surface);
  width: 100%;
}

.account-card input[type="text"]:focus,
.account-card input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); /* accessible focus ring */
}

.account-card button,
.account-card a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.account-card button:hover,
.account-card button:focus,
.account-card a.button:hover,
.account-card a.button:focus {
  background: #2563eb;
  transform: translateY(-1px);
}

.account-card .muted {
  color: var(--account-muted);
}

.account-card details {
  background: var(--account-surface-alt);
  border: 1px solid var(--account-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  overflow-x: auto; /* allow ledger table to scroll on smaller screens */
}

.account-card details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.account-card details > summary::-webkit-details-marker {
  display: none; /* hide default marker so spacing stays clean */
}

.account-card details[open] > summary {
  color: #3b82f6;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  min-width: 420px; /* maintain readability before wrapping */
}

.ledger-table th,
.ledger-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--account-border);
  font-size: 0.95rem;
}

.ledger-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--account-muted);
}

.ledger-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03); /* alternating rows for legibility */
}

body.light .ledger-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.05);
}

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

.alert {
  border-left: 4px solid currentColor;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.alert.success {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
}

.alert.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

body.light .alert {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

body.light .alert.success {
  color: #1b5e20;
  background: rgba(76, 175, 80, 0.18);
}

body.light .alert.error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.18);
}

.account-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.account-card ul a {
  color: #3b82f6;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .account-wrapper {
    grid-template-columns: 1fr; /* stack sidebar above content */
    gap: 2rem;
  }

  .account-sidebar {
    position: static;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .account-sidebar {
    gap: 1rem;
    padding: 1.25rem;
  }

  .account-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .account-sidebar li a {
    padding: 0.35rem 0.5rem;
  }

  .account-content {
    grid-template-columns: 1fr; /* single column on narrow screens */
  }

  .ledger-table {
    min-width: 100%;
  }
}

/* Dashboard search and result layout */
.dashboard-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}
.column {
  flex: 1 1 calc(50% - 1rem); /* Two columns, taking 50% width minus half the gap */
  min-width: 300px;
  max-width: 440px; /* Preserve original max-width from your base style */
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex; /* Internal flex for vertical stacking of content within column */
  flex-direction: column;
}
.column.full-width { flex: 1 1 100%; max-width: none; } /* allow single column to span full width */

/* Scoped styling for dashboard search */
.search-container .form {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Changed from 'center' to allow children to fill width */
  gap: 1rem;
  padding-top: 20px; /* Added padding as requested */
}
.search-container .form-group {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.phone-form .form-group {
  max-width: 220px;
}
.search-container input {
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 6px;
  background: #1e1e1e;
  border: 1px solid #444;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}
.phone-input {
  max-width: 220px;
}
.search-container button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.search-container button:hover {
  background-color: #2563eb;
}

/* Shared action button styling ensures anchors and buttons in toolbars stay consistent */
button.btn,
a.btn,
button.btn-primary,
a.btn-primary {
  display: inline-flex; /* keep icon/text centered while matching button layout */
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background: #3b82f6; /* reuse primary action blue from search controls */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}
button.btn:hover,
button.btn:focus,
a.btn:hover,
a.btn:focus,
button.btn-primary:hover,
button.btn-primary:focus,
a.btn-primary:hover,
a.btn-primary:focus {
  background-color: #2563eb; /* mirror hover tone applied on other primary buttons */
  text-decoration: none;
}

/* Primary variant explicitly listed so existing btn btn-primary markup keeps same finish */
button.btn-primary,
a.btn-primary {
  background: #3b82f6;
  color: #fff;
}
.lookup-remaining {
  color: #ddd;
  font-size: 0.9rem;
  text-align: center;
  margin-top: -0.5rem;
}

/* Breach Data Section */
.breach-section {
  margin-top: 2rem;
}
.breach-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}
.breach-item {
  background: #202020;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  word-wrap: break-word;
  overflow-wrap: anywhere; /* allow long tokens to wrap */
  word-break: break-word;  /* ensure wide values wrap */
  hyphens: auto;           /* improve readability when wrapping */
  font-size: 0.95rem;
  width: 100%;
  max-width: 700px;
}
.breach-item strong {
  display: inline-block;
  font-weight: bold;
  color: #ddd;
  margin-right: 0.5rem;
}
.breach-item li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.breach-item.hidden-breach {display:none;}
.breach-item.show {display:block;}

/* Previously removed breach/phone layout blocks */
.breach-block {
  background: #202020;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  margin: 0 0 1rem 0; /* spacing between breach entries */
}

.phone-block {
  background: #202020;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  margin: 0 0 1rem 0;
}

.phone-card {
  background: #202020;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #333;
  margin-bottom: 0.5rem;
}

#panel-breach > .breach-block:nth-of-type(odd) { background: #1e1e1e; }
#panel-breach > .breach-block:nth-of-type(even) { background: #252525; }

/* Breach cards and key/value lists */
.breach-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  max-width: none;
}

.breach-card:nth-child(even) { background: var(--card-bg-alt); }

.breach-title { margin: 0 0 6px; font-size: 1rem; line-height: 1.2; }
.rec-label { margin: 0 0 6px; font-size: .875rem; color: var(--muted); }

.kv-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 6px;
  margin: 0;
}

.kv-list dt { font-weight: 600; color: #e6e6e6; }
.kv-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Phone results toggle */
.phone-list {list-style:none; margin:0; padding:0;} /* wrapper for phone items */
.phone-item.hidden-phone {display:none;}
.phone-item.show {display:block;}

.search-links {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.search-links a {
  margin-right: 0.5rem;
  color: #3b82f6;
}

/* Export / Print */
.export-links {
  margin-top: 2rem;
  text-align: center;
}
.export-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.5rem;
}
.export-links a:hover {
  text-decoration: underline;
}

/* Flash messages */
.error {
  color: #ff7272;
  margin-bottom: 1rem;
  text-align: center;
}
.success {
  color: #4caf50;
  margin-bottom: 1rem;
  text-align: center;
}

/* Empty lookup result */
.empty-state {
  color: #ddd;
  font-style: italic;
  text-align: center;
  margin: 0.5rem 0;
}

/* Auth Forms (register / login) */
.auth-container {
  max-width: 700px;
  margin: 0 auto;
}
.auth-container .form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.auth-container .form-group {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-container .form-group.full-width {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 1rem;
}

/* Keep the terms consent controls inline without affecting other auth fields */
.auth-container .form-group.terms-consent {
  display: flex; /* inline alignment for checkbox + text */
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.auth-container .form-group.terms-consent label {
  margin: 0; /* prevent label margins from breaking the inline layout */
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  border: 1px solid #555;
  padding: 0.5rem;
  vertical-align: top;
}
.admin-table th {
  background-color: #333;
}

.auth-container input,
.auth-container select {
  padding: 0.75rem;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
}

.auth-container button {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 240px;
  display: block;
  margin: 0 auto;
}
.auth-container button:hover {
  background-color: #2563eb;
}

/* Shared simple form layout */
.form-container {
  max-width: 400px;
  margin: 0 auto;
}
.form-container input {
  padding: 0.75rem;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
}

/* Lookup details and breach table */
.result-box {
  margin-top: 2em;
  background: #e9f5ff;
  padding: 1.5em;
  border-radius: 5px;
}
.lookup-details {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}
.lookup-details li {
  margin: 0.3em 0;
  font-size: 0.95rem;
}
.breach-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.9rem;
}
.breach-table th,
.breach-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.breach-table th {
  background-color: #f2f2f2;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.breach-table tr:nth-child(even) {
  background-color: #fafafa;
}
.breach-table tr:hover {
  background-color: #f1f1f1;
}
.breach-entry {
  padding: 1em 0;
  border-bottom: 1px solid #ddd;
}
.breach-entry:last-child {
  border-bottom: none;
}

/* Free plan truncated text */
.truncated {
  cursor: pointer;
  border-bottom: 1px dashed #777;
}

/* CTA box for paid tiers */
.paid-cta {
  text-align: center;
  margin-top: 1.5rem;
}
.paid-cta .btn-secondary {
  background: #222;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
}
.paid-cta .btn-secondary:hover {
  background: #333;
}

/* Upgrade button used on free plan results */
.btn-upgrade {
  padding: 0.5rem;
  background: var(--upgrade-color);
  color: #fff;
  border-radius: 1rem; /* 2xl rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.3rem;
}
.btn-upgrade:hover {
  background: var(--upgrade-color-hover);
}

/* Out of credits upgrade banner */
.upgrade-banner {
  background: #ff9800;
  color: #000;
  padding: 1rem;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.upgrade-banner a {
  color: #000;
  font-weight: bold;
  text-decoration: underline;
}

/* Removal service panel on pricing page */
.removal-panel {
  background: #1b1b1b;
  border: 1px solid #333;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  text-align: center;
}
.removal-panel h2 {
  margin-top: 0;
}
.removal-panel a.btn-primary {
  margin-top: 1rem;
  display: inline-block;
  background: #3778F8;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
}
.removal-panel a.btn-primary:hover {
  background: #2563eb;
}

/* Pricing page */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.pricing-card {
  flex: 1 1 280px;
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.pricing-card h2 {
  margin-top: 0;
  color: #fff;
}

.pricing-card .price {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.pricing-card li {
  margin-bottom: 0.5rem;
}

.pricing-card .footnote {
  color: #ddd;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.pricing-card form button {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pricing-card form button:hover {
  background-color: #2563eb;
}

/* Mobile navigation */
.menu-icon {
  display: block;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  background: none;
  border: none;
  padding: 0;
}

.welcome-msg {
  color: #fff;
  font-size: 1rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #1f1f1f;
  padding: 1rem;
  border-radius: 8px;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  color: #ccc;
}

.mobile-menu.open {
  display: flex;
}

.search-term {
  margin-top: 1rem;
  color: #fff;
  font-style: italic;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: #333;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-bar {
  width: 0;
  height: 4px;
  background: linear-gradient(to right, #0af, #0cf);
  animation: progressAnim 3s infinite;
}

@keyframes progressAnim {
  0% { width: 0%; }
  50% { width: 80%; }
  100% { width: 100%; }
}

/* Mobile */
@media (max-width: 900px) {
  .dashboard-box {
    flex-direction: column;
  }
  .column {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .form-row {
    flex-direction: column;
  }
  .auth-container .form-group {
    flex: 1 1 100%;
  }
  .search-container input,
  .search-container button {
    width: 100%;
  }
  .menu-icon {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }

  .search-container {
    padding-top: 1rem;
    align-items: center;
  }

  .phone-form .form-group,
  .phone-input {
    max-width: 100%;
  }
}

.d-none {
  display: none !important; /* Utility class toggled via JS */
}

.spinner-border {
  border: 0.25rem solid #666; /* Base border color */
  border-top-color: #fff;     /* Visible top border for spinning effect */
  border-radius: 50%;
  animation: spin 0.75s linear infinite; /* Reuse existing spin keyframes */
}

.spinner-border-sm {
  width: 1rem;  /* Small variant width */
  height: 1rem; /* Small variant height */
}

.spinner {
  border: 4px solid #666;
  border-top-color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.collapsible-header {
  background: #2a2a2a;
  padding: 0.5rem 1rem;
  margin: 0;
  border-radius: 6px;
  cursor: pointer;
}
.collapsible-header.active {
  background: #333;
}
.collapsible-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.collapsible-panel.open {
  max-height: 2000px;
}

/* Progress bar styling */
progress {
  width: 100%;
  height: 20px;
  margin: 1rem 0;
  background-color: #333;
  border-radius: 8px;
}
progress::-webkit-progress-value {
  background-color: #3b82f6;
  border-radius: 8px;
}
progress::-moz-progress-bar {
  background-color: #3b82f6;
  border-radius: 8px;
}


/* === CORRECTIONS AND ADDITIONS === */

/* 1. Pro Search Form Styling */
.query-container {
  width: 100%; /* Take full width of parent form */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.query-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem; /* Space between input and button */
}

.query-row input[type="text"] {
  flex: 1; /* Allows the input to take up ALL available space */
  min-width: 0; /* Important for flex-shrinking */
}

.query-row .add-btn,
.query-row .remove-btn {
  flex-shrink: 0;
  width: 15px; /* Resized as requested */
  height: 15px; /* Resized as requested */
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* Adjusted font-size for smaller button */
  line-height: 1;
}

/* 2. Center Search Button and Align Case/Credit Info */
#search-form button[type="submit"] {
  /* Removed fixed width to normalize Free tier search button */
  margin: 1rem auto; /* Center the button and give vertical space */
}

#search-form .lookup-remaining {
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
}

#search-form .case-ref-input {
    width: 60%;
    display: block;
    margin: 0.5rem auto;
}

/* 3. Floating Notes Panel Styling */
#notes-column {
    position: fixed;
    top: 50%;
    right: -350px; /* Start off-screen */
    width: 350px;
    height: 50vh; /* 50% of viewport height */
    transform: translateY(-50%);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#notes-column.open {
    right: 0; /* Slide into view */
}

#notes-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: bottom left;
    background: #1f1f1f;
    color: #fff;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.2rem;
}


#notes-panel {
    background: #1f1f1f;
    border: 1px solid #333;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

#notes-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0 0 1rem 0;
  list-style: none;
}

#notes-list li {
  padding: 0.5rem;
  border-bottom: 1px solid #333;
}


/* 4. Global Spinner Overlay */
#global-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

/* Use the active class from JS to show the spinner */
#global-spinner-overlay.active {
    display: flex;
}

#global-spinner-overlay button {
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    background: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
}

/* --- Report export styles --- */
/* Container spans full page width to prevent overflow on Letter/A4 */
.report-container { margin: 0; padding: 0; width: 100%; }
/* Tables sized for print readability */
.report-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
/* Cells use ellipsis to avoid spilling beyond page bounds */
.report-table th,
.report-table td {
  border: 1px solid #444; /* dark border to blend with dark theme */
  padding: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent; /* ensure table cells don't force a light background */
  color: inherit; /* keep text color consistent with surrounding theme */
}
/* allow long strings (passwords, URLs, etc.) to wrap within entries and cards */
.entry,
.se-card,
.report-table td {
  word-break: break-word; /* ensure unbroken strings wrap */
  overflow-wrap: anywhere; /* permit wrapping at any point */
  white-space: normal; /* override nowrap to display full content */
}
/* Allow long values in report sections to wrap while preserving whitespace */
.report-section .entry {
  white-space: pre-wrap;      /* keep newlines but still wrap */
  word-break: break-word;    /* wrap long tokens */
  overflow-wrap: break-word; /* consistent wrapping behavior */
}
/* Section headings kept compact for pagination */
h2 { font-size: 14pt; margin-top: 1em; }
/* Explicit styling when no data is available */
.empty { font-style: italic; }
/* ParkMobile list view-all */
.parkmobile-list .is-extra { display: none; }
.parkmobile-list.expanded .is-extra { display: block; }

/* Force manual page breaks before new sections */
.page-break { page-break-before: always; }

@media print {
  /* Hide navigation and non-report UI elements */
  .main-header, #mobile-menu { display: none !important; }
  nav, .non-report { display: none; }
  /* Ensure consistent monochrome output */
  body, .report-container, .report-table { color: #000 !important; background: #fff !important; }
  .report-logo { max-height: 80px; }
  .report-disclaimer { color: #000 !important; }
  /* Print-specific body settings */
  body { font-family: Arial, sans-serif; font-size: 10pt; margin-top: 40mm; margin-bottom: 25mm; }
}

/* A4 PDF print layout */
@page {
  size: A4;
  margin: 15mm 15mm 20mm 15mm;
  @top-center { content: element(pdfHeader); }
  @bottom-center { content: element(pdfFooter); }
}
.report-table th, .report-table td { font-size: 9pt; padding: 4px; }
h2 { font-size: 14pt; margin-top: 1.5em; }
h3 { font-size: 12pt; margin-top: 1em; }
.section-label { font-weight: bold; margin-bottom: 0.5em; }
.pdf-header { position: running(pdfHeader); font-size: 9pt; }
.pdf-footer { position: running(pdfFooter); font-size: 8pt; color: #555; }
.empty { font-style: italic; color: #666; }

/* spacing between consecutive phone results */
#rnumber-lookup .phone-entry + .phone-entry {
  margin-top: 1rem;
}

