/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
}
/* =========================
   GLOBAL BACKGROUND IMAGE
========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111;

  background: 
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.95)),
    url('/faith/assets/hero.webp');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100%;
}

.simple-hero {
  padding: 100px 20px 60px;
  text-align: center;
}

.simple-hero .hero-content {
  max-width: 700px;
  margin: auto;
}
/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #e0e0e0;  /* Subtle border */
  background: #f4f8ff; /* Soft light blue background */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Light shadow for depth */
  border-radius: 10px; /* Rounded edges */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 35px;
}

.brand-title {
  font-weight: bold;
}

.brand-sub {
  font-size: 12px;
  color: #666;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: #333;  /* Dark text for links */
  text-decoration: none;
}

.nav-links a:hover {
  color: #2563eb;  /* Highlight color */
}

.nav-links a:active {
  color: #10b981;  /* Active color */
}

/* 🔥 NEW: NAV USER */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 30px;
  height: 30px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* 🔥 NEW: LOGOUT BUTTON */
.btn-nav {
  background: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  background: #2563eb;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: #10b981;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary.full {
  width: 100%;
  padding: 14px;
  border-radius: 12px;

  font-weight: 600;
  font-size: 15px;
}

/* =========================
   HERO (GLASS UPGRADE)
========================= */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;

  padding: 120px 20px 80px;
}

.hero-bg {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg img {
  width: 100%;
  height: 100%;

  /* 🔥 KEY FIXES */
  object-fit: contain;          /* show full logo */
  object-position: center 35%; /* push cross into view */
  /* 🔥 Reduce blur so cross is visible */
  filter: blur(2px) brightness(1.05);

  /* 🔥 Reduce zoom */
  transform: scale(1.02);

  opacity: 0.35; /* lighter so text pops */
}

.hero-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.6)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  margin: auto;
  text-align: center;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
}

.highlight {
  color: #2563eb;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

/* =========================
   AUTH PAGES (CLEAN VERSION)
========================= */
.auth-page {
  height: 100vh;                 /* ⬅️ force full viewport */
  overflow: hidden;              /* ⬅️ remove scroll */

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.95)),
    url('/faith/assets/hero.webp');

  background-size: cover;
  background-position: center;
}

/* REMOVE OLD LAYERS (SAFE NO-OP IF HTML STILL HAS THEM) */
.auth-hero,
.auth-overlay {
  display: none;
}

/* =========================
   WRAPPER
========================= */
.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   CARD
========================= */
.auth-card {
  background: rgba(255,255,255,0.96);

  /* 🔥 KEY: wider + more spacious */
  width: 500px;
  max-width: 92%;

  padding: 45px 40px;

  border-radius: 18px;

  /* 🔥 softer premium shadow */
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);

  /* subtle glass feel */
  backdrop-filter: blur(6px);
}

.auth-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
/* SUBTEXT */
.auth-sub {
  color: #666;
  margin-bottom: 20px;
}

/* =========================
   FORM (RESTORED — PREMIUM)
========================= */

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* 🔥 IMPORTANT: SCOPED INPUTS (NO GLOBAL OVERRIDE) */
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;

  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;

  font-size: 14px;
}

/* FOCUS STATE (RESTORED) */
.form-group input:focus,
.form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* =========================
   PASSWORD
========================= */
.password-wrapper {
  position: relative;
}

.toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* =========================
   BUTTON
========================= */
.full {
  width: 100%;
}

/* =========================
   ERROR
========================= */
#loginError,
#registerError {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
  display: none;
}

/* =========================
   LINKS
========================= */
.auth-footer {
  margin-top: 15px;
  font-size: 14px;
}

.auth-links {
  margin-top: 10px;
  font-size: 13px;
}

/* =========================
   FEATURES
========================= */
.features {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.features-header {
  text-align: center;
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}


.feature-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.badge.live {
  background: #10b981;
  color: white;
}

.badge.soon {
  background: #ccc;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
}

/* =========================
   TOAST (GLOBAL)
========================= */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

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

.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #2563eb; }

/* =========================
   DASHBOARD (ISOLATED FIX)
========================= */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app {
  flex: 1;
}
/* TEXT */
.brand-block h2 {
  font-size: 18px;
  margin: 0;
  text-align: center;
}
.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

textarea, input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
/* MAIN CONTENT */
.main {
  margin-left: 250px;
  padding: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 400px;
  opacity: 1;
}

/* HERO */

.hero {
  padding: 100px 20px 60px;
  text-align: center;
  background: transparent; /* IMPORTANT */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-sub {
  color: #555;
  margin: 10px 0 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-secondary {
  background: #10b981;
  color: white;
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}


/* FEATURE CARDS */
.feature-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card .icon {
  font-size: 30px;
  margin-bottom: 10px;
}

/* QUICK ACTIONS */
.quick-actions {
  margin-top: 40px;
}

.quick-actions .feature-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.quick-actions .feature-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

/* STATS SECTION */
.stats {
  margin-top: 40px;
}

.stats .stats-header h2 {
  margin-bottom: 25px;
}

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

.stat-card {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #f1f1f1;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .main {
    margin-left: 0;
  }

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

/* =========================
   CLEAN DASHBOARD MODE
========================= */

.clean-app {
  flex-direction: column;
}

/* REMOVE SIDEBAR SPACE */
.clean-main {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 1100px;
  margin: auto;
}

/* TOPBAR */
.clean-topbar {
  max-width: 1100px;
  margin: 20px auto;
}

/* BRAND INLINE */
.brand-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-logo {
  width: 35px;
}

/* NAV BUTTONS */
.nav-link {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  font-weight: 500;
}

/* HERO SPACING */
.simple-hero {
  margin-top: 10px;
}

/* CARD CLICKABLE */
.feature-card {
  cursor: pointer;
}

/* =========================
   🔥 DASHBOARD FINAL FIX
========================= */

/* REMOVE BODY IMAGE IMPACT ON DASHBOARD */
.clean-app body {
  background: #f7f8fa !important;
}

/* MAIN LAYOUT FIX */
.clean-main {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 20px !important;
}

/* HERO FIX */
.clean-main .simple-hero {
  background: white;
  border-radius: 16px;
  padding: 50px 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* GRID FIX (OVERRIDES ALL DUPLICATES) */
.clean-main .feature-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  max-width: 100% !important;
}

/* CARD FIX (CONSISTENT SIZE) */
.clean-main .feature-card {
  width: 100%;
  padding: 25px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

/* REMOVE SMALL CARD LOOK */
.clean-main .feature-card h3 {
  margin-bottom: 8px;
}

.clean-main .feature-card p {
  font-size: 14px;
  color: #666;
}

/* HOVER */
.clean-main .feature-card:hover {
  transform: translateY(-4px);
}

/* SECTION SPACING */
.clean-main .features {
  margin-bottom: 10px;
}

/* FIX HEADER CENTERING */
.clean-main .features-header {
  text-align: center;
  margin-bottom: 10px;
}

/* TOPBAR FIX */
.clean-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  max-width: 1100px;
  margin: 20px auto;
}

/* NAV BUTTON CLEAN */
.nav-link {
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.insight-item {
  background: #f1f5f9;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Grid layout fix */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Make chart span full width */
.chart-card {
  grid-column: span 2;
  height: 300px;
  padding: 20px;
}

/* Control chart size */
.chart-card canvas {
  width: 100% !important;
  height: 220px !important;
}

/* =========================
   DASHBOARD GRID FIXES
========================= */

/* Stats grid including chart */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Chart card spans full width */
.chart-card {
  grid-column: 1 / -1;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  background: white;
}

/* Chart canvas fixed height */
#sermonChart {
  width: 100% !important;
  height: 300px;
}

/* =========================
   QUICK ACTIONS FIX
========================= */

.prayer-wall-card {
  max-height: 250px;
  overflow-y: auto;
  text-align: left;
  padding: 15px;
}

.prayer-item {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  font-size: 14px;
}

.prayer-wall-card #prayerWall {
  max-height: 200px;
  overflow-y: auto;
}
.scroll-card {
  max-height: 220px;
  overflow-y: auto;
}

.prayer-wall-card {
  max-height: 260px;
}

.prayer-item {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.highlighted {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}

.engagement-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 6px;
}

#engagementProgress {
  height: 6px;
  background: #2563eb;
  width: 0%;
  border-radius: 4px;
}

/* Quick Actions scrollable */
.feature-card.scrollable {
  max-height: 220px;
  overflow-y: auto;
}

/* Uniform card heights */
.feature-card {
  min-height: 150px;
}

/* Reduce spacing between sections */
.features-header {
  margin-bottom: 8px;
}
.feature-grid {
  gap: 12px;
}
.stats-grid {
  gap: 12px;
}

/* Engagement progress bar */
.progress-bar {
  background: #eee;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  background: #3b82f6;
  width: 0;
  text-align: center;
  line-height: 16px;
  color: white;
  font-size: 12px;
  transition: width 0.4s ease;
}

/* Highlight most recent items */
.highlight-item {
  border-left: 4px solid #3b82f6;
  padding-left: 6px;
  background-color: #f0f9ff;
}

/* Prayer wall timestamp */
.prayer-time {
  color: #666;
  font-size: 12px;
  margin-left: 2px;
}
.engagement-bar {
  background: #e5e7eb; /* light gray track */
  border-radius: 4px;
  height: 18px;
  position: relative;
}

.engagement-bar span {
  position: absolute;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #111827; /* darker gray/black for visibility */
  line-height: 18px;
}
.prayer-wall-card {
  grid-column: span 2; /* spans 2 columns in grid */
  min-width: 300px;
  max-width: 600px;
}

/* Scrollable cards */
.scroll-card {
  min-width: 240px;
  max-width: 260px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
}

/* Prayer wall wider */
.prayer-wall-card {
  min-width: 300px;
  max-width: 380px;
  max-height: 260px;
}

/* Feed */
.feed-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}

/* Engagement bar */
.engagement-bar {
  position: relative;
  background: #e5e7eb;
  height: 20px;
  border-radius: 4px;
  margin-top: 6px;
}

.engagement-bar span {
  position: absolute;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #111827;
  line-height: 20px;
}

/* Scrollbar styling */
.scroll-card::-webkit-scrollbar {
  width: 6px;
}
.scroll-card::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 3px;
}

/* =========================
   MEMBER DASHBOARD FIX
========================= */

/* Main section spacing */
.features {
  margin-top: 40px;
}

/* Section headers */
.features-header {
  text-align: center;
  margin-bottom: 20px;
}

.features-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

/* =========================
   FEED
========================= */

.feed-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;

  max-width: 1000px;
  margin: 0 auto;

  max-height: 340px;
  overflow-y: auto;
}

/* =========================
   QUICK GRID
========================= */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;

  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   STATS GRID
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;

  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   CARDS
========================= */

.feature-card {
  background: rgba(255,255,255,0.92);

  border-radius: 20px;

  padding: 24px;

  min-height: 180px;

  box-shadow:
    0 4px 18px rgba(0,0,0,0.06);

  backdrop-filter: blur(8px);

  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* =========================
   SCROLL CARDS
========================= */

.scroll-card {
  max-height: 260px;
  overflow-y: auto;
}

/* =========================
   PRAYER WALL
========================= */

.prayer-wall-card {
  max-height: 320px;
  overflow-y: auto;
}

.prayer-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* =========================
   ENGAGEMENT BAR
========================= */

.engagement-bar {
  position: relative;

  width: 100%;
  height: 22px;

  background: #e5e7eb;

  border-radius: 999px;

  overflow: hidden;

  margin-top: 12px;
}

.engagement-bar .fill {
  height: 100%;
  width: 0%;

  background: linear-gradient(
    90deg,
    #2563eb,
    #3b82f6
  );

  transition: width 0.4s ease;
}

.engagement-bar span {
  position: absolute;
  width: 100%;

  text-align: center;

  line-height: 22px;

  font-weight: 700;

  color: #111827;

  z-index: 2;
}

/* =========================
   HERO TOP ROW
========================= */

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  flex-wrap: wrap;
}

/* =========================
   PASTOR BUTTON
========================= */

.pastor-upgrade-btn {
  white-space: nowrap;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================
   FORCE QUICK GRID FIX
========================= */

.quick-grid {
  display: grid !important;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr)) !important;

  gap: 20px !important;

  align-items: stretch !important;

  max-width: 1200px;
  margin: 0 auto;
}

/* Uniform discover cards */
.quick-grid .feature-card {
  width: 100% !important;

  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Prevent giant pastor card */
.quick-grid .feature-card:last-child {
  max-width: unset !important;
}

/* Better spacing */
.features {
  padding: 10px 0 30px;
}
.feature-card > #topSermons,
.feature-card > #aiInsights {
  max-height: 200px; /* adjust as needed */
  overflow-y: auto;
  text-align: left;
  padding-right: 5px; /* space for scrollbar */
}
.features .feature-grid .feature-card {
  padding: 20px;
}

.nav-links a.nav-active {
  font-weight: bold;
  border-bottom: 2px solid #2563eb; /* Blue underline */
  color: #2563eb;
}
/* =========================
   DASHBOARD STATS ADJUSTMENT
========================= */

/* Decrease height of Total Sermons & Total Members cards */
.stats-grid > .feature-card:nth-child(1),
.stats-grid > .feature-card:nth-child(2) {
  min-height: 120px; /* reduce from ~180px */
  padding: 16px;
}

/* Increase width of Prayer Wall to span 2 columns */
.stats-grid > .prayer-wall-card {
  grid-column: span 2; /* spans 2 feature cards */
  min-width: 500px; /* optional: adjust based on container */
  max-width: 1000px;
  min-height: 250px; /* keep reasonable height */
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stats-grid > .prayer-wall-card {
  grid-column: span 2;
}
/* =========================================
   FINAL GLOBAL MOBILE SYSTEM
   SAFE OVERLAY (NON-DESTRUCTIVE)
========================================= */

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Better tap targets */
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}

/* =========================================
   LARGE TABLETS
========================================= */
@media (max-width: 1200px) {

  .clean-main,
  .features,
  .quick-grid,
  .stats-grid {
    width: 100%;
    max-width: 100%;
  }

  .feature-grid,
  .quick-grid,
  .stats-grid {
    grid-template-columns:
      repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

}

/* =========================================
   TABLET
========================================= */
@media (max-width: 992px) {

  /* NAVBAR */
  .navbar {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  /* HERO */
  .hero-title,
  .simple-hero .hero-title {
    font-size: 42px;
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 16px;
  }

  /* BUTTONS */
  .hero-buttons {
    flex-wrap: wrap;
  }

  /* FEATURE GRIDS */
  .feature-grid,
  .quick-grid,
  .stats-grid {
    grid-template-columns:
      repeat(auto-fit, minmax(240px, 1fr)) !important;
  }

  /* PRAYER WALL */
  .stats-grid > .prayer-wall-card {
    grid-column: span 1 !important;
    min-width: unset !important;
    max-width: 100% !important;
  }

}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {

  /* BODY */
  body {
    background-attachment: scroll;
  }

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 0;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
  }

  .nav-links a {
    font-size: 15px;
  }

  /* HERO */
  .simple-hero,
  .hero {
    padding: 70px 18px 50px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-title,
  .simple-hero .hero-title {
    font-size: 34px;
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.6;
  }

  /* HERO BUTTONS */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons button,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }

  /* FEATURES */
  .features {
    padding: 30px 16px;
  }

  .features-header h2 {
    font-size: 34px;
    line-height: 1.2;
  }

  /* GRIDS */
  .feature-grid,
  .quick-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* CARDS */
  .feature-card,
  .card,
  .stat-card {
    min-height: unset !important;
    padding: 22px;
    border-radius: 18px;
  }

  /* PRAYER WALL */
  .prayer-wall-card {
    grid-column: span 1 !important;
    min-width: unset !important;
    max-width: 100% !important;
  }

  /* AUTH */
  .auth-card {
    padding: 30px 22px;
    width: 100%;
  }

  /* INPUTS */
  textarea,
  input,
  select {
    font-size: 16px;
  }

  /* FOOTER */
  .footer {
    padding: 30px 16px;
    text-align: center;
  }

}

/* =========================================
   SMALL MOBILE
========================================= */
@media (max-width: 480px) {

  .hero-title,
  .simple-hero .hero-title {
    font-size: 28px;
  }

  .features-header h2 {
    font-size: 28px;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .navbar {
    padding: 12px;
  }

  .nav-links {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 18px;
  }

}
/* =====================================
   TABLET
===================================== */
@media(max-width:1200px){

  .studio-layout{
    grid-template-columns:1fr;
    padding:18px;
  }

  .studio-sidebar,
  .studio-main,
  .action-sidebar{
    width:100%;
  }

  .action-sidebar{
    order:3;
  }

}

/* =====================================
   MOBILE
===================================== */
@media(max-width:768px){

  body{
    overflow-x:hidden;
  }

  .studio-layout{
    padding:12px;
    gap:16px;
  }

  /* CARDS */
  .studio-sidebar,
  .studio-main,
  .action-sidebar{
    border-radius:20px;
    padding:18px;
  }

  /* HEADER */
  .main-header{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .main-header h1{
    font-size:32px;
  }

  /* TABS */
  .studio-tabs{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:6px;
  }

  .tab-btn{
    white-space:nowrap;
    flex-shrink:0;
  }

  /* TEXTAREA */
  textarea{
    min-height:120px;
  }

  /* SERMON */
  .sermon-canvas{
    padding:28px 20px;
    min-height:400px;
    border-radius:20px;
  }

  .sermon-canvas p{
    font-size:17px;
    line-height:1.8;
  }

  /* EMPTY STATE */
  .empty-state{
    margin-top:70px;
  }

  .empty-state h2{
    font-size:26px;
    line-height:1.3;
  }

  .empty-state p{
    font-size:16px;
  }

  .empty-icon{
    width:70px;
    height:70px;
    font-size:32px;
  }

  /* ACTIONS */
  .action-card button{
    padding:16px;
    font-size:15px;
  }

  /* BUTTONS */
  .generate-btn,
  .view-btn{
    padding:16px;
    font-size:16px;
  }

  /* UPLOAD */
  .upload-drop{
    padding:18px;
  }

  /* TIP */
  .studio-tip{
    font-size:13px;
  }

}

/* =====================================
   SMALL MOBILE
===================================== */
@media(max-width:480px){

  .main-header h1{
    font-size:28px;
  }

  .sidebar-header h2{
    font-size:30px;
  }

  .sermon-canvas{
    padding:22px 18px;
  }

  .sermon-canvas p{
    font-size:16px;
  }

  .action-card h3{
    font-size:20px;
  }

}
/* =========================================
   SERMON STUDIO MOBILE SYSTEM
========================================= */

.mobile-action-bar,
.mobile-settings-toggle{
  display:none;
}

/* SERMON TYPOGRAPHY */
.sermon-canvas h1,
.sermon-canvas h2,
.sermon-canvas h3{
  font-family:Georgia,serif;
  margin-bottom:18px;
}

.sermon-canvas p{
  line-height:1.9;
  font-size:18px;
  color:#374151;
}

/* EMPTY ICON */
.empty-icon{
  width:90px;
  height:90px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    #2563EB,
    #4F46E5
  );

  display:flex;
  align-items:center;
  justify-content:center;

  margin:0 auto 24px;

  font-size:40px;
  color:white;
}

/* BUTTON ANIMATIONS */
.action-card button,
.generate-btn,
.view-btn,
.tab-btn,
.focus-btn{
  transition:all 0.25s ease;
}

.action-card button:hover,
.generate-btn:hover,
.view-btn:hover,
.tab-btn:hover,
.focus-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

/* =========================================
   TABLET
========================================= */
@media(max-width:1200px){

  .studio-layout{
    grid-template-columns:1fr;
    padding:18px;
  }

  .action-sidebar{
    order:3;
  }

}

/* =========================================
   MOBILE
========================================= */
@media(max-width:768px){

  body{
    overflow-x:hidden;
  }

  .studio-layout{
    grid-template-columns:1fr;
    padding:12px;
    gap:16px;
  }

  /* MOBILE SETTINGS BUTTON */
  .mobile-settings-toggle{
    display:flex;

    width:100%;

    border:none;

    background:linear-gradient(
      135deg,
      #2563EB,
      #4F46E5
    );

    color:white;

    padding:16px;

    border-radius:16px;

    font-size:16px;
    font-weight:700;

    justify-content:center;
    align-items:center;

    cursor:pointer;

    margin-top:12px;
  }

  /* COLLAPSIBLE SIDEBAR */
  .sidebar-scroll{
    display:none;
  }

  .studio-sidebar.open .sidebar-scroll{
    display:block;
    margin-top:18px;
  }

  /* HIDE RIGHT PANEL */
  .action-sidebar{
    display:none;
  }

  /* CARDS */
  .studio-sidebar,
  .studio-main{
    padding:18px;
    border-radius:20px;
  }

  /* HEADER */
  .main-header{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .main-header h1{
    font-size:32px;
  }

  /* TABS */
  .studio-tabs{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:6px;
  }

  .tab-btn{
    white-space:nowrap;
    flex-shrink:0;
  }

  /* SERMON */
  .sermon-canvas{
    padding:28px 20px 120px;
    min-height:70vh;
  }

  .sermon-canvas p{
    font-size:17px;
    line-height:1.8;
  }

  /* EMPTY STATE */
  .empty-state{
    margin-top:70px;
  }

  .empty-state h2{
    font-size:26px;
    line-height:1.3;
  }

  .empty-state p{
    font-size:16px;
  }

  .empty-icon{
    width:70px;
    height:70px;
    font-size:32px;
  }

  /* MOBILE ACTION BAR */
  .mobile-action-bar{
    position:fixed;

    bottom:0;
    left:0;
    right:0;

    display:flex;

    justify-content:space-around;
    align-items:center;

    background:rgba(255,255,255,0.96);

    backdrop-filter:blur(12px);

    border-top:1px solid #E5E7EB;

    padding:12px 10px;

    z-index:9999;
  }

  .mobile-action-bar button{
    background:none;
    border:none;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    font-size:22px;

    gap:4px;

    cursor:pointer;
  }

  .mobile-action-bar span{
    font-size:12px;
    font-weight:600;
  }

  /* STICKY GENERATE */
  .generate-btn{
    position:sticky;
    bottom:90px;
    z-index:999;
  }

}

/* =========================================
   SMALL MOBILE
========================================= */
@media(max-width:480px){

  .main-header h1{
    font-size:28px;
  }

  .sermon-canvas{
    padding:22px 18px 120px;
  }

  .sermon-canvas p{
    font-size:16px;
  }

}

/* =========================================
   SERMON RENDERING ENGINE
========================================= */

.sermon-rendered{
  width:100%;
}

.sermon-header{
  margin-bottom:40px;
}

.sermon-title{
  font-size:42px;
  line-height:1.2;
  margin-bottom:24px;
  color:#111827;
}

.scripture-block{

  background:
    linear-gradient(
      135deg,
      #EEF2FF,
      #F5F3FF
    );

  border-left:5px solid #4F46E5;

  padding:22px;

  border-radius:18px;

  font-size:18px;
  line-height:1.8;

  color:#312E81;

  margin-bottom:40px;
}

.sermon-section{
  margin-bottom:46px;
}

.sermon-section h2{

  font-size:30px;

  margin-bottom:18px;

  color:#111827;
}

.sermon-section p{

  font-size:19px;

  line-height:2;

  color:#374151;
}

.application-section{

  background:
    linear-gradient(
      135deg,
      #ECFDF5,
      #F0FDF4
    );

  padding:30px;

  border-radius:24px;
}

.conclusion-section{

  background:
    linear-gradient(
      135deg,
      #EFF6FF,
      #F8FAFC
    );

  padding:30px;

  border-radius:24px;
}

/* =========================================
   LOADING STATE
========================================= */

.loading-state{
  text-align:center;
  padding:100px 20px;
}

.loading-spinner{

  width:70px;
  height:70px;

  border-radius:50%;

  border:6px solid #E5E7EB;
  border-top:6px solid #4F46E5;

  margin:0 auto 24px;

  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

.loading-state h2{
  margin-bottom:12px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

  .sermon-title{
    font-size:34px;
  }

  .sermon-section h2{
    font-size:26px;
  }

  .sermon-section p{
    font-size:17px;
    line-height:1.9;
  }

  .scripture-block{
    font-size:16px;
  }

}

/* =========================================
   FORCE FIX UPLOAD BUTTONS
========================================= */

.upload-section button,
.upload-section input[type="file"]::file-selector-button,
.upload-box button,
.upload-box .btn-primary,
.upload-box .btn-secondary {

  background: linear-gradient(
    135deg,
    #4f46e5,
    #2563eb
  ) !important;

  color: #ffffff !important;

  border: none !important;

  opacity: 1 !important;

  visibility: visible !important;

  display: inline-flex !important;

  align-items: center;

  justify-content: center;

  width: 100%;

  padding: 14px 18px;

  border-radius: 14px;

  font-weight: 700 !important;

  font-size: 14px;

  cursor: pointer;

  transition: all 0.25s ease;
}

/* FORCE TEXT COLOR */
.upload-section button *,
.upload-box button *,
.upload-box .btn-primary *,
.upload-box .btn-secondary * {

  color: white !important;

  opacity: 1 !important;
}

/* HOVER */
.upload-section button:hover,
.upload-box button:hover {

  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(
      37,
      99,
      235,
      0.25
    );
}

/* FILE NAME */
.upload-box p,
.upload-box span,
.upload-section p {

  color: #334155 !important;

  opacity: 1 !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.nav-active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
  font-weight: 700;
}

.btn-secondary {
  min-width: 110px;
}

/* =====================================
   NAVIGATION CONTAINER
===================================== */

.nav-links {

  display: flex;
  align-items: center;
  gap: 14px;
}

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

.nav-link {

  background: #2563eb;

  color: #ffffff;

  border: none;

  padding: 10px 18px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 15px;

  font-weight: 600;

  transition: all .25s ease;

  box-shadow:
    0 2px 6px rgba(
      37,
      99,
      235,
      0.25
    );
}

.nav-link:hover {

  background: #1d4ed8;

  transform:
    translateY(-1px);
}

/* =====================================
   ACTIVE PAGE
===================================== */

.nav-active {

  background: #dc2626 !important;

  color: #ffffff !important;

  font-weight: 700;

  border: none !important;

  box-shadow:
    0 4px 10px rgba(
      220,
      38,
      38,
      0.35
    );
}

/* =====================================
   LOGIN / LOGOUT BUTTONS
===================================== */

.btn-secondary {

  background: #10b981 !important;

  color: #ffffff !important;

  border: none;

  border-radius: 10px;

  padding: 10px 22px;

  font-weight: 600;
}

.btn-secondary:hover {

  background: #059669 !important;
}

/* =====================================
   REGISTER BUTTON
===================================== */

.btn-primary {

  background: #2563eb !important;

  color: #ffffff !important;

  border: none;

  border-radius: 10px;

  padding: 10px 22px;

  font-weight: 600;
}

.btn-primary:hover {

  background: #1d4ed8 !important;
}

/* =====================================
   FIX FOR ACTIVE BUTTON
===================================== */
.nav-active,
.nav-active:visited,
.nav-active:hover,
.nav-active:focus {

  background: #dc2626 !important;

  color: #ffffff !important;

  font-weight: 700 !important;

  border: none !important;

  text-decoration: none !important;

  box-shadow:
    0 4px 10px rgba(
      220,
      38,
      38,
      0.35
    );
}

/* Force all text inside active button to white */

.nav-active * {

  color: #ffffff !important;
}

/* =====================================================
   STEP 1Y
   XYNAFAITH MOBILE HARDENING PACK
   Paste at VERY BOTTOM of styles.css
===================================================== */

@media (max-width: 768px) {

  /* =====================================================
     GLOBAL
  ===================================================== */

  html,
  body {

    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  * {

    box-sizing: border-box;
  }

  .app,
  .dashboard-page,
  .dashboard-app,
  .container,
  .page-container {

    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  /* =====================================================
     NAVBAR
  ===================================================== */

  .navbar {

    flex-direction: column;

    gap: 12px;

    padding: 12px;
  }

  .nav-left {

    width: 100%;

    justify-content: center;
  }

  .nav-links {

    width: 100%;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 8px;
  }

  .nav-link,
  .btn-primary,
  .btn-secondary {

    min-height: 48px;

    padding: 10px 14px;

    font-size: 14px;
  }

  /* =====================================================
     HERO
  ===================================================== */

  .hero,
  .simple-hero {

    padding: 60px 20px;
  }

  .hero-content {

    text-align: center;
  }

  .hero-title {

    font-size: 2rem !important;

    line-height: 1.2;
  }

  .hero-sub {

    font-size: 1rem !important;

    line-height: 1.6;
  }

  .hero-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;
  }

  .hero-buttons button {

    width: 100%;
  }

  /* =====================================================
     FEATURES
  ===================================================== */

  .feature-grid {

    grid-template-columns: 1fr !important;
  }

  .feature-card {

    width: 100%;
  }

  /* =====================================================
     DASHBOARD
  ===================================================== */

  .dashboard-grid,
  .metrics-grid,
  .analytics-grid,
  .cards-grid {

    grid-template-columns: 1fr !important;
  }

  .dashboard-card,
  .metric-card,
  .analytics-card {

    width: 100%;
  }

  .welcome-hero {

    padding: 20px;
  }

  .welcome-hero h1 {

    font-size: 1.8rem;
  }

  /* =====================================================
     CHARTS
  ===================================================== */

  canvas {

    max-width: 100% !important;
  }

  /* =====================================================
     SERMON STUDIO
  ===================================================== */

  .sermon-layout,
  .studio-layout,
  .editor-layout {

    display: flex !important;

    flex-direction: column !important;

    gap: 16px;
  }

  .sermon-sidebar,
  .sermon-main,
  .sermon-actions {

    width: 100% !important;
  }

  textarea,
  input,
  select {

    width: 100%;
  }

  #sermonOutput {

    max-width: 100%;
  }

  /* =====================================================
     SERMON LISTS
  ===================================================== */

  .sermon-list,
  .sermons-grid {

    grid-template-columns: 1fr !important;
  }

  .sermon-card {

    width: 100%;
  }

  /* =====================================================
     PRAYER WALL
  ===================================================== */

  .prayer-grid,
  .prayer-wall,
  .prayer-container {

    display: grid;

    grid-template-columns: 1fr !important;
  }

  .prayer-card {

    width: 100%;
  }

  /* =====================================================
     NETWORK PAGE
  ===================================================== */

  .pastor-grid,
  .network-grid {

    grid-template-columns: 1fr !important;
  }

  .pastor-card {

    width: 100%;
  }

  /* =====================================================
     PROFILE PAGES
  ===================================================== */

  .profile-grid {

    grid-template-columns: 1fr !important;
  }

  .profile-card {

    width: 100%;
  }

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

  .modal-content {

    width: 95% !important;

    max-height: 90vh;

    overflow-y: auto;
  }

  /* =====================================================
     TABLES
  ===================================================== */

  table {

    display: block;

    overflow-x: auto;

    white-space: nowrap;
  }

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

  button {

    min-height: 48px;
  }

  /* =====================================================
     IMAGES
  ===================================================== */

  img {

    max-width: 100%;

    height: auto;
  }

}

/* ===================================
   MOBILE NAVIGATION
=================================== */

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 15px;

        width: 240px;

        flex-direction: column;
        gap: 10px;

        padding: 16px;

        border-radius: 12px;

        background: rgba(15, 23, 42, 0.96);

        backdrop-filter: blur(12px);

        z-index: 9999;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a,
    .nav-links button {
        width: 100%;
        text-align: left;
    }
}

/* ===================================
   MOBILE SERMON SETTINGS
=================================== */
@media (max-width: 768px) {
  .sidebar-scroll {
    display: block !important; /* Ensure it’s visible */
  }

  .mobile-settings-toggle {
    display: none !important; /* Hide toggle button */
  }
}

/* =========================
   MOBILE SERMON TABS
========================= */

/* Mobile sermon tabs */
.mobile-sermon-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #f0f2ff;
  font-weight: 600;
  cursor: pointer;
  margin-right: 4px;
}

.mobile-tab:last-child {
  margin-right: 0;
}

.mobile-tab.active {
  background-color: #3b66ff;
  color: white;
  border-color: #3b66ff;
}

/* =====================================
   FIXED TOP NAVBAR
===================================== */

.navbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 9999;

  background: white;

  border-bottom: 1px solid #E5E7EB;
}

/* Prevent content hiding behind navbar */
#app{
  padding-top: 90px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 92px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#app {
  padding-top: 105px; /* to prevent overlap */
}

@media (max-width: 768px) {
  .navbar {
    height: 88px;
    padding: 0 16px;
  }
}
/* =====================================
   MOBILE DRAWER
===================================== */

.mobile-drawer{

  position:fixed;

  top:92px;

  right:-320px;

  width:300px;

  height:calc(100vh - 92px);

  background:white;

  box-shadow:
    -5px 0 25px rgba(
      0,
      0,
      0,
      0.12
    );

  transition:.3s ease;

  z-index:9998;

  overflow-y:auto;
}

.mobile-drawer.open{
  right:0;
}

.mobile-drawer-header{

  padding:20px;

  border-bottom:
    1px solid #e5e7eb;
}

.mobile-drawer-user{

  font-size:14px;

  color:#6b7280;

  margin-top:6px;
}

.mobile-drawer-links{

  padding:12px;
}

.mobile-drawer-links a{

  display:flex;

  align-items:center;

  gap:12px;

  padding:14px;

  border-radius:10px;

  text-decoration:none;

  color:#111827;

  font-weight:600;
}

.mobile-drawer-links a:hover{

  background:#f5f7fb;
}

/* =====================================
   FINAL MOBILE NAVBAR FIX
===================================== */

@media (max-width:768px){

  .navbar{

    flex-direction:row !important;

    justify-content:space-between !important;

    align-items:center !important;

    height:88px;

    padding:0 16px !important;
  }

  .nav-left{

    width:auto !important;

    justify-content:flex-start !important;
  }

  .mobile-menu-btn{

    display:flex !important;

    align-items:center;

    justify-content:center;

    width:44px;

    height:44px;

    margin-left:auto;

    font-size:32px;

    color:#111827;

    background:transparent;

    border:none;

    z-index:10001;
  }

  .nav-links{
    display:none !important;
  }
}

/* =====================================
   MOBILE DRAWER BUTTONS
===================================== */

.mobile-drawer-links button {

  width: 100%;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 14px 16px;

  margin-bottom: 8px;

  border: none;

  border-radius: 12px;

  background: #ffffff;

  color: #111827;

  font-size: 15px;

  font-weight: 600;

  text-align: left;

  cursor: pointer;

  transition: all .2s ease;
}

.mobile-drawer-links button:hover {

  background: #f5f7fb;

  transform: translateX(4px);
}

.mobile-drawer-links button:last-child {

  color: #dc2626;
}
.mobile-drawer {
  display: none;
}

@media (max-width:768px){

  .mobile-drawer{
    display:block;
  }

}

@media (max-width:768px){

  .mobile-menu-btn{

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    width:48px !important;

    height:48px !important;

    font-size:32px !important;

    color:#111827 !important;

    background:none !important;

    border:none !important;

    opacity:1 !important;

    visibility:visible !important;

    z-index:10002 !important;
  }

}

.footer{
  padding:24px;
  text-align:center;
  border-top:1px solid #E5E7EB;
  background:#fff;
}

.footer-brand{
  font-weight:600;
  margin-bottom:8px;
}

.footer-tagline{
  font-size:.9rem;
  color:#6B7280;
  margin-bottom:12px;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.footer-links a{
  color:#2563EB;
  text-decoration:none;
  font-weight:500;
}

.footer-links a:hover{
  text-decoration:underline;
}