/* ============================================================
   BAILBRIDGE v5 — COMPLETE STYLESHEET
   Covers all HTML classes across all pages
============================================================ */

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

/* ============================================================
   RESET & BASE
============================================================ */

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

body.dark-mode {
  background: #000;
  color: #f7f7f7;
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: #d4af37;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================================
   LAYOUT
============================================================ */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */

h1, h2, h3, h4 {
  color: #d4af37;
  font-family: 'Lora', serif;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Specific white overrides — content headings on dark cards only */
.case-card h3,
.case-title,
.hero h1,
.confirm-step strong,
.why-feature strong {
  color: #f7f7f7;
}

p {
  color: #c0c0c0;
  margin-bottom: 12px;
}

.section-title {
  color: #d4af37;
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ============================================================
   HEADER
============================================================ */

.main-header {
  background: #050505;
  padding: 18px 0;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Lora', serif;
}

.header-logo:hover {
  opacity: 0.9;
}

.header-logo-img {
  height: 40px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  margin-left: 16px;
  color: #f7f7f7;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #d4af37;
  opacity: 1;
}

.nav-cta {
  background: #d4af37;
  color: #000 !important;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #b8962f !important;
  opacity: 1;
}

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn-gold {
  background: #d4af37;
  color: #000;
}

.btn-gold:hover {
  background: #b8962f;
}

.btn-outline {
  border: 2px solid #d4af37;
  color: #d4af37;
  background: transparent;
}

.btn-outline:hover {
  background: #d4af37;
  color: #000;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.submit-btn {
  background: #d4af37;
  color: #000;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #b8962f;
}

/* Admin table small buttons */
.btn-small {
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #222;
  color: #f7f7f7;
  transition: background 0.2s;
}

.btn-small:hover {
  background: #333;
}

.btn-danger {
  background: #7a1a1a !important;
  color: #ffaaaa !important;
}

.btn-danger:hover {
  background: #991f1f !important;
}

.btn-success {
  background: #1a4a2a !important;
  color: #88ddaa !important;
}

.btn-success:hover {
  background: #1f6035 !important;
}

.btn-warning {
  background: #4a3a0a !important;
  color: #f0c060 !important;
}

.btn-warning:hover {
  background: #5c4a10 !important;
}

/* ============================================================
   FORMS (shared across pages)
============================================================ */

label {
  display: block;
  margin-bottom: 6px;
  color: #d4af37;
  font-weight: 500;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0a0a0f;
  color: #f7f7f7;
  margin-bottom: 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #d4af37;
}

textarea {
  resize: vertical;
}

.form-group {
  margin-bottom: 4px;
}

.bb-form label {
  color: #d4af37;
}

/* ============================================================
   FOOTER
============================================================ */

.main-footer {
  background: #050505;
  padding: 50px 0 0;
  border-top: 1px solid #1a1a1a;
  margin-top: 70px;
}

.footer-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo-img {
  height: 38px;
  margin-bottom: 10px;
  display: block;
}

.footer-title {
  font-size: 1.2rem;
  color: #d4af37;
  font-weight: 700;
  font-family: 'Lora', serif;
}

.footer-email {
  color: #888;
  margin-top: 6px;
  font-size: 0.9rem;
}

.footer-column h4 {
  color: #d4af37;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #d4af37;
  opacity: 1;
}

.footer-copy {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #111;
  color: #555;
  font-size: 0.82rem;
}

/* ============================================================
   HERO — index.html
============================================================ */

.hero {
  padding: 90px 0 80px;
  background: #000;
}

.hero-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-tagline {
  color: #d4af37;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  color: #f7f7f7;
  font-family: 'Lora', serif;
  max-width: 520px;
}

.hero-subtext {
  max-width: 520px;
  color: #aaa;
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-note {
  color: #666;
  font-size: 0.88rem;
  margin-top: 10px;
}

/* ============================================================
   HERO CARD (Featured Case on homepage)
============================================================ */

.hero-card {
  background: #0e0e0e;
  padding: 26px;
  border-radius: 14px;
  width: 360px;
  border: 1px solid #1e1e1e;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.card-label {
  color: #d4af37;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card-amount {
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem;
}

.card-deadline {
  color: #888;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

/* Progress Bar */
.progress-bar {
  background: #1e1e1e;
  height: 8px;
  border-radius: 6px;
  margin: 14px 0;
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, #b8962f, #d4af37);
  height: 100%;
  border-radius: 6px;
}

/* Card List */
.card-list {
  margin: 12px 0;
  padding-left: 18px;
}

.card-list li {
  margin-bottom: 6px;
  color: #999;
  font-size: 0.9rem;
}

/* ============================================================
   SECTION TITLE (used on multiple pages)
============================================================ */

.section-title {
  color: #d4af37;
  font-family: 'Lora', serif;
  font-size: 1.9rem;
  margin-bottom: 10px;
}

/* ============================================================
   BROWSE CASES PAGE — cases.html
============================================================ */

/* Filter bar */
.case-filters {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.case-filters input[type="text"] {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.case-filters select {
  width: 200px;
  margin-bottom: 0;
}

/* Case Grid */
.case-grid {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Case Card */
.case-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 24px;
  display: block;
  color: #f7f7f7;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.case-card:hover {
  border-color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.12);
  opacity: 1;
}

.case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* ============================================================
   CASE DETAIL PAGE — case.html
============================================================ */

.case-detail-layout {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.case-detail-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-detail-right {
  position: sticky;
  top: 90px;
}

.case-detail-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 28px;
}

.case-label {
  color: #d4af37;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.case-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
  font-family: 'Lora', serif;
}

.case-amount {
  color: #d4af37;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.case-stats {
  padding-left: 18px;
  margin-top: 10px;
}

.case-stats li {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.case-section {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 24px;
}

.case-section h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #d4af37;
}

.case-section p {
  color: #aaa;
  line-height: 1.7;
}

.case-section ul {
  padding-left: 18px;
}

.case-section ul li {
  color: #999;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* Donation card on case detail */
.donation-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.donation-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #d4af37;
}

.donate-btn {
  display: block;
  width: 100%;
  background: #d4af37;
  color: #000;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
  text-align: center;
}

.donate-btn:hover {
  background: #b8962f;
}

.copy-link-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 2px solid #333;
  color: #aaa;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}

.copy-link-btn:hover {
  border-color: #d4af37;
  color: #d4af37;
}

/* ============================================================
   START A CAMPAIGN — start.html
============================================================ */

.start-wrapper {
  width: 90%;
  max-width: 700px;
  margin: 0 auto 60px;
}

.start-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.start-card h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.start-card label {
  color: #d4af37;
}

/* ============================================================
   CONNECT PAGE — connect.html
============================================================ */

.connect-grid {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.connect-left h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.contact-info {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #d4af37;
}

.contact-info p {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 4px;
}

.contact-form-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.contact-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #d4af37;
}

.connect-right {
  /* right column wrapper */
}

/* ============================================================
   BONDSMEN PAGE — bondsmen.html
============================================================ */

.case-layout {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

.case-info {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   ADMIN LOGIN — admin/index.html
============================================================ */

.admin-login-wrapper {
  width: 90%;
  max-width: 460px;
  margin: 0 auto 60px;
}

.admin-login-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.admin-login-card h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.admin-note {
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ============================================================
   ADMIN DASHBOARD — admin/dashboard.html
============================================================ */

.admin-dashboard-grid {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.admin-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  padding: 26px;
  border-radius: 12px;
  display: block;
  color: #f7f7f7;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.admin-card:hover {
  border-color: #d4af37;
  box-shadow: 0 6px 20px rgba(212,175,55,0.1);
  opacity: 1;
}

.admin-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.admin-card p {
  margin-bottom: 0;
  color: #888;
  font-size: 0.9rem;
}

.admin-logout {
  border-color: #3a1a1a;
}

.admin-logout:hover {
  border-color: #cc3333;
  box-shadow: 0 6px 20px rgba(200,50,50,0.1);
}

.admin-logout h3 {
  color: #cc6666;
}

/* ============================================================
   ADMIN CASE TABLE — admin/cases.html
============================================================ */

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #0e0e0e;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e1e1e;
}

.admin-table thead {
  background: #0a0a0a;
}

.admin-table th {
  text-align: left;
  padding: 14px 16px;
  color: #d4af37;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #1e1e1e;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #161616;
  color: #bbb;
  font-size: 0.92rem;
}

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

.admin-table tr:hover td {
  background: #111;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-badge.active {
  background: #0d2e1a;
  color: #5de89a;
  border: 1px solid #1a4a2a;
}

.status-badge.pending {
  background: #2a2200;
  color: #f0c040;
  border: 1px solid #4a3a00;
}

.status-badge.funded {
  background: #0d1f3c;
  color: #60aaff;
  border: 1px solid #1a3a6a;
}

.status-badge.closed {
  background: #1e1e1e;
  color: #777;
  border: 1px solid #333;
}

/* Table actions cell */
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ============================================================
   ADMIN SETTINGS — admin/settings.html
============================================================ */

.settings-wrapper {
  width: 90%;
  max-width: 700px;
  margin: 0 auto 60px;
}

.settings-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.settings-card h2 {
  margin-bottom: 22px;
  font-size: 1.4rem;
}

/* ============================================================
   TOAST NOTIFICATIONS (JS-powered)
============================================================ */

#bb-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bb-toast {
  background: #111;
  border: 1px solid #2a2a2a;
  color: #f7f7f7;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  pointer-events: all;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.bb-toast.success { border-left: 4px solid #5de89a; }
.bb-toast.error   { border-left: 4px solid #ff6666; }
.bb-toast.info    { border-left: 4px solid #d4af37; }

/* ============================================================
   STRIPE MODAL
============================================================ */

#bb-donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#bb-donate-modal.open {
  display: flex;
}

.bb-modal-inner {
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 36px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.bb-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.bb-modal-close:hover {
  color: #f7f7f7;
}

.bb-modal-inner h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.bb-modal-inner p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.amount-btn {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #f7f7f7;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: #d4af37;
  background: #1e1a0a;
  color: #d4af37;
}

.custom-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.custom-amount span {
  color: #d4af37;
  font-weight: 700;
  font-size: 1.1rem;
}

.custom-amount input {
  flex: 1;
  margin-bottom: 0;
}

#stripe-card-element {
  background: #0a0a0f;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

#stripe-card-element.StripeElement--focus {
  border-color: #d4af37;
}

#pay-btn {
  width: 100%;
  background: #d4af37;
  color: #000;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

#pay-btn:hover {
  background: #b8962f;
}

#pay-btn:disabled {
  background: #555;
  color: #333;
  cursor: not-allowed;
}

#stripe-error {
  color: #ff6666;
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 12px;
  min-height: 18px;
}

.stripe-secure {
  text-align: center;
  color: #555;
  font-size: 0.78rem;
  margin-top: 14px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-card {
    width: 100%;
    max-width: 480px;
  }

  .hero-actions {
    justify-content: center;
  }

  .header-inner {
    flex-direction: column;
    gap: 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-detail-right {
    position: static;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .container { width: 94%; }

  .hero { padding: 60px 0; }

  .hero h1 { font-size: 2rem; }

  .case-grid { grid-template-columns: 1fr; }

  .admin-dashboard-grid { grid-template-columns: 1fr; }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .actions { flex-direction: column; }

  .start-card,
  .contact-form-card,
  .settings-card,
  .admin-login-card {
    padding: 24px;
  }

  .case-filters {
    flex-direction: column;
  }

  .case-filters select {
    width: 100%;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  #bb-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .bb-toast {
    max-width: 100%;
  }
}

/* ============================================================
   LEGAL PAGES (privacy, terms, disclaimer)
============================================================ */

.legal-wrapper {
  width: 90%;
  max-width: 820px;
  margin: 0 auto 60px;
}

.legal-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.legal-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1a1a1a;
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #d4af37;
}

.legal-section p {
  color: #aaa;
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-section a {
  color: #d4af37;
}

/* ============================================================
   CONFIRMATION PAGE
============================================================ */

.confirm-wrapper {
  width: 90%;
  max-width: 640px;
  margin: 0 auto 60px;
}

.confirm-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.confirm-icon {
  width: 64px;
  height: 64px;
  background: #0d2e1a;
  border: 2px solid #1a4a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #5de89a;
  margin: 0 auto 24px;
}

.confirm-card h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.confirm-card > p {
  color: #888;
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.confirm-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
}

.confirm-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #1a1600;
  border: 1px solid #3a3000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d4af37;
}

.confirm-step strong {
  display: block;
  color: #f7f7f7;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.confirm-step p {
  color: #888;
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 600px) {
  .legal-card { padding: 24px; }
  .confirm-card { padding: 32px 20px; }
}

/* ============================================================
   HOMEPAGE SECTIONS
============================================================ */

/* HOW IT WORKS */
.how-section {
  padding: 80px 0;
  background: #050505;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.how-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.how-num {
  width: 44px;
  height: 44px;
  background: #1a1600;
  border: 1px solid #3a3000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
  margin: 0 auto 16px;
}

.how-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #f7f7f7;
}

.how-card p {
  color: #888;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* STATS STRIP */
.stats-strip {
  padding: 50px 0;
  background: #000;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: #d4af37;
  font-family: 'Lora', serif;
  margin-bottom: 6px;
}

.stat-label {
  color: #666;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* WHY BAILBRIDGE */
.why-section {
  padding: 80px 0;
  background: #050505;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-left h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.why-left p {
  color: #888;
  line-height: 1.75;
  margin-bottom: 14px;
}

.why-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #0d2e1a;
  border: 1px solid #1a4a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5de89a;
  font-size: 0.85rem;
  font-weight: 700;
}

.why-feature strong {
  display: block;
  color: #f7f7f7;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.why-feature p {
  color: #888;
  font-size: 0.88rem;
  margin: 0;
}

/* CASES PREVIEW */
.cases-preview-section {
  padding: 80px 0 0;
  background: #000;
}

/* CTA BANNER */
.cta-banner {
  background: #0a0a00;
  border-top: 1px solid #2a2200;
  border-bottom: 1px solid #2a2200;
  padding: 50px 0;
  margin-top: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.cta-inner p {
  color: #888;
  margin: 0;
}

/* RESPONSIVE — homepage sections */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-section, .why-section, .cases-preview-section { padding: 50px 0; }
}

/* ============================================================
   ADMIN EXTRAS
============================================================ */

.admin-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-filter-bar input {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.admin-filter-bar select {
  width: 180px;
  margin-bottom: 0;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.admin-stat-card {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.admin-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #d4af37;
  font-family: 'Lora', serif;
  margin-bottom: 4px;
}

.admin-stat-label {
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ============================================================
   EMPTY STATE (homepage cases, browse cases)
============================================================ */

.cases-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #0a0a0a;
  border: 1px dashed #222;
  border-radius: 14px;
}

.empty-icon {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 16px;
}

.cases-empty-state h3 {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cases-empty-state p {
  color: #444;
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-filter-bar { flex-direction: column; }
  .admin-filter-bar select { width: 100%; }
}
/* v20260516180617 */
/* v20260516181627 */
