/* ============================================================
   ALTAR — Design System
   ============================================================ */

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

:root {
  --cream:          #FAF7F2;
  --cream-dark:     #F0EBE3;
  --cream-border:   #E8DDD2;
  --navy:           #1B2A4A;
  --navy-light:     #2C4070;
  --navy-tile:      #EEF1F7;
  --gold:           #C9A84C;
  --gold-light:     #F6EEC6;
  --terracotta:     #C4603A;
  --terracotta-bg:  #FBF0EC;
  --teal:           #2A7B7B;
  --teal-bg:        #E8F4F4;
  --purple:         #6B4F8C;
  --purple-bg:      #F0EBF7;
  --brown:          #7B5C3A;
  --brown-bg:       #F5EFEA;
  --text:           #1B2A4A;
  --text-muted:     #7B8FA8;
  --text-light:     #A8B8CC;
  --border:         #E5DDD4;
  --white:          #FFFFFF;
  --danger:         #C0392B;
  --danger-bg:      #FDECEA;
  --success:        #27AE60;
  --success-bg:     #E9F7EF;
  --shadow-sm:      0 1px 4px rgba(27,42,74,0.06);
  --shadow:         0 2px 10px rgba(27,42,74,0.09);
  --shadow-md:      0 6px 20px rgba(27,42,74,0.12);
  --shadow-lg:      0 12px 40px rgba(27,42,74,0.18);
  --radius:         14px;
  --radius-sm:      8px;
  --radius-xs:      5px;
  --transition:     0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Typography ── */
.wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.3; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.82rem; }
.text-center { text-align: center; }

/* ── App Header ── */
.app-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  line-height: 1;
}
.logo-name { font-size: 1.25rem; color: var(--gold); }
.logo-church {
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  text-transform: none;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a, .header-nav button {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: none;
  background: none;
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover, .header-nav button:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.header-nav a.active { color: var(--gold); }
.header-nav .btn-logout {
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
}
.header-nav .btn-logout:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ── Main Content ── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.page-title { margin-bottom: 24px; }
.page-title h1 { font-size: 1.7rem; }
.page-title p  { color: var(--text-muted); margin-top: 4px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.card + .card { margin-top: 16px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h2, .card-header h3 { margin: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--navy);      color: var(--white); }
.btn-primary:hover { background: var(--navy-light); box-shadow: 0 2px 8px rgba(27,42,74,0.25); }
.btn-gold      { background: var(--gold);       color: var(--navy); }
.btn-gold:hover { background: #d9b85a; box-shadow: 0 2px 8px rgba(201,168,76,0.35); }
.btn-ghost     { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--cream-dark); }
.btn-danger    { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c6c2; }
.btn-danger:hover { background: #f9d5d3; }
.btn-sm        { padding: 5px 12px; font-size: 0.8rem; }
.btn:disabled  { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { font-size: 0.79rem; color: var(--text-muted); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-navy        { background: var(--navy-tile);      color: var(--navy); }
.badge-gold        { background: var(--gold-light);     color: #8a6a00; }
.badge-terracotta  { background: var(--terracotta-bg);  color: var(--terracotta); }
.badge-teal        { background: var(--teal-bg);        color: var(--teal); }
.badge-purple      { background: var(--purple-bg);      color: var(--purple); }
.badge-brown       { background: var(--brown-bg);       color: var(--brown); }
.badge-success     { background: var(--success-bg);     color: var(--success); }
.badge-danger      { background: var(--danger-bg);      color: var(--danger); }
.badge-muted       { background: var(--cream-dark);     color: var(--text-muted); }

/* ── Event type colors ── */
.event-sunday    { --event-color: var(--navy);       --event-bg: var(--navy-tile); }
.event-fellowship{ --event-color: var(--terracotta); --event-bg: var(--terracotta-bg); }
.event-wtw       { --event-color: var(--teal);       --event-bg: var(--teal-bg); }
.event-wbs       { --event-color: var(--purple);     --event-bg: var(--purple-bg); }
.event-mbs       { --event-color: var(--brown);      --event-bg: var(--brown-bg); }

/* ── Reminder Banner ── */
.reminder-banner {
  background: var(--gold-light);
  border: 1px solid #e8d070;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.reminder-banner .icon { font-size: 1rem; margin-top: 1px; }
.reminder-banner ul { list-style: none; }
.reminder-banner ul li { font-size: 0.89rem; color: var(--navy); padding: 1px 0; }

/* ── Calendar ── */
.calendar-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}
.calendar-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-header h2 {
  color: var(--white);
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
}
.cal-nav-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.22); }
.calendar-grid-outer { padding: 16px; }
.day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  min-height: 52px;
  padding: 5px 6px;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: default;
  transition: background var(--transition);
  position: relative;
}
.cal-day.other-month { opacity: 0.28; }
.cal-day.today .day-num {
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cal-day.has-events { cursor: pointer; }
.cal-day.has-events:hover { background: var(--cream-dark); }
.day-num { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.cal-dot.sunday_service { background: var(--navy); }
.cal-dot.fellowship     { background: var(--terracotta); }
.cal-dot.wtw            { background: var(--teal); }
.cal-dot.wbs            { background: var(--purple); }
.cal-dot.mbs            { background: var(--brown); }

/* ── Event List (Schedule) ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 24px 0 12px;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--event-color, var(--navy));
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.event-card-left { display: flex; align-items: center; gap: 14px; }
.event-date-block {
  text-align: center;
  min-width: 46px;
  background: var(--event-bg, var(--navy-tile));
  border-radius: var(--radius-xs);
  padding: 6px 8px;
}
.event-date-block .month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--event-color, var(--navy)); letter-spacing: 0.06em; }
.event-date-block .day   { font-size: 1.35rem; font-weight: 700; color: var(--event-color, var(--navy)); line-height: 1; }
.event-card-info h3 { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.event-card-info p  { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.event-card-arrow { color: var(--text-light); font-size: 1rem; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* ── Service Detail ── */
.service-detail { max-width: 680px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.back-link:hover { color: var(--navy); }
.service-hero {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  color: var(--white);
  margin-bottom: 16px;
}
.service-hero .service-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px;
}
.service-hero .service-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.detail-section {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.detail-section:last-child { border-bottom: none; }
.detail-icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.detail-body h4 { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 3px; }
.detail-body p  { font-size: 0.92rem; color: var(--text); }
.detail-body a  { color: var(--teal); font-weight: 500; font-size: 0.85rem; }
.host-claim-banner {
  background: var(--gold-light);
  border: 1px solid #e0c84a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.host-claim-banner p { font-size: 0.88rem; color: var(--navy); font-weight: 500; }
.communion-toggle { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--cream-border);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--navy); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.phase-placeholder {
  background: var(--cream-dark);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
}

/* ── Admin Layout ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.stat-card .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Tab Nav ── */
.tab-nav {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition);
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--cream); }
.td-actions { display: flex; gap: 6px; }

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,42,74,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  animation: slideUp 0.22s ease;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--cream);
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .cross-big { font-size: 2rem; display: block; margin-bottom: 6px; color: var(--gold); }
.login-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
}
.login-logo p { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}
.login-divider {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 20px 0 4px;
}

/* ── RSVP ── */
.rsvp-section { margin-top: 16px; }
.rsvp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  flex-wrap: wrap;
}
.rsvp-row:last-child { border-bottom: none; }
.rsvp-name {
  flex: 1;
  min-width: 120px;
  font-size: 0.92rem;
  font-weight: 500;
}
.rsvp-name .age-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.rsvp-select {
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition);
  outline: none;
}
.rsvp-select:focus { border-color: var(--navy); }
.rsvp-select.coming    { border-color: var(--success); background: var(--success-bg); color: var(--success); font-weight: 600; }
.rsvp-select.notcoming { border-color: var(--terracotta); background: var(--terracotta-bg); color: var(--terracotta); font-weight: 600; }
.rsvp-saved {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.rsvp-saved.show { opacity: 1; }

.bagel-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.bagel-chip {
  background: var(--navy-tile);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bagel-chip .bagel-count {
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.bagel-total {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}
.no-rsvp-yet {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  padding: 8px 0;
}

/* ── Checkboxes & Role Toggles ── */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-inner { padding: 0 14px; }
  .main-content { padding: 18px 14px 80px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .modal-box { padding: 22px 18px; }
  .login-card { padding: 30px 22px; }
  .event-card { padding: 12px 14px; }
  .cal-day { min-height: 42px; }
}
