/* ============================================
   BETWEEN THE LINES HTX — Style Sheet
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rainbow: linear-gradient(135deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
  --rainbow-soft: linear-gradient(135deg, #ff6b9d, #ff8c42, #ffd93d, #6bcb77, #4d96ff, #c77dff);
  --rainbow-text: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
  --c-bg: #fafaf8;
  --c-bg-alt: #f3f0ea;
  --c-white: #ffffff;
  --c-navy: #0f0e17;
  --c-navy-2: #1a1828;
  --c-text: #1a1828;
  --c-text-2: #6b6680;
  --c-border: #e8e4de;
  --c-card: #ffffff;
  --c-red: #e53e3e;
  --c-purple: #7c3aed;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--c-bg-alt);
}

/* ---- Navigation ---- */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1.2;
}

.logo-icon {
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--c-text-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Footer logo */
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: var(--c-text);
  background: var(--c-bg-alt);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all .2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu a, .mobile-menu button {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--c-text);
}

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

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--rainbow-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-navy);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.btn-rainbow {
  background: var(--rainbow-soft);
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow: 0 2px 12px rgba(199, 125, 255, .35);
}

.btn-rainbow:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(199, 125, 255, .45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--c-border);
  color: var(--c-text);
}

.btn-outline:hover {
  border-color: #bbb;
  background: var(--c-bg-alt);
}

.btn-danger {
  background: #fee2e2;
  color: var(--c-red);
  border: 2px solid #fecaca;
}

.btn-danger:hover { background: #fecaca; }

/* ---- Empty States ---- */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--c-border);
  color: var(--c-text-2);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================================
   NEXT MEETING CARD
   ============================================ */

.section-hero {
  padding-top: 72px;
  padding-bottom: 80px;
}

.meeting-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.meeting-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rainbow);
}

.meeting-book {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-cover-wrap {
  width: 220px;
  height: 320px;
  flex-shrink: 0;
  position: relative;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 8px 8px 32px rgba(0,0,0,.25), -2px -2px 8px rgba(255,255,255,.1);
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 8px 8px 32px rgba(0,0,0,.12);
}

.book-meta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 8px;
}

.meeting-book-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-navy);
  margin-bottom: 4px;
}

.meeting-book-author {
  font-size: 1.05rem;
  color: var(--c-text-2);
  margin-bottom: 16px;
  font-style: italic;
}

.meeting-book-desc {
  font-size: 0.95rem;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.meeting-info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.meeting-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-2);
  margin-bottom: 1px;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}

.meeting-notes {
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--c-text-2);
  margin-bottom: 24px;
  border-left: 3px solid #c77dff;
}

.meeting-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Partiful section ---- */
.section-partiful {
  padding: 0 0 80px;
}

.partiful-embed-wrap {
  display: flex;
  justify-content: center;
}

.partiful-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 48px 64px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  max-width: 480px;
  width: 100%;
}

.partiful-logo {
  font-size: 3rem;
  margin-bottom: 16px;
}

.partiful-desc {
  color: var(--c-text-2);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ============================================
   PAST EVENTS
   ============================================ */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-card-photos {
  height: 180px;
  overflow: hidden;
  background: var(--c-bg-alt);
  position: relative;
}

.event-card-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.event-card-no-photo {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e8ff, #dbeafe, #dcfce7);
  font-size: 3rem;
}

.event-card-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e8ff, #dbeafe, #dcfce7);
  overflow: hidden;
}

.event-card-cover img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 8px;
}

.event-card-body {
  padding: 20px;
}

.event-card-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-2);
  margin-bottom: 6px;
}

.event-card-book {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 2px;
  line-height: 1.3;
}

.event-card-author {
  font-size: 0.88rem;
  color: var(--c-text-2);
  margin-bottom: 6px;
  font-style: italic;
}

.event-card-host {
  font-size: 0.82rem;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.event-card-location {
  font-size: 0.85rem;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---- Event Detail Modal body ---- */
.detail-header {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.detail-cover {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.detail-cover-placeholder {
  width: 100px;
  height: 150px;
  background: var(--c-bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.detail-book-info { flex: 1; }
.detail-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.detail-author {
  color: var(--c-text-2);
  font-style: italic;
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.detail-desc {
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.detail-attendees {
  margin-bottom: 24px;
}

.detail-attendees-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-2);
  margin-bottom: 8px;
}

.attendees-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attendee-chip {
  background: var(--c-bg-alt);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.detail-photos-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-2);
  margin-bottom: 12px;
}

.detail-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.detail-photo {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .15s;
}

.detail-photo:hover { opacity: 0.85; }

/* ============================================
   ALL BOOKS GRID
   ============================================ */

.books-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-input {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.book-card-cover {
  height: 240px;
  background: linear-gradient(135deg, #f3e8ff, #dbeafe, #dcfce7);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--c-navy);
}

.book-card-author {
  font-size: 0.82rem;
  color: var(--c-text-2);
  font-style: italic;
  margin-bottom: 10px;
}

.book-card-date {
  font-size: 0.75rem;
  color: var(--c-text-2);
  margin-bottom: 10px;
  font-weight: 500;
}

.book-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.star {
  font-size: 1rem;
  color: #d1c4e9;
  transition: color .1s;
}

.star.filled { color: #f59e0b; }
.star.half { color: #f59e0b; }

.book-rating-count {
  font-size: 0.78rem;
  color: var(--c-text-2);
  margin-bottom: 12px;
}

.book-your-rating {
  font-size: 0.78rem;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 12px;
}

.book-card-actions {
  margin-top: auto;
}

/* ---- Star Input ---- */
.star-input {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.star-btn {
  font-size: 2rem;
  color: #d1c4e9;
  transition: color .1s, transform .1s;
  padding: 2px;
  background: none;
  border: none;
  cursor: pointer;
}

.star-btn:hover,
.star-btn.active { color: #f59e0b; transform: scale(1.15); }

.star-label {
  font-size: 0.85rem;
  color: var(--c-text-2);
  min-height: 20px;
  font-weight: 500;
}

.rate-book-info {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.rate-book-cover {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
}

.rate-book-cover-placeholder {
  width: 60px;
  height: 90px;
  background: var(--c-bg-alt);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.rate-book-text-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.rate-book-text-author {
  font-size: 0.85rem;
  color: var(--c-text-2);
  font-style: italic;
}

/* ============================================
   FORMS
   ============================================ */

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

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 0.95rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-input:focus {
  border-color: #c77dff;
  box-shadow: 0 0 0 3px rgba(199, 125, 255, .15);
}

textarea.form-input { resize: vertical; min-height: 80px; }

.file-input {
  padding: 8px 12px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-2);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 8px;
  margin-bottom: 18px;
  margin-top: 8px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--c-text-2);
  margin-top: 5px;
}

.cover-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cover-or {
  font-size: 0.8rem;
  color: var(--c-text-2);
  font-weight: 600;
  flex-shrink: 0;
}

.cover-input-wrap .form-input:first-child { flex: 1; min-width: 180px; }

.cover-preview-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.cover-preview {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.photo-thumb-wrap {
  position: relative;
}

.photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.photo-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-red);
  color: white;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 23, .6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

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

.modal {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform .2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-large { max-width: 720px; }
.modal-sm { max-width: 440px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background .15s, color .15s;
  cursor: pointer;
}

.modal-close:hover { background: #e5e7eb; color: var(--c-text); }

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-navy);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 1.5rem;
  padding: 8px;
  opacity: 0.8;
  cursor: pointer;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  padding: 16px;
  opacity: 0.7;
  cursor: pointer;
  user-select: none;
  transition: opacity .15s;
}

.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

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

.footer {
  background: var(--c-navy-2);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-sub { font-size: 0.85rem; opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  font-size: 0.8rem;
  opacity: 0.5;
  text-align: center;
}

/* ============================================
   ADMIN UI
   ============================================ */

.btn-admin {
  background: #1e1a30;
  color: #c77dff;
  border: 2px solid #7c3aed;
  font-weight: 700;
}

.btn-admin:hover {
  background: #2a2440;
  border-color: #c77dff;
}

.btn-organizer {
  background: #0f2a1e;
  color: #4ade80;
  border: 2px solid #16a34a;
  font-weight: 700;
}

.btn-organizer:hover {
  background: #163d2a;
  border-color: #4ade80;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #f3e8ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 20px;
  padding: 3px 10px;
  margin-left: 4px;
}

.admin-error {
  color: var(--c-red);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

.admin-modal-hint {
  color: var(--c-text-2);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.admin-options-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.admin-option-btn {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: var(--radius);
}

.event-locked-note {
  font-size: 0.8rem;
  color: var(--c-text-2);
  text-align: center;
  padding: 6px 0 2px;
  font-style: italic;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .meeting-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 20px;
  }

  .meeting-book {
    align-items: center;
  }

  .book-cover-wrap {
    width: 160px;
    height: 235px;
  }

  .form-row { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
  .events-grid { grid-template-columns: 1fr; }
  .cover-input-wrap { flex-direction: column; }
  .meeting-actions { flex-direction: column; }

  .modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.7rem; }
}
