/* ═══════════════════════════════════════════════════════════
   CrossPoint Bible Church Library — Stylesheet
   Colors: Deep Navy (#1a2744), Gold (#D4A017), White, Cream
   Fonts: Cormorant Garamond (headings), Inter (body)
═══════════════════════════════════════════════════════════ */

:root {
  --navy:       #1a2744;
  --navy-dark:  #0f1a30;
  --navy-mid:   #243055;
  --gold:       #D4A017;
  --gold-light: #E8C240;
  --gold-pale:  #F5E9C0;
  --cream:      #FDFAF4;
  --white:      #FFFFFF;
  --text:       #1a2744;
  --text-muted: #6b7280;
  --border:     #e5e0d5;
  --success:    #2d7a4f;
  --danger:     #c0392b;
  --warn:       #b7791f;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:  10px;
  --shadow:  0 4px 24px rgba(26,39,68,0.10);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.16);
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ═══ UTILITY ══════════════════════════════════════════════ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}
.section-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px auto 20px;
  border-radius: 2px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ═══ BUTTONS ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,160,23,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline.light {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline.light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}
.btn-full { width: 100%; justify-content: center; }
.btn.disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn.danger { background: var(--danger); color: white; border-color: var(--danger); }

/* ═══ NAVBAR ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 2px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-church {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ═══ HERO ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212,160,23,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 60%, rgba(26,39,68,0.3) 0%, transparent 60%),
    linear-gradient(160deg, #0f1a30 0%, #1a2744 45%, #243055 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo-wrap {
  margin-bottom: 28px;
}
.hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 6px;
  margin: 0 auto;
  box-shadow: 0 0 0 3px rgba(212,160,23,0.4), 0 8px 32px rgba(0,0,0,0.3);
  animation: fadeUp 0.9s 0.1s ease both;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  animation: fadeUp 0.9s 0.15s ease both;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.5;
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.25s ease both;
}
.hero-welcome {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp 0.9s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.9s 0.35s ease both;
}
.hero-verse {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  animation: fadeUp 0.9s 0.4s ease both;
}
.verse-ref {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.hero-scroll-hint:hover { color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ FEATURED ═════════════════════════════════════════════ */
.featured-section {
  background: var(--navy);
  padding: 64px 0;
}
.featured-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.featured-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
}
.featured-placeholder {
  height: 240px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-dark));
  border: 1px solid rgba(212,160,23,0.3);
  padding: 16px;
  text-align: center;
  gap: 12px;
}
.featured-placeholder .book-icon {
  font-size: 2.5rem;
  color: var(--gold);
}
.featured-placeholder .book-cover-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
}
.featured-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.featured-author {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.featured-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.featured-stock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* ═══ STOCK BADGES ═════════════════════════════════════════ */
.stock-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.stock-badge.available { background: rgba(45,122,79,0.15); color: #2d7a4f; border: 1px solid rgba(45,122,79,0.3); }
.stock-badge.low       { background: rgba(183,121,31,0.15); color: #b7791f; border: 1px solid rgba(183,121,31,0.3); }
.stock-badge.out       { background: rgba(192,57,43,0.12); color: var(--danger); border: 1px solid rgba(192,57,43,0.25); }
.stock-badge.sm { padding: 3px 9px; font-size: 0.72rem; }

/* ═══ ABOUT ════════════════════════════════════════════════ */
.about-section {
  padding: 96px 0;
  background: var(--cream);
}
.about-body {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}
.about-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(212,160,23,0.18);
}
.cat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.category-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.category-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══ CATALOGUE ════════════════════════════════════════════ */
.catalogue-section {
  padding: 96px 0;
  background: #f0ece4;
}

/* Filter bar */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--gold); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-select {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--cream);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--gold); }

.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,160,23,0.35);
}
.book-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.book-cover-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 8px;
  text-align: center;
}
.book-initials {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.book-cover-line {
  width: 32px;
  height: 1px;
  background: rgba(212,160,23,0.4);
}
.book-cover-name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}
.book-lang-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(26,39,68,0.85);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.book-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.book-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.book-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-style: italic;
}
.book-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Recently added */
.recently-section {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.recently-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}
.recently-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.recent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all var(--transition);
}
.recent-card:hover { border-color: var(--gold); transform: translateX(3px); }
.recent-cover {
  width: 44px;
  height: 56px;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.book-initials-sm {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.recent-info { flex: 1; }
.recent-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 3px;
}
.recent-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

/* ═══ BORROW SECTION ═══════════════════════════════════════ */
.borrow-section {
  padding: 96px 0;
  background: var(--cream);
}
.borrow-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Form */
.borrow-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.borrow-form fieldset {
  border: none;
  margin-bottom: 32px;
}
.borrow-form legend {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.required { color: var(--gold); }
.optional { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* Checkbox */
.form-agree { margin-bottom: 24px; }
.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}
.checkbox-label input:checked ~ .checkmark {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-label input:checked ~ .checkmark::after {
  content: '✓';
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Success */
.borrow-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(45,122,79,0.12);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--success);
  margin: 0 auto;
}
.borrow-success h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--navy);
}
.success-ref {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Sidebar */
.borrow-sidebar { display: flex; flex-direction: column; gap: 20px; }
.policy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.policy-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.policy-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.policy-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.2em;
}
.policy-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ═══ ADMIN ════════════════════════════════════════════════ */
.admin-section { padding: 80px 0; background: #f8f6f0; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card.warn { border-color: rgba(183,121,31,0.4); background: rgba(183,121,31,0.05); }
.stat-card.danger { border-color: rgba(192,57,43,0.4); background: rgba(192,57,43,0.05); }
.stat-card.info { border-color: rgba(26,39,68,0.3); background: rgba(26,39,68,0.04); }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.admin-section-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.admin-section-block h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th { font-weight: 600; color: var(--navy); background: var(--cream); font-size: 0.8rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table code { font-size: 0.75rem; background: var(--cream); padding: 2px 6px; border-radius: 4px; }
.admin-empty { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }
.admin-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.admin-note code { background: var(--cream); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-badge.pending  { background: rgba(183,121,31,0.15); color: var(--warn); }
.status-badge.approved { background: rgba(45,122,79,0.15);  color: var(--success); }
.status-badge.returned { background: rgba(26,39,68,0.12);   color: var(--navy); }
.low-stock-list { display: flex; flex-direction: column; gap: 8px; }
.low-stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--cream);
  border-radius: 6px;
  font-size: 0.88rem;
}

/* ═══ CONTACT ══════════════════════════════════════════════ */
.contact-section {
  padding: 96px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-logo-wrap { margin-bottom: 16px; }
.contact-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}
.contact-subtitle {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}
.contact-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.contact-item a { color: var(--navy); transition: color var(--transition); }
.contact-item a:hover { color: var(--gold); }
.whatsapp-btn { background: #25D366 !important; border-color: #25D366 !important; color: white !important; }
.whatsapp-btn:hover { background: #20ba5a !important; border-color: #20ba5a !important; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder {
  text-align: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.map-pin { font-size: 3rem; }
.map-placeholder p { color: var(--text-muted); font-size: 0.9rem; }

/* ═══ FOOTER ═══════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  padding: 56px 0 32px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
}
.footer-church {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-align: left;
}
.footer-church-sub {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.footer-verse {
  font-family: var(--font-head);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 520px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.footer-verse span { display: block; font-style: normal; color: var(--gold); font-size: 0.75rem; font-weight: 600; margin-top: 6px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ═══ MODAL ════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,16,30,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--cream); color: var(--navy); }
.admin-hint { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 12px; }
.admin-hint code { background: var(--cream); padding: 2px 6px; border-radius: 4px; }

/* ═══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured-inner { grid-template-columns: 1fr; }
  .featured-placeholder { height: 160px; }
  .borrow-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(26,39,68,0.98);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.open { max-height: 400px; padding: 12px 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; font-size: 0.95rem; }
  .nav-cta { margin: 8px 16px; border-radius: var(--radius); }
  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .borrow-form-wrap { padding: 24px; }
  .filter-bar { flex-direction: column; }
  .filters { flex-direction: column; width: 100%; }
  .filter-select { width: 100%; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .featured-card { padding: 24px; }
  .about-categories { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
