:root {
  --bg: #faf6ef;
  --bg-card: #ffffff;
  --green-dark: #2f5e44;
  --green: #4a7a5b;
  --sage: #7a9a6a;
  --sage-light: #d4e4c8;
  --brown: #8b6f47;
  --gold: #c9a961;
  --error: #c95d4a;
  --text: #1f2e25;
  --text-muted: #6a7a6f;
  --border: #e3dccd;
  --shadow: 0 1px 3px rgba(31,46,37,0.06), 0 4px 12px rgba(31,46,37,0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }

header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; max-width: 1100px; margin: 0 auto; }
.logo { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: var(--green-dark); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-dark); }
.nav-user { color: var(--text-muted); font-size: 0.9rem; }
.btn-primary { background: var(--green-dark); color: white; padding: 9px 18px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.95rem; border: none; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: #234534; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }

.hero { padding: 60px 24px 40px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 16px; color: var(--green-dark); }
.hero h1 em { font-style: italic; color: var(--brown); }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

.filters { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 0 auto 32px; max-width: 1052px; box-shadow: var(--shadow); }
.filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.filter-grid input, .filter-grid select { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--text); width: 100%; }
.filter-grid input:focus, .filter-grid select:focus { outline: none; border-color: var(--sage); background: white; }

.listings { padding-bottom: 80px; }
.listings-meta { max-width: 1052px; margin: 0 auto 16px; padding: 0 24px; color: var(--text-muted); font-size: 0.9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; max-width: 1052px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(31,46,37,0.08); }
.card-image { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--sage-light), #c8dcb6); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--green); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); line-height: 1.3; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.tag-grade { background: var(--sage-light); color: var(--green-dark); }
.tag-subject { background: #f0e8d6; color: var(--brown); }
.tag-condition { background: #fff; border: 1px solid var(--border); color: var(--text-muted); }
.tag-condition.new { background: var(--sage-light); color: var(--green-dark); border-color: transparent; }
.card-school { font-size: 0.85rem; color: var(--text-muted); }

.empty, .loading { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(31,46,37,0.4); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.hidden { display: none; }
.modal { background: var(--bg-card); border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(31,46,37,0.25); position: relative; }
.modal.auth-modal { max-width: 420px; }
.modal-image { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sage-light), #c8dcb6); display: flex; align-items: center; justify-content: center; font-size: 5rem; border-radius: 16px 16px 0 0; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px 16px 0 0; }
.modal-body { padding: 28px; }
.modal h2 { font-size: 1.6rem; margin-bottom: 12px; color: var(--green-dark); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.modal-section { margin-bottom: 18px; }
.modal-section h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 600; }
.contact-card { background: var(--bg); border-left: 3px solid var(--green); padding: 14px 16px; border-radius: 8px; }
.contact-name { font-weight: 600; margin-bottom: 4px; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); text-decoration: none; font-weight: 500; }
.contact-link:hover { text-decoration: underline; }
.modal-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; color: var(--text); z-index: 1; }

.auth-body { padding: 36px 32px 32px; }
.auth-title { text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 22px; font-size: 0.95rem; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 7px; font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; color: var(--text-muted); }
.auth-tab.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }
.auth-label { display: block; margin-bottom: 14px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.auth-label input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--text); margin-top: 5px; }
.auth-label input:focus { outline: none; border-color: var(--sage); background: white; }
.auth-error { color: var(--error); font-size: 0.9rem; min-height: 1.4em; margin-bottom: 12px; }
.auth-submit { width: 100%; padding: 12px; font-size: 1rem; }

footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
footer a { color: var(--green-dark); }

@media (max-width: 600px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid input { grid-column: 1 / -1; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.9rem; }
  .nav-user { display: none; }
}
.create-modal { max-width: 520px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-label textarea, .auth-label select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--text); margin-top: 5px; }
.auth-label textarea { resize: vertical; min-height: 70px; }
.auth-label textarea:focus, .auth-label select:focus { outline: none; border-color: var(--sage); background: white; }
.owner-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.owner-actions button { flex: 1; }
.action-claim { color: var(--green-dark); border-color: var(--sage-light); }
.action-claim:hover { background: var(--sage-light); border-color: var(--sage); }
.action-delete { color: var(--error); border-color: #f3d4ce; }
.action-delete:hover { background: #fbe9e4; border-color: var(--error); }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.photo-upload-area { border: 2px dashed var(--border); border-radius: 10px; padding: 0; min-height: 140px; cursor: pointer; transition: border-color 0.15s; overflow: hidden; position: relative; margin-top: 5px; }
.photo-upload-area:hover { border-color: var(--sage); }
.photo-placeholder { display: flex; align-items: center; justify-content: center; min-height: 140px; color: var(--text-muted); font-size: 0.95rem; padding: 20px; }
.photo-preview { position: relative; }
.photo-preview img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.photo-placeholder.hidden, .photo-preview.hidden { display: none; }
.photo-remove { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; padding: 0; }
.photo-remove:hover { background: rgba(0,0,0,0.85); }
.hidden-section { display: none !important; }
.profile-section { padding: 40px 24px 80px; max-width: 900px; margin: 0 auto; }
.profile-header { margin-bottom: 28px; }
.profile-header h1 { font-size: 2.2rem; color: var(--green-dark); margin-bottom: 4px; }
.profile-header p { color: var(--text-muted); }
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 36px; box-shadow: var(--shadow); }
.profile-card h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--green-dark); }
.profile-form { display: grid; gap: 0; }
.profile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.profile-saved { color: var(--green-dark); font-size: 0.9rem; font-weight: 500; }
.section-title { max-width: 1052px; margin: 0 auto 16px; padding: 0 24px; font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--green-dark); }
.tag-status { font-weight: 600; }
.tag-status.available { background: var(--sage-light); color: var(--green-dark); }
.tag-status.claimed { background: #f0e8d6; color: var(--brown); }
@media (max-width: 600px) { .profile-row { grid-template-columns: 1fr; } }
.password-wrap { position: relative; margin-top: 5px; }
.password-wrap input { margin-top: 0 !important; padding-right: 64px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; font-weight: 500; padding: 4px 10px; font-family: inherit; }
.password-toggle:hover { color: var(--green-dark); }
/* Toast notifications */
#toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; align-items: center; }
.toast { background: var(--text); color: var(--bg); padding: 12px 22px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; box-shadow: 0 8px 24px rgba(31,46,37,0.2); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; pointer-events: auto; max-width: 90vw; }
.toast.toast-visible { opacity: 1; transform: translateY(0); }
.toast.toast-success { background: var(--green-dark); color: white; }
.toast.toast-error { background: var(--error); color: white; }

/* Confirm dialog */
.confirm-modal { max-width: 420px; }
.confirm-body { padding: 28px; }
.confirm-title { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.confirm-message { color: var(--text-muted); margin-bottom: 22px; font-size: 0.95rem; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #b04936; }
/* Beefier hero */
.hero-big { padding: 84px 24px 56px; text-align: center; position: relative; overflow: hidden; }
.hero-big h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 18px; }
.hero-eyebrow { display: inline-block; background: var(--sage-light); color: var(--green-dark); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px; letter-spacing: 0.02em; }
.hero-tagline { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 8px; }
.hero-decoration { position: absolute; font-size: 8rem; opacity: 0.12; pointer-events: none; user-select: none; }
.hero-decoration.left { left: 4%; top: 18%; transform: rotate(-22deg); }
.hero-decoration.right { right: 4%; bottom: 12%; transform: rotate(18deg); }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.btn-lg { padding: 12px 26px; font-size: 1rem; }

/* How it works */
.how { background: white; padding: 72px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-content { max-width: 1052px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 44px; }
.how-header h2 { font-size: 2rem; color: var(--green-dark); margin-bottom: 10px; }
.how-header p { color: var(--text-muted); font-size: 1.02rem; max-width: 540px; margin: 0 auto; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.how-step { text-align: center; padding: 12px; }
.how-step-icon { font-size: 2.6rem; margin-bottom: 16px; display: inline-block; }
.how-step h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--green-dark); margin-bottom: 10px; }
.how-step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Section heading wrap for browse */
.browse-section { padding-top: 60px; }
.section-heading { max-width: 1052px; margin: 0 auto 28px; padding: 0 24px; text-align: center; }
.section-heading h2 { font-size: 1.8rem; color: var(--green-dark); margin-bottom: 6px; }
.section-heading p { color: var(--text-muted); }

/* Mission / closing */
.mission { padding: 80px 24px 100px; background: linear-gradient(180deg, var(--bg) 0%, var(--sage-light) 100%); }
.mission-content { max-width: 680px; margin: 0 auto; text-align: center; }
.mission h2 { font-size: 2rem; color: var(--green-dark); margin-bottom: 18px; }
.mission p { color: var(--text); font-size: 1.02rem; line-height: 1.75; margin-bottom: 14px; }
.mission .signature { color: var(--brown); font-style: italic; margin-top: 22px; font-size: 0.95rem; }

@media (max-width: 600px) {
  .hero-decoration { font-size: 5rem; opacity: 0.1; }
  .how { padding: 56px 24px; }
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .browse-section { padding-top: 40px; }
  .mission { padding: 60px 24px 80px; }
}
.auth-forgot { font-size: 0.85rem; text-align: right; margin-top: -8px; margin-bottom: 14px; }
.auth-forgot a { color: var(--green-dark); text-decoration: none; cursor: pointer; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-back { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.auth-back a { color: var(--text-muted); cursor: pointer; }
.auth-back a:hover { color: var(--green-dark); }
/* Footer links */
.footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 12px; }
.footer-links a { color: var(--green-dark); text-decoration: none; font-weight: 500; cursor: pointer; }
.footer-links a:hover { text-decoration: underline; }

/* Logo clickable */
.logo { cursor: pointer; }

/* About page */
.about-section { padding: 60px 24px 80px; max-width: 980px; margin: 0 auto; }
.about-header { text-align: center; margin-bottom: 48px; }
.about-header h1 { font-size: 2.4rem; color: var(--green-dark); margin-bottom: 8px; }
.about-header p { color: var(--text-muted); font-size: 1.1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 60px; }
.about-person { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; text-align: center; box-shadow: var(--shadow); }
.about-photo { width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--sage-light); display: flex; align-items: center; justify-content: center; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-fallback { font-family: 'Fraunces', serif; font-size: 3rem; color: var(--green-dark); font-weight: 700; }
.about-person h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--green-dark); margin-bottom: 10px; }
.about-person p { color: var(--text); line-height: 1.65; }
.about-mission { background: var(--bg-card); border-radius: 14px; padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-mission h2 { font-size: 1.6rem; color: var(--green-dark); margin-bottom: 14px; }
.about-mission p { color: var(--text); line-height: 1.7; margin-bottom: 12px; }
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* FAQ page */
.faq-section { padding: 60px 24px 80px; max-width: 760px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-header h1 { font-size: 2.4rem; color: var(--green-dark); margin-bottom: 8px; }
.faq-header p { color: var(--text-muted); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--green-dark); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 22px 22px; color: var(--text); line-height: 1.65; }

/* Photo upload grid (multi) */
.photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 5px; }
.photo-slot { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; background: var(--bg); border: 1px solid var(--border); }
.photo-slot.empty { border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.15s; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.photo-slot.empty:hover { border-color: var(--sage); color: var(--green-dark); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .photo-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; font-size: 0.9rem; }

/* Photo carousel in detail modal */
.photo-carousel { aspect-ratio: 16/9; background: var(--sage-light); position: relative; border-radius: 16px 16px 0 0; overflow: hidden; }
.photo-carousel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.4rem; color: var(--text); display: flex; align-items: center; justify-content: center; line-height: 1; }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-nav:hover { background: white; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.15s; }
.carousel-dot.active { background: white; }

/* Card photo count badge */
.card-image { position: relative; }
.photo-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: white; padding: 3px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* Danger zone in profile */
.danger-zone { border-color: #f3d4ce !important; background: #fdf6f5 !important; }
.danger-zone h3 { color: var(--error) !important; }
.danger-zone p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }

/* Admin badge */
.admin-badge { background: var(--brown); color: white; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }
/* 5-column filter grid */
.filter-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important; }
@media (max-width: 800px) {
  .filter-grid { grid-template-columns: 1fr 1fr !important; }
  .filter-grid input { grid-column: 1 / -1; }
}

/* Loading skeletons */
@keyframes shimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton { background: linear-gradient(90deg, #ebe6dc 0%, #f5f1e8 50%, #ebe6dc 100%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 4px; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.skeleton-card .skeleton-image { aspect-ratio: 4/3; border-radius: 0; }
.skeleton-card .skeleton-body { padding: 16px; }
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.title { height: 18px; width: 80%; }
.skeleton-line.short { width: 50%; }
.skeleton-meta { display: flex; gap: 6px; margin-top: 14px; }
.skeleton-tag { height: 20px; width: 56px; border-radius: 999px; }

/* Share button color */
.action-share { color: var(--green-dark); border-color: var(--sage-light); }
.action-share:hover { background: var(--sage-light); border-color: var(--sage); }
/* Admin dashboard */
.admin-section { padding: 60px 24px 80px; max-width: 1100px; margin: 0 auto; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 2.4rem; color: var(--green-dark); margin-bottom: 6px; }
.admin-header p { color: var(--text-muted); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); }
.stat-num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; color: var(--green-dark); line-height: 1; margin-bottom: 6px; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.admin-card h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--green-dark); margin-bottom: 16px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 38px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.bar-label { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: var(--bg); border-radius: 999px; height: 8px; overflow: hidden; }
.bar-fill { background: var(--sage); height: 100%; border-radius: 999px; transition: width 0.4s; }
.bar-count { color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-status-chip { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.admin-status-chip.available { background: var(--sage-light); color: var(--green-dark); }
.admin-status-chip.claimed { background: #f0e8d6; color: var(--brown); }
.muted { color: var(--text-muted); font-size: 0.85rem; }

/* Admin badge becomes clickable link */
.admin-badge.admin-link { cursor: pointer; text-decoration: none; transition: background 0.15s; }
.admin-badge.admin-link:hover { background: #6e5530; }
/* Report button */
.report-btn-row { margin-top: 12px; text-align: center; }
.report-link { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px 8px; font-family: inherit; }
.report-link:hover { color: var(--error); }

/* Reports section in admin */
.reports-list { display: flex; flex-direction: column; gap: 12px; }
.report-row { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.report-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.report-listing-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-meta { color: var(--text-muted); font-size: 0.85rem; }
.report-reason-chip { display: inline-block; background: #fbe9e4; color: var(--error); font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; font-weight: 500; margin-right: 6px; }
.report-notes { color: var(--text); font-size: 0.9rem; margin-top: 4px; font-style: italic; }
.report-actions { display: flex; gap: 8px; flex-shrink: 0; }
.report-actions button { padding: 6px 12px; font-size: 0.85rem; }
.no-reports { padding: 20px; text-align: center; color: var(--text-muted); }
