/* ============================================
   CatholicUp Web — Desktop + Mobile Responsive
   Full-width layout, not a phone simulator
   ============================================ */

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

:root {
  --primary: #06A2FF;
  --primary-app-bar: #17A8FF;
  --secondary: #087D46;
  --accent: #FFB500;
  --success: #00C566;
  --error: #E53935;
  --warning: #FA7C15;
  --warm-red: #F8094E;
  --white: #FFFFFF;
  --smoked-white: #F5F5F5;
  --scaffold: #F4F4F4;
  --grey: #D3D3D3;
  --text-primary: #2F2F2F;
  --text-secondary: rgba(47, 47, 47, 0.6);
  --text-description: #7B7A7F;
  --step-grey: #D1D5DB;
  --plan-grey: #B2B1B7;
  --divider: #EAEAEA;
  --input-border: #DFE6E6;
  --message-grey: #E6E6E6;
  --message-date-bg: #EEEEEE;
  --send-message-bg: rgba(23, 168, 255, 0.125);
  --beige: rgba(255, 186, 13, 0.1);
  --whatsapp: #25D366;
  --splash-bg: #087E44;
  --compat-high: #4CAF50;
  --compat-medium: #FF9800;
  --compat-low: #9E9E9E;
  --sidebar-width: 260px;
  --topbar-height: 64px;
}

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

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--scaffold);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

/* ============ LAYOUT SHELL ============ */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* --- Sidebar (desktop) --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 1px 0 8px rgba(0,0,0,0.03);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--divider);
}

.sidebar-logo img {
  height: 32px;
}

.sidebar-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-description);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: var(--smoked-white);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(6, 162, 255, 0.08);
  border-left-color: var(--primary);
}

.nav-link .nav-link-icon {
  transition: transform 0.15s;
}

.nav-link:hover .nav-link-icon {
  transform: scale(1.1);
}

.nav-link-icon {
  font-size: 22px;
  width: 24px;
  text-align: center;
}

.sidebar-profile {
  padding: 16px 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.sidebar-profile:hover { background: var(--smoked-white); }

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-profile-name {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-profile-sub {
  font-size: 11px;
  color: var(--text-description);
}

/* --- Main Content Area --- */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* --- Top Bar --- */
.topbar {
  height: var(--topbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-icon {
  font-size: 22px;
  color: var(--text-description);
  cursor: pointer;
  transition: color 0.15s;
}

.topbar-icon:hover { color: var(--primary); }

/* --- Content --- */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* --- Screens --- */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ============ SPLASH / ONBOARDING (full page takeover) ============ */
.fullpage-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
}
.fullpage-overlay.active { display: flex; }

.splash-page {
  background: var(--splash-bg);
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: splashPulse 1.5s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* Onboarding */
.onboarding-page {
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.onboarding-container {
  max-width: 500px;
  width: 100%;
  padding: 40px;
  text-align: center;
}

.onboarding-image-wrap {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
}

.onboarding-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.onboarding-desc {
  font-size: 15px;
  color: var(--text-description);
  line-height: 1.6;
  margin-bottom: 32px;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--step-grey);
  transition: all 0.3s;
}

.onboarding-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Login */
.login-page {
  background: var(--white);
  align-items: center;
  justify-content: center;
}

.login-container {
  max-width: 420px;
  width: 100%;
  padding: 48px 40px;
}

.login-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-description);
  text-align: center;
  margin-bottom: 32px;
}

/* ============ FORMS ============ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-secondary); }

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
}

.form-textarea:focus { border-color: var(--primary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  user-select: none;
}

.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { opacity: 0.9; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-danger { background: transparent; border: 1.5px solid var(--error); color: var(--error); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 12px; }
.btn-lg { height: 52px; padding: 0 36px; font-size: 16px; }

.selection-card {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.selection-card.selected {
  border: 2px solid rgba(6, 162, 255, 0.4);
  background: rgba(6, 162, 255, 0.08);
  font-weight: 600;
}

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}

.badge-accent { background: var(--beige); color: #B8860B; }
.badge-success { background: rgba(0, 197, 102, 0.1); color: var(--success); }
.badge-primary { background: rgba(6, 162, 255, 0.1); color: var(--primary); }

.badge-dark {
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ============ HOME / DISCOVER ============ */
.discover-layout {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.discover-card-area {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-card {
  width: 380px;
  height: 520px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.08);
  cursor: grab;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0,0,0,0.1);
}

.profile-card:active { cursor: grabbing; }

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

.profile-card-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.profile-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: var(--white);
  z-index: 2;
}

.profile-card-name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card-dots {
  position: absolute;
  top: 14px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 3;
}

.profile-card-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.profile-card-dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 3px;
}

.swipe-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: 20px;
}

.swipe-like { background: rgba(6, 162, 255, 0.3); border: 5px solid var(--primary); }
.swipe-pass { background: rgba(100, 100, 100, 0.3); border: 5px solid #666; }
.swipe-overlay-icon { font-size: 80px; color: var(--white); }

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.action-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.15s;
  font-size: 22px;
  background: var(--white);
}

.action-btn:active { transform: scale(0.9); }
.action-btn:hover { transform: scale(1.05); }
.action-btn-undo { color: var(--accent); width: 44px; height: 44px; font-size: 18px; }
.action-btn-pass { color: #666; }
.action-btn-like { color: var(--warm-red); }

/* Discover sidebar panel */
.discover-sidebar {
  flex: 1;
  min-width: 0;
}

.discover-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.discover-queue {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.queue-card {
  width: 110px;
  aspect-ratio: 3/4;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.queue-card:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.queue-card-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  font-size: 11px;
  font-weight: 600;
}

/* ============ EXPLORE ============ */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.explore-section { margin-bottom: 32px; }

.explore-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-description);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.explore-tile {
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.explore-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.explore-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6, 162, 255, 0.12);
  border-color: rgba(6, 162, 255, 0.3);
}

.explore-tile:hover::before { opacity: 1; }

.explore-tile-icon {
  font-size: 32px;
  color: var(--primary);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 162, 255, 0.08);
  border-radius: 14px;
  transition: background 0.2s, transform 0.2s;
}

.explore-tile:hover .explore-tile-icon {
  background: rgba(6, 162, 255, 0.14);
  transform: scale(1.05);
}

.explore-tile-label { font-size: 13px; font-weight: 600; text-align: center; color: var(--text-primary); }

.explore-tile-coming-soon {
  opacity: 0.45;
  pointer-events: none;
}

.explore-tile-coming-soon::after {
  content: 'Coming Soon';
  font-size: 9px;
  color: var(--text-description);
  font-weight: 400;
}

/* ============ LIKES ============ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-description);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.likes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.like-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.like-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

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

.like-card-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.like-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  color: var(--white);
}

.like-card-name { font-size: 15px; font-weight: 700; }
.like-card-meta { font-size: 12px; opacity: 0.8; }

/* ============ CHAT ============ */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--topbar-height));
  margin: -32px;
}

.chat-list-panel {
  width: 340px;
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  background: var(--white);
  flex-shrink: 0;
}

.chat-list-header {
  padding: 20px;
  border-bottom: 1px solid var(--divider);
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
  background: var(--smoked-white);
}

.search-input:focus { border-color: var(--primary); background: var(--white); }

.search-bar {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  font-size: 18px;
}

.chat-categories {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--divider);
}

.chat-category {
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-description);
  background: var(--smoked-white);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-category.active {
  background: var(--primary);
  color: var(--white);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 0.5px solid var(--divider);
}

.conversation-item:hover { background: var(--smoked-white); }
.conversation-item.active { background: rgba(6,162,255,0.06); border-left: 3px solid var(--primary); }

.conversation-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.conversation-info { flex: 1; min-width: 0; }
.conversation-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.conversation-preview { font-size: 12px; color: var(--text-description); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.conversation-meta { text-align: right; flex-shrink: 0; }
.conversation-time { font-size: 10px; color: var(--text-description); margin-bottom: 4px; }

.conversation-unread {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}

/* Chat Detail */
.chat-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--smoked-white);
  min-width: 0;
}

.chat-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--divider);
}

.chat-detail-name { font-size: 16px; font-weight: 600; flex: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-date-separator { text-align: center; padding: 8px 0; }

.chat-date-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--message-date-bg);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-description);
}

.message-row { display: flex; margin-bottom: 2px; }
.message-row-sent { justify-content: flex-end; }
.message-row-received { justify-content: flex-start; }

.message-bubble {
  max-width: 480px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-sent {
  background: rgba(6, 162, 255, 0.12);
  border-bottom-right-radius: 3px;
  color: var(--text-primary);
}

.message-received {
  background: var(--white);
  border: 1px solid var(--divider);
  border-bottom-left-radius: 3px;
  color: var(--text-primary);
}

.message-time {
  font-size: 10px;
  color: rgba(0,0,0,0.4);
  text-align: right;
  margin-top: 3px;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 16px;
  background: var(--white);
  border-top: 1px solid var(--divider);
}

.chat-input {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--input-border);
  border-radius: 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
}

.chat-input:focus { border-color: var(--primary); }

.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.15s;
}

.chat-send-btn:active { transform: scale(0.9); }

.chat-icon-btn {
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  color: var(--text-description);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.chat-icon-btn:hover { background: var(--smoked-white); }

.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-description);
}

.chat-empty-icon { font-size: 64px; opacity: 0.3; }

/* ============ PROFILE ============ */
.profile-page {
  max-width: 700px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.profile-info { flex: 1; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-subtitle { font-size: 13px; color: var(--text-description); }

.profile-completion {
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  margin-bottom: 20px;
}

.completion-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.completion-label { font-size: 14px; font-weight: 600; }
.completion-percent { font-size: 14px; font-weight: 700; color: var(--primary); }

.completion-bar {
  width: 100%; height: 6px;
  background: var(--divider);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.completion-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.5s;
}

.completion-tip { font-size: 13px; color: var(--text-description); }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.quick-action:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.quick-action-icon { font-size: 24px; color: var(--primary); }
.quick-action-label { font-size: 11px; font-weight: 500; text-align: center; }

.content-links { margin-bottom: 20px; }

.content-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.content-link:hover { background: var(--smoked-white); }
.content-link-text { font-size: 14px; font-weight: 500; }
.content-link-arrow { color: var(--text-description); font-size: 18px; }

.upgrade-card {
  padding: 28px;
  background: linear-gradient(135deg, #06A2FF 0%, #0580CC 100%);
  border-radius: 16px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.upgrade-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.upgrade-desc { font-size: 13px; opacity: 0.9; margin-bottom: 18px; }

/* ============ CARDS (Questions, Jobs, Marketplace) ============ */
.card {
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  padding: 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.card-subtitle { font-size: 13px; color: var(--text-description); margin-bottom: 10px; }
.card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-description); align-items: center; }

.card-meta-author {
  display: flex; align-items: center; gap: 6px;
}

.card-meta-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
}

.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.marketplace-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.marketplace-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.marketplace-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-description);
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-description);
  background: var(--white);
  border: 1px solid var(--divider);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-chip:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ============ SETTINGS ============ */
.settings-list {
  max-width: 600px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.settings-item:hover { background: var(--smoked-white); }
.settings-icon { font-size: 22px; color: var(--primary); }
.settings-label { flex: 1; font-size: 14px; font-weight: 500; }
.settings-arrow { color: var(--text-description); font-size: 18px; }

/* ============ DISCOVERY SETTINGS ============ */
.settings-card {
  max-width: 600px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 0.5px solid var(--divider);
  margin-bottom: 16px;
}

.setting-section { margin-bottom: 24px; }
.setting-section:last-child { margin-bottom: 0; }
.setting-section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.setting-value { font-size: 14px; font-weight: 600; color: var(--primary); }

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle {
  position: relative;
  width: 48px; height: 28px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--grey);
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}

.toggle:checked { background: var(--primary); }

.toggle::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.toggle:checked::before { transform: translateX(20px); }

/* ============ PROFILE VIEW ============ */
.profile-view-container {
  max-width: 700px;
  margin: 0 auto;
}

.profile-view-hero {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-view-hero-img {
  width: 100%; height: 100%; object-fit: cover;
}

.profile-view-hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.profile-view-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  color: white;
}

.profile-view-hero-name { font-size: 30px; font-weight: 700; }

.profile-view-section {
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--divider);
  padding: 24px;
  margin-bottom: 16px;
}

.profile-view-section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.faith-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--divider);
}

.faith-detail:last-child { border-bottom: none; }
.faith-detail-icon { font-size: 20px; color: var(--primary); }
.faith-detail-value { font-weight: 600; }

/* ============ DIALOGS ============ */
.dialog-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.dialog-overlay.active { display: flex; }

.dialog {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.dialog-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.dialog-content { font-size: 14px; color: var(--text-description); margin-bottom: 24px; line-height: 1.5; }
.dialog-actions { display: flex; gap: 12px; justify-content: center; }

/* ============ PLACEHOLDERS ============ */
.placeholder-img {
  background: linear-gradient(135deg, #E8D5B7 0%, #D4A574 30%, #C2956C 60%, #E8D5B7 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
}

.placeholder-img-2 { background: linear-gradient(135deg, #B8C6D4 0%, #8FA4B8 30%, #7A93A9 60%, #B8C6D4 100%); }
.placeholder-img-3 { background: linear-gradient(135deg, #D4C5E0 0%, #B09CC4 30%, #9E8AB5 60%, #D4C5E0 100%); }
.placeholder-img-4 { background: linear-gradient(135deg, #C5D8C5 0%, #9DB89D 30%, #8AAE8A 60%, #C5D8C5 100%); }

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-desc { color: var(--text-description); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-12 { font-size: 12px; }
.fs-14 { font-size: 14px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ============ MOBILE NAV (bottom bar, hidden on desktop) ============ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 8px 16px;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  background: var(--white);
  border-top: 1px solid var(--divider);
  z-index: 100;
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
}

.mobile-nav-item.active .mobile-nav-icon {
  background: var(--primary);
  color: var(--white);
}

.mobile-nav-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--grey);
  transition: all 0.2s;
}

.mobile-nav-label {
  font-size: 10px;
  color: var(--grey);
}

.mobile-nav-item.active .mobile-nav-label { color: var(--primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-nav { display: block; }

  .topbar {
    padding: 0 16px;
    height: 56px;
  }

  .topbar-title { font-size: 18px; }

  .content {
    padding: 16px;
    padding-bottom: 80px;
  }

  .discover-layout {
    flex-direction: column;
    align-items: center;
  }

  .discover-card-area {
    flex: none;
    width: 100%;
    max-width: 380px;
  }

  .profile-card {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4.2;
    max-height: calc(100vh - 280px);
  }

  .discover-sidebar { display: none; }

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

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

  .chat-layout {
    margin: -16px;
    height: calc(100vh - 56px - 60px);
  }

  .chat-list-panel {
    width: 100%;
  }

  .chat-detail-panel.hidden-mobile { display: none; }
  .chat-list-panel.hidden-mobile { display: none; }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .settings-card { padding: 16px; }

  .profile-view-hero { height: 300px; border-radius: 0; margin: -16px -16px 16px; width: calc(100% + 32px); }
}

@media (max-width: 480px) {
  .explore-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .explore-tile { padding: 18px 12px; }

  .like-card { aspect-ratio: 3/4; }
  
  .login-footer {
 
  font-size: 12px !important;
  
}
}


 .login-page {
      position: relative;
    }

.login-footer {
  background-color: #f7f5f9;
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted, #888);
  padding: 5px;
}

.login-footer p {
  margin: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.login-footer a {
  color: var(--primary, #3b82f6);
  text-decoration: none;
}

.login-footer img {
  height: 16px;
}


.app-footer {
  width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted, #888);
  border-top: 1px solid var(--divider, #e5e5e5);
  background: var(--surface, #fff);
}

.app-footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.app-footer a {
  color: var(--primary, #3b82f6);
  text-decoration: none;
}

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

.app-footer img {
  height: 18px;
  margin-left: 6px;
}


.w-color {
    color: transparent;
    font-size: 5px;
    
}
.catholic {
    display:none !important;
}