/* =============================================
   T.C.R — TRUSTED CONNECTIONS OF ROSEVILLE
   Global Styles — Dark, Neon, Premium Business
   ============================================= */

:root {
  --teal: #00e5cc;
  --teal-dim: #00b8a3;
  --teal-dark: #007a6d;
  --purple: #1a6cff;
  --purple-dim: #1250cc;
  --purple-dark: #0d3a99;
  --dark: #04070f;
  --dark2: #0d1628;
  --dark3: #172038;
  --dark4: #1f2d4a;
  --dark5: #2a3d60;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --nav-h: 80px;
  --radius: 12px;
  --radius-lg: 20px;
  --cobalt: #1a6cff;
  --cobalt-dim: #1250cc;
  --shadow-teal: 0 0 18px rgba(0,229,204,0.09);
  --shadow-purple: 0 0 18px rgba(26,108,255,0.09);
  --shadow-cobalt: 0 0 18px rgba(26,108,255,0.25);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text-primary);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--purple); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.neon-teal {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(0,229,204,0.25);
}
.neon-purple {
  color: var(--purple);
  text-shadow: 0 0 12px rgba(26,108,255,0.35);
}
.teal-text { color: var(--teal); }
.purple-text { color: var(--purple); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0,229,204,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00fff0, var(--teal));
  box-shadow: 0 0 24px rgba(0,229,204,0.28);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: rgba(0,229,204,0.30);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 2px solid rgba(0,229,204,0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0,229,204,0.18);
  text-shadow: none;
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,229,204,0.18);
  box-shadow: 0 0 28px rgba(0,229,204,0.7), 0 0 10px rgba(0,229,204,0.4), inset 0 0 12px rgba(0,229,204,0.08);
  text-shadow: 0 0 10px rgba(0,229,204,0.8);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
  background: #000000;
}
.navbar.scrolled {
  background: #000000;
  border-bottom: none;
  box-shadow: none;
  animation: navFlash 0.75s ease-out forwards;
}
.navbar.menu-open {
  background: rgba(6,10,18,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid #1a6fff;
  box-shadow: 0 4px 24px rgba(26,111,255,0.55), 0 1px 0 rgba(26,111,255,0.3);
}
@keyframes navFlash {
  0%   { box-shadow: 0 0 0px 0px rgba(26,111,255,0), 0 2px 32px 6px rgba(26,111,255,0.85); border-bottom: 2px solid rgba(26,111,255,0.9); }
  40%  { box-shadow: 0 0 0px 0px rgba(26,111,255,0), 0 2px 48px 8px rgba(26,111,255,0.6); border-bottom: 2px solid rgba(26,111,255,0.5); }
  100% { box-shadow: none; border-bottom: 2px solid transparent; }
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  overflow: visible;
}
.nav-logo-icon {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  top: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin-left: 10px;
}
.logo-tcr {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--teal);
  line-height: 1;
}
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-mark {
  font-size: 0.2em !important;
  font-weight: 700 !important;
  vertical-align: super;
  letter-spacing: 0;
  line-height: 1;
  display: inline-block;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--teal); }
.nav-link.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--dark);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 700;
}
.nav-link.nav-cta:hover { color: var(--dark); box-shadow: 0 0 28px rgba(0,229,204,0.7); }
.nav-link.nav-admin { color: var(--purple); }
.nav-link.nav-admin:hover { color: #6aabff; }
.nav-link.nav-user { color: var(--teal); font-size: 0.85rem; cursor: pointer; }
.nav-link.nav-logout { color: var(--text-muted); font-size: 0.85rem; }
.nav-link.nav-logout:hover { color: #f87171; }

/* Members nav dropdown */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1a1a2e;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  min-width: 170px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
  padding: 0.35rem 0;
  margin: 0;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown li {
  list-style: none;
}
.nav-dropdown .nav-link {
  display: block;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  font-size: 0.88rem;
}
.nav-dropdown .nav-link:hover {
  background: rgba(0,229,204,0.08);
  color: var(--teal);
}

/* User profile dropdown */
.user-profile-wrap { position: relative; display: flex; align-items: center; }
.user-profile-btn { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; color: var(--teal); font-size: 0.85rem; padding: 0.4rem 0.6rem; border-radius: 6px; transition: background 0.2s; user-select: none; }
.user-profile-btn:hover { background: rgba(0,229,204,0.1); }
.user-profile-btn .user-chevron { font-size: 0.65rem; transition: transform 0.2s; opacity: 0.7; }
.user-profile-wrap.open .user-chevron { transform: rotate(180deg); }
.user-profile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #1a1a2e; border: 1px solid var(--glass-border); border-radius: 10px; min-width: 180px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 9999; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s; }
.user-profile-wrap.open .user-profile-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.user-profile-dropdown .upd-header { padding: 0.75rem 1rem 0.5rem; border-bottom: 1px solid var(--glass-border); }
.user-profile-dropdown .upd-email { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.user-profile-dropdown a, .user-profile-dropdown button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.65rem 1rem; font-size: 0.85rem; color: var(--text-light); text-decoration: none; background: none; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; text-align: left; }
.user-profile-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--teal); }
.user-profile-dropdown .upd-logout { color: var(--text-muted) !important; border-top: 1px solid var(--glass-border); margin-top: 2px; }
.user-profile-dropdown .upd-logout:hover { background: rgba(248,113,113,0.1) !important; color: #f87171 !important; }
.nav-link.nav-facebook { display: flex; align-items: center; padding: 0.4rem 0.5rem; }
.nav-link.nav-facebook svg { display: block; }
.nav-link.nav-facebook:hover { color: #1877f2; }

/* =============================================
   AUTH MODAL
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--dark2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), var(--shadow-teal);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(-20px) scale(0.97); }
  to { opacity:1; transform:translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--dark4); }

.modal-header { text-align: center; margin-bottom: 1.75rem; }
.modal-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  text-shadow: 0 0 12px rgba(0,229,204,0.3);
  margin-bottom: 0.5rem;
}
.modal-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-header p { color: var(--text-muted); font-size: 0.9rem; }

.modal-switch { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }

/* Event Detail Modal */
.event-detail-modal-box {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}
.event-modal-header {
  margin-bottom: 1.25rem;
}
.event-modal-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0 0;
}
.event-modal-meta {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.event-modal-meta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.3rem 0;
}
.event-modal-meta strong {
  color: var(--text-primary);
}
.event-modal-desc {
  margin-bottom: 1rem;
}
.event-modal-desc p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.event-modal-photos {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.event-modal-photo {
  width: calc(50% - 0.375rem);
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 220px;
  border: 1px solid var(--glass-border);
}
@media (max-width: 480px) {
  .event-modal-photo { width: 100%; }
  .event-detail-modal-box { padding: 1.5rem 1rem; }
}
.modal-switch a { color: var(--teal); font-weight: 600; }
.modal-switch a:hover { color: var(--purple); }

.forgot-link { display: block; text-align: center; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.forgot-link:hover { color: var(--teal); }

.otp-msg { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.spam-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }

.modal-profile { max-width: 700px; max-height: 90vh; overflow-y: auto; }

/* Profile Modal Content */
.profile-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.25rem;
}
.profile-logo {
  max-width: 373px;
  max-height: 211px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.25rem;
}
.profile-photo {
  width: 113px;
  height: 113px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  flex-shrink: 0;
}
.profile-photo-placeholder {
  width: 113px;
  height: 113px;
  border-radius: 50%;
  background: var(--dark3);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-header-info { flex: 1; min-width: 0; }
.profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.profile-title {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.profile-biz {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.profile-section {
  padding: 0 1.5rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.25rem;
}
.profile-section:last-child { border-bottom: none; margin-bottom: 0; }
.profile-section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.profile-section-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.profile-services {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.profile-services strong {
  font-weight: 700;
  color: #c9a84c;
}
.profile-section .biz-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.biz-gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.biz-gallery-img:hover { border-color: var(--teal); transform: scale(1.03); }
.profile-links.popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.5rem;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: var(--dark3);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.profile-link:hover { border-color: var(--teal); background: rgba(0,229,204,0.08); color: var(--text-primary); }

/* =============================================
   FORMS
   ============================================= */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(0,229,204,0.35);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  box-shadow: 0 0 12px rgba(0,229,204,0.12), inset 0 0 8px rgba(0,229,204,0.04);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0,229,204,0.3), 0 0 0 3px rgba(0,229,204,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: var(--dark3); }
.form-group small { display:block; color: var(--text-muted); font-size:0.8rem; margin-top:0.3rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.full-width { grid-column: 1 / -1; }

.required { color: var(--teal); }

.form-error {
  color: #f87171;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  min-height: 1.2rem;
}
.form-success {
  text-align: center;
  padding: 2rem;
  background: rgba(0,229,204,0.06);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: var(--radius);
}
.success-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--dark);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
}
.form-success h3 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--teal); }
.form-success p { color: var(--text-secondary); }

.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center; }
.form-submit-wrap { text-align: center; margin-top: 1rem; }

/* =============================================
   BUSINESS CATEGORIES
   ============================================= */
.categories-section {
  padding: 6rem 0;
  background: var(--dark3);
}
.categories-section .section-label,
.categories-section .section-title {
  text-align: center;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: auto;
}
.categories-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.cat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}
.cat-card.filled {
  background: rgba(0,229,204,0.09);
  border-color: rgba(0,229,204,0.45);
  box-shadow: inset 0 0 30px rgba(0,229,204,0.06), 0 2px 12px rgba(0,0,0,0.3);
}
.cat-card.open {
  background: rgba(26,108,255,0.1);
  border-color: rgba(26,108,255,0.4);
  box-shadow: inset 0 0 30px rgba(26,108,255,0.05), 0 2px 12px rgba(0,0,0,0.3);
  opacity: 0.82;
}
.cat-card.open:hover {
  opacity: 1;
  border-color: rgba(26,108,255,0.7);
  transform: translateY(-3px);
  box-shadow: 0 0 55px rgba(26,108,255,0.45), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(26,108,255,0.16);
}
.cat-card.filled:hover {
  border-color: rgba(0,229,204,0.75);
  transform: translateY(-3px);
  box-shadow: 0 0 55px rgba(0,229,204,0.45), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(0,229,204,0.14);
}
.cat-status {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}
.filled-badge {
  background: rgba(0,229,204,0.15);
  color: var(--teal);
  border: 1px solid rgba(0,229,204,0.3);
}
.open-badge {
  background: rgba(26,108,255,0.15);
  color: var(--purple);
  border: 1px solid rgba(26,108,255,0.3);
}
.cat-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 0.25rem;
}
.cat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.cat-icon svg { width: 100%; height: 100%; }
.cat-card.filled .cat-icon { color: var(--teal); }
.cat-card.open .cat-icon { color: var(--purple); }
.cat-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
  width: 100%;
}
.cat-card.filled h3 { color: #fff; }
.cat-card.open h3 { color: rgba(255,255,255,0.9); }
/* Thin divider below category name */
.cat-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0.75rem 0 0;
  flex-shrink: 0;
}
.cat-card.filled .cat-card-divider {
  background: rgba(0,229,204,0.25);
}
.cat-card.open .cat-card-divider {
  background: rgba(26,108,255,0.3);
}
/* Owner section — fixed height so names stay at same vertical position */
.cat-card-owner-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  padding-top: 0.5rem;
  min-height: 80px;
}
/* Company name label */
.cat-card-company-name {
  font-size: 0.99rem;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin-top: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 0.25rem;
  letter-spacing: 0.02em;
}
.cat-card {
  cursor: pointer;
}
.cat-card-owner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  width: 100%;
}
/* Rectangular logo for filled cards */
.cat-card-owner-logo {
  width: 100%;
  max-width: 130px;
  height: 44px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,229,204,0.2);
  padding: 3px 6px;
  display: block;
  margin: 0 auto;
}
/* Initials placeholder (no logo uploaded) */
.cat-card-owner-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(0,229,204,0.35);
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
}
.cat-card-owner-img.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(0,229,204,0.1);
  border: 1px solid rgba(0,229,204,0.3);
}
.cat-card-owner-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  display: none;
}

/* CATEGORY DESCRIPTION MODAL */
.cat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cat-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cat-modal-box {
  background: var(--dark2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.cat-modal-overlay.active .cat-modal-box {
  transform: translateY(0);
}
.cat-modal-box.filled-modal {
  border-color: rgba(0,229,204,0.35);
  box-shadow: 0 0 40px rgba(0,229,204,0.12);
  max-width: 480px;
}
.cat-modal-box.open-modal {
  border-color: rgba(26,108,255,0.35);
  box-shadow: 0 0 40px rgba(26,108,255,0.12);
}
.cat-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.cat-modal-close:hover { color: var(--text-primary); }
.cat-modal-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-modal-box.filled-modal .cat-modal-icon { color: var(--teal); }
.cat-modal-box.open-modal .cat-modal-icon { color: var(--purple); }
.cat-modal-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.cat-modal-box.filled-modal .cat-modal-status {
  background: rgba(0,229,204,0.15);
  color: var(--teal);
  border: 1px solid rgba(0,229,204,0.3);
}
.cat-modal-box.open-modal .cat-modal-status {
  background: rgba(26,108,255,0.15);
  color: var(--purple);
  border: 1px solid rgba(26,108,255,0.3);
}
.cat-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 2rem 0.75rem 0;
}
.cat-modal-box.filled-modal .cat-modal-title {
  margin-bottom: 0.65rem;
}
.cat-modal-desc {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.9rem;
  margin: 0;
}
.cat-modal-owner {
  margin-top: 0.65rem;
  padding: 0.8rem 0.95rem;
  background: rgba(20, 184, 166, 0.08);
  border-left: 3px solid var(--neon-teal, #14b8a6);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cat-modal-box.filled-modal .cat-modal-owner {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-left: 0;
}
.cat-modal-owner-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cat-modal-owner .owner-label {
  font-weight: 600;
  color: var(--neon-teal, #14b8a6);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.cat-modal-member-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0;
}
.cat-modal-member-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-teal, #14b8a6);
  flex-shrink: 0;
}
.cat-modal-member-photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  border: 2px solid var(--neon-teal, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neon-teal, #14b8a6);
}
.cat-modal-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cat-modal-member-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary, #fff);
}
.cat-modal-member-title {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
}
.cat-modal-member-biz {
  font-size: 0.88rem;
  color: var(--neon-teal, #14b8a6);
  font-weight: 500;
}
.cat-modal-cta {
  margin-top: 1.5rem;
}

/* Company logo in category modal */
.cat-modal-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.cat-modal-company-logo {
  max-height: 97px;
  max-width: 292px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Short synopsis */
.cat-modal-synopsis {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0.65rem 0 0;
  white-space: pre-wrap;
}
.cat-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.cat-modal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0,229,204,0.25);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0,229,204,0.08);
}
.cat-modal-links a:hover {
  border-color: rgba(0,229,204,0.5);
  background: rgba(0,229,204,0.14);
}
.cat-modal-phone {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted, #aaa);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  cursor: default;
  user-select: text;
  letter-spacing: 0.02em;
}

/* Gallery thumbnails */
.cat-modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.cat-modal-gallery-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: opacity 0.2s;
}
.cat-modal-gallery-thumb:hover {
  opacity: 0.85;
}

/* Company Profile button in filled category modal */
.cat-modal-profile-btn-wrap {
  margin-top: 1rem;
  text-align: center;
}
.cat-modal-profile-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: var(--teal, #14b8a6);
  color: #0a0a0a;
  font-family: Montserrat, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.cat-modal-profile-btn:hover {
  background: var(--neon-teal, #00e5cc);
  transform: translateY(-1px);
}

/* Mobile optimizations for cat modal */
@media (max-width: 600px) {
  .cat-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .cat-modal-box {
    padding: 1.15rem 1rem;
    max-height: 78vh;
    max-height: 78svh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(100%);
    margin: 0;
  }
  .cat-modal-overlay.active .cat-modal-box {
    transform: translateY(0);
  }
  .cat-modal-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-modal-company-logo {
    max-height: 82px;
    max-width: 227px;
  }
  .cat-modal-member-photo {
    width: 48px;
    height: 48px;
  }
  .cat-modal-member-photo-placeholder {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 480px) {
  .cat-modal-box { padding: 1rem; }
}

/* =============================================
   LEADS PAGE
   ============================================= */
.leads-section {
  padding: 5rem 0;
  background: var(--dark);
}
.leads-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 1.25rem;
}
.prompt-icon {
  color: var(--teal);
  opacity: 0.7;
}
.leads-login-prompt h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.leads-login-prompt p {
  color: var(--text-secondary);
  max-width: 400px;
}
.leads-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.leads-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}
.leads-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}
.leads-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.leads-card-icon.teal-glow { color: var(--teal); border-color: rgba(0,229,204,0.3); }
.leads-card-icon.purple-glow { color: var(--purple); border-color: rgba(26,108,255,0.3); }
.leads-card-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}
.leads-card-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
.lead-form .form-group { margin-bottom: 1.25rem; }
.leads-list { display: flex; flex-direction: column; gap: 1rem; }
.leads-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.lead-item {
  background: var(--dark3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.lead-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.lead-contact-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.lead-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.status-new { background: rgba(0,229,204,0.15); color: var(--teal); border: 1px solid rgba(0,229,204,0.3); }
.status-progress { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.status-closed { background: rgba(100,116,139,0.15); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.3); }
.lead-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.lead-meta strong { color: var(--text-primary); }
.lead-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  line-height: 1.6;
}
.lead-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: right;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social-link:hover {
  color: #1877f2;
  border-color: #1877f2;
  background: rgba(24,119,242,0.1);
}
@media (max-width: 900px) {
  .leads-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.hero-fallback {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,10,18,0.85) 0%,
    rgba(6,10,18,0.6) 50%,
    rgba(26,108,255,0.2) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Scan lines removed for cleaner look */

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero center logo */
.hero-logo-wrap {
  margin: 0 auto 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  width: 190px;
  height: 190px;
  padding: 0;
  box-sizing: border-box;
}
.hero-center-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,120,255,0.55)) drop-shadow(0 0 6px rgba(255,255,255,0.2));
  border-radius: 0;
  animation: heroLogoGlow 3s ease-in-out infinite alternate;
}
@keyframes heroLogoGlow {
  from { filter: drop-shadow(0 0 14px rgba(0,120,255,0.5)) drop-shadow(0 0 4px rgba(255,255,255,0.15)); }
  to   { filter: drop-shadow(0 0 28px rgba(0,120,255,0.85)) drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
}

.hero-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,229,204,0.3);
  border-radius: 100px;
  padding: 0.35rem 1.2rem;
  margin-bottom: 0.4rem;
  background: rgba(0,229,204,0.08);
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
  animation: fadeInUp 0.9s ease 0.1s both;
}
.hero-tcr {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--teal);
  text-shadow: 0 0 12px rgba(0,229,204,0.25);
}
.hero-full {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #ffffff;
  line-height: 1.1;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  animation: fadeInUp 1.1s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--purple);
  border-radius: 12px;
  padding: 0.85rem 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1.2s ease 0.4s both;
}
.stat-item { text-align: center; padding: 0 1.75rem; }
.stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 2s ease 1s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity:1; }
  50% { transform: scaleY(0.6); opacity:0.5; }
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 1px solid var(--glass-border);
  margin-top: var(--nav-h);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,229,204,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(26,108,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}
.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   MISSION SECTION
   ============================================= */
.mission-section {
  padding: 6rem 0;
  background: var(--dark2);
}
.mission-section .section-title { text-align: center; }
.mission-section .section-label { text-align: center; }

/* GLOW BACKGROUND — Mission cards (existing), extended to all hover boxes */
/* Already handled by .mission-card:hover below */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mission-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: var(--transition);
}
.mission-card:hover::before { opacity: 1; }
.mission-card:hover {
  border-color: rgba(0,229,204,0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 55px rgba(0,229,204,0.42), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(0,229,204,0.06);
}
.mission-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.mission-card p { color: var(--text-secondary); font-size: 0.95rem; }

.mission-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.mission-icon svg { width: 26px; height: 26px; }
.teal-glow {
  background: rgba(0,229,204,0.1);
  border: 1px solid rgba(0,229,204,0.2);
  color: var(--teal);
}
.purple-glow {
  background: rgba(26,108,255,0.1);
  border: 1px solid rgba(26,108,255,0.2);
  color: var(--purple);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { padding: 6rem 0; background: var(--dark); }
.about-page-section { padding: 6rem 0; background: var(--dark3); margin-top: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 480px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}
.about-img:hover {
  transform: scale(1.04);
}
.about-img-badge {
  display: none; /* Est. badge removed per owner request */
}
.badge-num { font-size: 0.75rem; letter-spacing: 0.1em; }
.badge-year { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800; }

.about-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.about-body { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.value-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}
.value-pill.teal {
  background: rgba(0,229,204,0.1);
  border: 1px solid rgba(0,229,204,0.25);
  color: var(--teal);
}
.value-pill.purple {
  background: rgba(26,108,255,0.1);
  border: 1px solid rgba(26,108,255,0.25);
  color: var(--purple);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-section { padding: 6rem 0; background: var(--dark2); }
.how-section .section-title, .how-section .section-label { text-align: center; }

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
  padding: 1.5rem 0.5rem 1.5rem;
  overflow: visible;
}
.step-card {
  flex: 1;
  min-width: 180px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}
.step-card:hover::before { opacity: 1; }
.step-card:hover {
  border-color: rgba(0,229,204,0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 55px rgba(0,229,204,0.42), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(0,229,204,0.06);
  z-index: 2;
}
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--teal);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-card p { color: var(--text-secondary); font-size: 0.88rem; }
.step-arrow {
  font-size: 2rem;
  color: var(--teal);
  padding: 0 0.5rem;
  flex-shrink: 0;
  opacity: 0.4;
}

/* =============================================
   APPLICATION FORM
   ============================================= */
.apply-section {
  padding: 6rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.apply-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,108,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.apply-header { text-align: center; margin-bottom: 3rem; }
.apply-sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.apply-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow:
    0 0 20px 6px rgba(0, 100, 255, 0.5),
    0 0 60px 18px rgba(0, 100, 255, 0.35),
    0 0 120px 40px rgba(0, 100, 255, 0.2),
    0 0 200px 80px rgba(0, 100, 255, 0.1),
    0 30px 60px rgba(0,0,0,0.5);
}

/* =============================================
   PRE-CATEGORIES PHOTO BANNER
   ============================================= */
.pre-categories-banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  line-height: 0;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.pre-categories-banner-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* =============================================
   EVENT PHOTO BANNER
   ============================================= */
.event-photo-banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  line-height: 0;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.event-banner-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* =============================================
   APPLY FOR MEMBERSHIP PHOTO BANNER
   ============================================= */
.apply-photo-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  line-height: 0;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.apply-banner-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* =============================================
   EVENTS PREVIEW
   ============================================= */
.events-preview-section { padding: 6rem 0; background: var(--dark3); }
.events-preview-section .section-title,
.events-preview-section .section-label { text-align: center; }

.events-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.event-card-preview {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}
.event-card-preview:hover {
  border-color: rgba(0,229,204,0.4);
  transform: translateY(-3px);
  box-shadow: 0 0 55px rgba(0,229,204,0.42), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(0,229,204,0.05);
}
.event-date-block {
  flex-shrink: 0;
  text-align: center;
  background: rgba(0,229,204,0.08);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-width: 56px;
}
.event-month {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.event-day {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.event-card-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.event-card-info p { color: var(--text-muted); font-size: 0.85rem; }
.event-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
}
.event-type-badge.meeting { background: rgba(0,229,204,0.1); color: var(--teal); border: 1px solid rgba(0,229,204,0.25); }
.event-type-badge.mixer { background: rgba(26,108,255,0.1); color: var(--purple); border: 1px solid rgba(26,108,255,0.25); }
.event-type-badge.workshop { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.event-type-badge.community { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
.event-type-badge.special { background: rgba(249,115,22,0.1); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }

.center-cta { text-align: center; margin-top: 1rem; }
.events-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.events-cta-row .btn-outline { margin: 0; }

/* ── ADMIN INBOX TYPE COLORS ── */
.inbox-row-application { background: rgba(0,229,204,0.07) !important; border-left: 3px solid rgba(0,229,204,0.5); }
.inbox-row-dm { background: rgba(155,93,229,0.08) !important; border-left: 3px solid rgba(155,93,229,0.5); }
.inbox-row-referral { background: rgba(249,115,22,0.07) !important; border-left: 3px solid rgba(249,115,22,0.5); }
.inbox-row-newsletter { background: rgba(34,197,94,0.07) !important; border-left: 3px solid rgba(34,197,94,0.5); }
.inbox-row-contact { background: rgba(59,130,246,0.07) !important; border-left: 3px solid rgba(59,130,246,0.5); }
.inbox-row-visitor { background: rgba(251,191,36,0.07) !important; border-left: 3px solid rgba(251,191,36,0.5); }
.inbox-type-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; margin-left:6px; vertical-align:middle; }
.inbox-type-badge.application { background:rgba(0,229,204,0.15); color:var(--teal); }
.inbox-type-badge.dm { background:rgba(155,93,229,0.15); color:#9b5de5; }
.inbox-type-badge.referral { background:rgba(249,115,22,0.15); color:#f97316; }
.inbox-type-badge.newsletter { background:rgba(34,197,94,0.15); color:#22c55e; }
.inbox-type-badge.contact { background:rgba(59,130,246,0.15); color:#3b82f6; }
.inbox-type-badge.visitor { background:rgba(251,191,36,0.15); color:#fbbf24; }
.inbox-legend { display:flex; flex-wrap:wrap; gap:0.5rem 1.2rem; margin-bottom:1.2rem; padding:0.75rem 1rem; background:rgba(255,255,255,0.03); border-radius:8px; border:1px solid rgba(255,255,255,0.06); }
.inbox-legend-item { display:flex; align-items:center; gap:0.4rem; font-size:0.78rem; color:var(--text-muted); }
.inbox-legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }

/* =============================================
   LOADING
   ============================================= */
.loading-spinner {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 3rem;
}
.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}

/* =============================================
   MEMBERS PAGE
   ============================================= */
.members-section { padding: 4rem 0 6rem; }

.members-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.search-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(0,229,204,0.35);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 0 12px rgba(0,229,204,0.12), inset 0 0 8px rgba(0,229,204,0.04);
}
.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0,229,204,0.3), 0 0 0 3px rgba(0,229,204,0.12);
}
.search-input::placeholder { color: var(--text-muted); }

.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active {
  background: rgba(0,229,204,0.1);
  border-color: rgba(0,229,204,0.3);
  color: var(--teal);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  overflow: visible;
  cursor: default;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.member-card:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}
.member-card.featured {
  border: none;
}

/* ── Outer wrapper: groups photo + info inside one glowing border ── */
.member-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: calc(var(--radius) + 4px);
  padding: 0.6rem;
  border: 1.5px solid rgba(0, 229, 204, 0.6);
  box-shadow: 0 0 14px rgba(0, 229, 204, 0.35), 0 0 30px rgba(0, 229, 204, 0.15), inset 0 0 8px rgba(0, 229, 204, 0.04);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}
.member-card-inner:hover {
  box-shadow: 0 0 22px rgba(0, 229, 204, 0.6), 0 0 50px rgba(0, 229, 204, 0.25), inset 0 0 12px rgba(0, 229, 204, 0.06);
  border-color: rgba(0, 229, 204, 0.9);
  transform: translateY(-4px);
}

/* ── Alternating teal / blue outer glow borders ── */
/* Odd cards (1, 3, 5…) → teal */
.members-grid .member-card:nth-child(odd) .member-card-inner {
  border-color: rgba(0, 229, 204, 0.6);
  box-shadow: 0 0 14px rgba(0, 229, 204, 0.35), 0 0 30px rgba(0, 229, 204, 0.15);
}
.members-grid .member-card:nth-child(odd) .member-card-inner:hover {
  border-color: rgba(0, 229, 204, 0.95);
  box-shadow: 0 0 22px rgba(0, 229, 204, 0.65), 0 0 55px rgba(0, 229, 204, 0.28);
}
/* Even cards (2, 4, 6…) → blue */
.members-grid .member-card:nth-child(even) .member-card-inner {
  border-color: rgba(56, 152, 236, 0.65);
  box-shadow: 0 0 14px rgba(56, 152, 236, 0.35), 0 0 30px rgba(56, 152, 236, 0.15);
}
.members-grid .member-card:nth-child(even) .member-card-inner:hover {
  border-color: rgba(56, 152, 236, 1);
  box-shadow: 0 0 22px rgba(56, 152, 236, 0.65), 0 0 55px rgba(56, 152, 236, 0.28);
}
.member-card.featured .member-photo-wrap::before {
  content: 'Featured';
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--dark);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  z-index: 10;
  pointer-events: none;
}

.member-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  min-height: 240px;
  overflow: hidden;
  background: var(--dark3);
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.member-photo-wrap:hover {
  transform: none;
  box-shadow: none;
}
.member-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.member-photo-wrap:hover .member-photo { transform: scale(1.06); }

.member-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark3), var(--dark4));
}
.member-initials {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.7;
}

.member-info {
  padding: 1.25rem;
  background: var(--glass);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.member-info:hover {
  background: rgba(0,229,204,0.05);
}
.member-biz {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.member-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  color: var(--text-primary);
}
.member-title { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.3rem; }
.member-industry-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(26,108,255,0.1);
  border: 1px solid rgba(26,108,255,0.2);
  color: var(--purple);
}

.member-card-blurb {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 0.65rem;
}

/* PROFILE MODAL */
.profile-content { padding: 0.5rem; }
.profile-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}
.profile-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(0,229,204,0.3);
  flex-shrink: 0;
}
.profile-photo-placeholder {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--dark3);
  border: 3px solid rgba(0,229,204,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-photo-placeholder .member-initials { font-size: 2rem; }
.profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.profile-title { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.profile-biz { color: var(--teal); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

.profile-section { margin-bottom: 1.5rem; }
.profile-section h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.profile-section p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.profile-services { list-style: none; }
.profile-services li {
  padding: 0.4rem 0;
  color: #c9a84c;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 0.5rem;
}
.profile-services li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Popup contact row */
.popup-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0.25rem;
}
.popup-contact-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(0,229,204,0.25);
  border-radius: 6px;
  background: rgba(0,229,204,0.06);
  transition: var(--transition);
  text-decoration: none;
}
.popup-contact-item:hover { background: rgba(0,229,204,0.14); color: var(--teal); }
.popup-company { color: var(--text-primary); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); font-weight: 700; }
.popup-dm-btn { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.35); color: #c9a84c; }
.popup-dm-btn:hover { background: rgba(201,168,76,0.22); color: #c9a84c; }

/* Card blurb */
.profile-card-blurb {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0;
}
.profile-blurb-text {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.profile-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.profile-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0,229,204,0.25);
  border-radius: 6px;
  background: rgba(0,229,204,0.06);
  transition: var(--transition);
}
.profile-link:hover {
  background: rgba(0,229,204,0.12);
  color: var(--teal);
}

/* =============================================
   EVENTS PAGE
   ============================================= */
.events-section { padding: 4rem 0 6rem; }

.events-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* CALENDAR */
.calendar-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-month-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}
.cal-nav {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 34px; height: 34px;
  border-radius: 6px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cal-nav:hover { border-color: var(--teal); color: var(--teal); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-label {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0;
}
.cal-days-container {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 0.25rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: default;
  position: relative;
  transition: var(--transition);
}
.cal-day.other-month { color: var(--text-muted); opacity: 0.4; }
.cal-day.today {
  background: rgba(0,229,204,0.1);
  border: 1px solid rgba(0,229,204,0.3);
  color: var(--teal);
  font-weight: 700;
}
.cal-day.has-event { cursor: pointer; }
.cal-day.has-event:hover {
  background: rgba(0,229,204,0.08);
  color: var(--text-primary);
}
.cal-day.has-event.selected {
  background: var(--teal);
  color: var(--dark);
  font-weight: 700;
}
.event-dot-row {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  position: absolute;
  bottom: 3px;
}
.event-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
}
.event-dot.meeting { background: var(--teal); }
.event-dot.mixer { background: var(--purple); }
.event-dot.workshop { background: #fbbf24; }
.event-dot.community { background: #34d399; }
.event-dot.special { background: #f97316; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.75rem;
  color: var(--text-muted);
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}
.event-meeting { background: var(--teal); }
.event-mixer { background: var(--purple); }
.event-workshop { background: #fbbf24; }
.event-community { background: #34d399; }

/* EVENTS LIST */
.events-list-wrap { flex: 1; }
.events-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.events-list { display: flex; flex-direction: column; gap: 1rem; }

.event-list-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
  cursor: default;
}
.event-list-card:hover {
  border-color: rgba(0,229,204,0.4);
  transform: translateX(4px);
  box-shadow: 0 0 55px rgba(0,229,204,0.42), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(0,229,204,0.05);
}
.event-list-date {
  flex-shrink: 0;
  text-align: center;
  background: rgba(0,229,204,0.06);
  border: 1px solid rgba(0,229,204,0.15);
  border-radius: 8px;
  padding: 0.75rem;
  min-width: 66px;
}
.event-list-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.3rem 0 0.4rem;
}
.event-list-info p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.25rem; }
.event-rsvp-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid rgba(0,229,204,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
}
.event-rsvp-link:hover { background: rgba(0,229,204,0.1); color: var(--teal); }

/* =============================================
   VALUES SECTION (About page)
   ============================================= */
.values-section { padding: 6rem 0; background: var(--dark); }
.values-section .section-label, .values-section .section-title { text-align: center; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.value-card:hover {
  border-color: rgba(26,108,255,0.45);
  transform: translateY(-4px);
  box-shadow: 0 0 55px rgba(26,108,255,0.45), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(26,108,255,0.06);
}
.value-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.value-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* =============================================
   LEADERSHIP (About page)
   ============================================= */
.leadership-section { padding: 6rem 0; background: var(--dark2); }
.leadership-section .section-label, .leadership-section .section-title { text-align: center; }
.leadership-intro { text-align: center; color: var(--text-secondary); max-width: 560px; margin: 0 auto 3rem; }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.leader-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.leader-card:hover {
  border-color: rgba(0,229,204,0.45);
  transform: translateY(-4px);
  box-shadow: 0 0 55px rgba(0,229,204,0.42), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(0,229,204,0.05);
}
.leader-img-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
}
.leader-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}
.leader-role-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 0.75rem auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}
.leader-role-badge.teal { background: linear-gradient(135deg, var(--teal), var(--teal-dim)); color: var(--dark); }
.leader-role-badge.purple { background: linear-gradient(135deg, var(--purple), var(--purple-dim)); color: #fff; }
.leader-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 1rem 0.2rem;
}
.leader-biz { color: var(--teal); font-size: 0.85rem; padding: 0 1rem 0.2rem; }
.leader-industry { color: var(--text-muted); font-size: 0.8rem; padding: 0 1rem 1rem; }

/* =============================================
   MEMBERSHIP SECTION (About page)
   ============================================= */
.membership-section { padding: 6rem 0; background: var(--dark2); }
.membership-section .section-label, .membership-section .section-title { text-align: center; }

.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
.membership-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.membership-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 1.5rem 0 0.75rem;
}
.membership-info p { color: var(--text-secondary); margin-bottom: 1rem; }
.meeting-list { list-style: none; }
.meeting-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 0.6rem;
}
.meeting-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.membership-cta-card {
  position: relative;
}
.cta-card-inner {
  background: linear-gradient(135deg, rgba(0,229,204,0.06) 0%, rgba(26,108,255,0.06) 100%);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.cta-glow-dot {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,229,204,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card-inner h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-card-inner p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.cta-features { margin-bottom: 1.75rem; }
.cta-feature {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.cta-feature::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: 4rem 0 6rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}
.contact-intro { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-detail h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-detail p { color: var(--text-primary); font-size: 0.95rem; margin: 0; }
.contact-detail a { color: var(--text-primary); }
.contact-detail a:hover { color: var(--teal); }
.contact-sub { color: var(--text-muted); font-size: 0.82rem; }
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; }

.contact-form-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #000000 url('images/trusted-connections-roseville-logo-pattern.jpg') center center / cover;
  border-top: none;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Cobalt blue glowing divider line at top of footer */
.site-footer::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--cobalt) 25%, #5b9fff 50%, var(--cobalt) 75%, transparent 100%);
  box-shadow: 0 0 12px 3px rgba(26,108,255,0.7), 0 0 30px 6px rgba(26,108,255,0.35), 0 0 60px 10px rgba(26,108,255,0.15);
  z-index: 2;
}
.site-footer::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 0;
}
.site-footer .container {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}
.footer-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-left: 0;
  text-align: center;
}
.footer-logo-img {
  display: block;
  width: 180px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.footer-slogan {
  font-family: 'Dancing Script', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--teal);
  text-shadow: 0 0 8px rgba(0,229,204,0.2), 0 1px 8px rgba(0,0,0,0.6);
  max-width: 200px;
  text-align: center;
}
.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  text-shadow: 0 0 12px rgba(0,229,204,0.25);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-desc { display: none; }
.footer-links h4, .footer-contact h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-contact a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--teal); }
.footer-contact p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.4rem; }

/* Facebook footer block */
.footer-facebook {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-fb-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-fb-link:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.footer-fb-link svg {
  width: 72px;
  height: 72px;
  display: block;
}

.footer-fb-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid rgba(0,229,204,0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =============================================
   ADMIN DASHBOARD
   ============================================= */
.admin-body { background: var(--dark); }
.admin-body .navbar { position: static; }

.admin-wrap {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--dark2);
  border-right: 1px solid var(--glass-border);
  padding: 2rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  text-shadow: 0 0 12px rgba(0,229,204,0.25);
  padding: 0 0.75rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--glass); color: var(--text-primary); }
.sidebar-link.active { background: rgba(0,229,204,0.1); color: var(--teal); border: 1px solid rgba(0,229,204,0.2); }
.sidebar-badge {
  margin-left: auto;
  background: var(--teal);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

.admin-main {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Categories Manager */
.categories-manager { max-width: 560px; }
.categories-add-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.categories-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.categories-input:focus { outline: none; border-color: var(--teal); }
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.categories-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.category-list-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.category-list-main strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.category-list-main span {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.categories-list li .cat-delete-btn {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.35);
  border-radius: 6px;
  cursor: pointer;
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  flex-shrink: 0;
}
.categories-list li .cat-delete-btn:hover:not(:disabled) {
  border-color: rgba(248,113,113,0.65);
  background: rgba(248,113,113,0.14);
}
.categories-list li .cat-delete-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* SMS Notification Manager */
.sms-manager { display: flex; flex-direction: column; gap: 2rem; }
.sms-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.sms-section-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.35rem; }
.sms-section-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1.25rem; }
.sms-add-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sms-recipients-list, .sms-triggers-list { margin-top: 0.5rem; }
.sms-recipient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 0.5rem;
  background: var(--bg-secondary);
  gap: 1rem;
}
.sms-recipient-info { display: flex; flex-direction: column; gap: 0.15rem; }
.sms-recipient-info strong { font-size: 0.9rem; color: var(--text-primary); }
.sms-phone { font-size: 0.8rem; color: var(--text-muted); }
.sms-trigger-summary { font-size: 0.78rem; color: var(--teal); margin-top: 0.15rem; display: block; }
.sms-recipient-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.btn-danger-sm {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.35);
  color: #f87171;
  border-radius: 5px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger-sm:hover { background: rgba(248,113,113,0.18); }
.btn-outline-sm {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-sm:hover { border-color: var(--teal); color: var(--teal); }
/* Toggle switch */
.sms-toggle { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.sms-toggle input { opacity: 0; width: 0; height: 0; }
.sms-toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.2s;
}
.sms-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.sms-toggle input:checked + .sms-toggle-slider { background: var(--teal); }
.sms-toggle input:checked + .sms-toggle-slider::before { transform: translateX(18px); }
/* Triggers */
.sms-triggers-ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sms-trigger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-secondary);
  gap: 1rem;
}
.sms-trigger-info { display: flex; flex-direction: column; gap: 0.15rem; }
.sms-trigger-info strong { font-size: 0.9rem; color: var(--text-primary); }
.sms-trigger-desc { font-size: 0.8rem; color: var(--text-muted); }
/* Test form */
.sms-test-form { display: flex; flex-direction: column; gap: 1rem; }

.panel-header {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.panel-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.panel-header p { color: var(--text-muted); font-size: 0.9rem; }

.admin-form-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.admin-form-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }

.admin-table-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: var(--dark3);
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table td strong { color: var(--text-primary); font-weight: 600; }

.table-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-table {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.btn-table.edit { border-color: rgba(0,229,204,0.3); color: var(--teal); }
.btn-table.edit:hover { background: rgba(0,229,204,0.1); }
.btn-table.delete { border-color: rgba(248,113,113,0.3); color: #f87171; }
.btn-table.delete:hover { background: rgba(248,113,113,0.1); }

body:not(.tcr-authenticated) a[href="leads.html"],
body:not(.tcr-authenticated) a[href="/leads"],
body:not(.tcr-authenticated) a[href="/leads.html"] {
  display: none !important;
}

/* =============================================
   BUSINESS GALLERY (Member Profile)
   ============================================= */
.biz-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.biz-gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.biz-gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 22px rgba(0,229,204,0.55);
}

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,229,204,0.2);
}
.gallery-lightbox-close {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: rgba(0,0,0,0.7);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  pointer-events: all;
}

/* Admin gallery upload fields */
.gallery-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.gallery-upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.gallery-upload-item label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.gallery-upload-item input[type="file"] {
  font-size: 0.82rem;
}
.gallery-upload-preview {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  display: none;
}
.gallery-upload-preview.visible { display: block; }
.gallery-remove-btn {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.25rem;
  align-self: flex-start;
}
.gallery-remove-btn:hover { background: #a93226; }

/* =============================================
   RESPONSIVE — see comprehensive mobile block below
   ============================================= */

/* =============================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   iOS (iPhone/iPad) + Android — All Breakpoints
   ============================================= */

/* ---- TABLET: 768px – 1024px ---- */
@media (max-width: 1024px) {
  /* Hero */
  .hero-logo-wrap { width: 160px; height: 160px; }
  .hero-content { max-width: 700px; padding: 90px 24px 24px; }
  .hero-full { font-size: clamp(1.8rem, 4vw, 3rem); }

  /* Events layout: stack calendar above list */
  .events-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calendar-wrap { position: static; }

  /* Membership grid */
  .membership-grid { grid-template-columns: 1fr; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 320px; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Admin layout */
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 2rem; }
}

/* ---- MOBILE: max 768px ---- */
@media (max-width: 768px) {
  /* Base spacing */
  :root { --nav-h: 64px; }

  /* Prevent horizontal overflow on all elements */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; box-sizing: border-box; }
  img, video, iframe, embed, object { max-width: 100%; height: auto; }
  .event-banner-img,
  .pre-categories-banner-img,
  .apply-banner-img { height: 100%; max-width: none; width: 100%; }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Section vertical padding reduction */
  .mission-section,
  .about-section,
  .about-page-section,
  .how-section,
  .apply-section,
  .categories-section,
  .events-preview-section,
  .values-section,
  .leadership-section,
  .membership-section {
    padding: 3.5rem 0;
  }
  .contact-section { padding: 2.5rem 0 4rem; }
  .events-section { padding: 2.5rem 0 4rem; }
  .members-section { padding: 2.5rem 0 4rem; }
  .site-footer { padding: 3rem 0 2rem; }

  /* Section typography */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 1.25rem; }
  .section-label { font-size: 0.65rem; letter-spacing: 0.2em; }

  /* ---- NAVBAR ---- */
  .navbar { height: var(--nav-h); -webkit-overflow-scrolling: touch; }
  .nav-container { padding: 0 16px; }
  .nav-logo-icon { height: 40px; }
  .logo-tcr { font-size: 1.1rem; }
  .logo-sub { font-size: 0.48rem; max-width: 150px; }
  .nav-toggle { display: flex; min-width: 44px; min-height: 44px; padding: 8px; touch-action: manipulation; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6,10,18,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 16px 1.5rem;
    gap: 0.2rem;
    align-items: flex-start;
    z-index: 999;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-dropdown-wrap { width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal);
    border-radius: 0;
    background: rgba(0,229,204,0.04);
    padding: 0;
    margin-left: 1rem;
  }
  .nav-dropdown .nav-link { font-size: 0.88rem; padding: 0.5rem 0.75rem; }

  /* User profile dropdown — full width on mobile */
  .user-profile-dropdown {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    border-top: 1px solid var(--glass-border);
  }

  /* ---- HERO ---- */
  .hero { height: auto; min-height: 100svh; min-height: -webkit-fill-available; }
  .hero-content {
    padding: calc(var(--nav-h) + 1.5rem) 16px 2rem;
    width: 100%;
    max-width: 100%;
  }
  .hero-logo-wrap { width: 130px; height: 130px; margin-bottom: 0.5rem; }
  .hero-center-logo { width: 100%; height: 100%; }
  .hero-title { gap: 0.15rem; margin-bottom: 0.5rem; }
  .hero-tcr { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .hero-full { font-size: clamp(1.4rem, 5.5vw, 2.2rem); }
  .hero-tagline { font-size: clamp(0.9rem, 3.5vw, 1.15rem); margin-bottom: 1rem; }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
    gap: 0.65rem;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
  .hero-stats { display: none; }
  .hero-scroll-indicator { display: none; }

  /* ---- PAGE HERO (inner pages) ---- */
  .page-hero { height: 200px; }
  .page-hero-content h1 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* ---- MISSION CARDS ---- */
  .mission-grid { grid-template-columns: 1fr; gap: 1rem; }
  .mission-card { padding: 1.5rem 1.25rem; }

  /* ---- ABOUT GRID ---- */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid.reverse { direction: ltr; }
  .about-img { height: 260px; border-radius: var(--radius); }

  /* ---- HOW / STEPS ---- */
  .steps-grid { flex-direction: column; align-items: stretch; padding: 0; }
  .step-card { min-width: unset; width: 100%; padding: 1.5rem 1.25rem; }
  .step-arrow { transform: rotate(90deg); align-self: center; }

  /* ---- MEMBERSHIP ---- */
  .membership-grid { grid-template-columns: 1fr; gap: 2rem; }
  .membership-cta-card .cta-card-inner { padding: 1.75rem 1.25rem; }

  /* ---- CATEGORIES ---- */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .cat-card { padding: 1rem 0.75rem; min-height: 200px; }
  .cat-card h3 { font-size: 0.82rem; }
  .cat-card-owner-logo { max-width: 110px; height: 38px; }
  .cat-icon { width: 46px; height: 46px; }
  .cat-card-owner-section { min-height: 72px; }
  .categories-intro { font-size: 0.9rem; }

  /* ---- APPLY FORM ---- */
  .apply-form { padding: 1.5rem 1rem; }
  .apply-section::before { display: none; }
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
  .form-group { margin-bottom: 0.85rem; }
  .form-group label { font-size: 0.85rem; }
  input, textarea, select {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    -webkit-appearance: none;
    border-radius: 6px;
    touch-action: manipulation;
  }
  input[type="file"] { font-size: 14px !important; max-width: 100%; }
  input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; }
  textarea { min-height: 100px; resize: vertical; }

  /* ---- EVENTS PREVIEW ---- */
  .events-preview-grid { grid-template-columns: 1fr; gap: 1rem; }
  .event-preview-card { padding: 1.25rem; }
  .events-cta-row { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .events-cta-row .btn-outline { text-align: center; }

  /* ---- EVENTS PAGE ---- */
  .events-layout { grid-template-columns: 1fr; gap: 2rem; }
  .calendar-wrap { position: static; padding: 1rem; }
  .cal-nav { width: 40px; height: 40px; min-width: 44px; min-height: 44px; }
  .calendar-grid { gap: 1px; }
  .cal-day { font-size: 0.78rem; min-height: 34px; }
  .events-list-wrap { width: 100%; }
  .event-list-item { padding: 1rem; }
  .event-list-date { min-width: 54px; padding: 0.6rem; }
  .event-list-date .event-day { font-size: 1.2rem; }

  /* ---- MEMBERS GRID ---- */
  .members-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .member-card { font-size: 0.9rem; }
  .member-photo-wrap { height: 200px; min-height: 200px; }
  .member-info { padding: 1rem; }
  .member-biz { font-size: 1.05rem; }
  .member-name { font-size: 0.88rem; }

  /* ---- VALUES / LEADERSHIP ---- */
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .value-card { padding: 1.5rem 1.25rem; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .leader-card { padding-bottom: 1rem; }

  /* ---- CONTACT ---- */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-card { padding: 1.5rem 1.25rem; }
  .contact-detail { gap: 1rem; }
  .map-wrap { margin-top: 1.5rem; }
  .map-wrap iframe { height: 220px; }

  /* ---- FOOTER ---- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; padding-left: 0; }
  .footer-slogan { font-size: 0.9rem; max-width: 100%; text-align: center; }
  .footer-logo-img { max-width: 120px; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; font-size: 0.8rem; }
  .footer-facebook { justify-content: center; }

  /* ---- AUTH MODAL ---- */
  .modal-overlay { padding: 0.75rem; align-items: flex-end; }
  .modal-box {
    width: 100%;
    max-width: 100%;
    max-height: 92svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.25rem 1.5rem;
  }
  .modal-header h2 { font-size: 1.3rem; }
  .modal-close { min-width: 44px; min-height: 44px; font-size: 1.5rem; }

  /* ---- CATEGORY MODAL ---- */
  .cat-modal-overlay { align-items: flex-end; padding: 0; }
  .cat-modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 2rem;
    max-height: 85svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cat-modal-close { min-width: 44px; min-height: 44px; }

  /* ---- EVENT DETAIL MODAL ---- */
  .event-detail-modal-box {
    width: 100%;
    max-width: 100%;
    max-height: 88svh;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    border-radius: 20px 20px 0 0;
  }
  .event-modal-photo { width: 100%; }

  /* ---- DEAL/NEWSLETTER MODAL ---- */
  .deal-modal-overlay { padding: 0; align-items: flex-end; }
  .deal-modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1rem 2rem;
    max-height: 90svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .deal-modal-inner { flex-direction: column; gap: 1rem; align-items: center; }
  .deal-modal-logo-col { flex: none; padding-top: 0; }
  .deal-modal-title { font-size: 1.1rem; }
  .deal-form-row { grid-template-columns: 1fr; }
  .deal-modal-close { min-width: 44px; min-height: 44px; width: 40px; height: 40px; }

  /* ---- LEADER BIO MODAL ---- */
  .leader-bio-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 2rem;
    max-height: 88svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .leader-bio-header { flex-direction: column; text-align: center; gap: 0.75rem; }
  .leader-bio-photo { width: 80px; height: 80px; }

  /* ---- ADMIN ---- */
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; overflow-y: visible; padding: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sidebar-logo { padding-bottom: 0.75rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .sidebar-link { padding: 0.5rem 0.75rem; font-size: 0.78rem; min-height: 44px; touch-action: manipulation; }
  .admin-main { padding: 1.25rem 1rem; }
  .admin-panel-card { padding: 1rem; }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .panel-header .btn-primary { width: 100%; text-align: center; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100vw; }
  .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 600px; }
  .admin-table th, .admin-table td { white-space: nowrap; padding: 0.65rem 0.75rem; font-size: 0.82rem; }
  .categories-add-row { flex-direction: column; gap: 0.5rem; }
  .categories-input { width: 100%; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-primary,
  .form-actions .btn-outline { width: 100%; text-align: center; }
  .sms-add-row { flex-direction: column; gap: 0.5rem; }
  .sms-add-row input { width: 100% !important; max-width: 100% !important; }

  /* ---- LEADS PAGE ---- */
  .leads-layout { grid-template-columns: 1fr; }
  .leads-section { padding: 2.5rem 0; }
  .lead-card { padding: 1rem; }

  /* ---- INBOX PAGE ---- */
  .inbox-section { padding: 2rem 0 4rem; }
  .inbox-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .inbox-message-row { flex-direction: column; gap: 0.5rem; }
  .inbox-message-meta { flex-wrap: wrap; gap: 0.35rem; }

  /* ---- PROFILE MODAL ---- */
  .profile-modal-box,
  .modal-box.modal-profile {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .profile-header { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
  .profile-links { justify-content: center; }

  /* ---- CHAT PAGE ---- */
  .chat-shell-inner { height: calc(100svh - var(--nav-h) - 40px); }

  /* ---- GALLERY ---- */
  .biz-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .gallery-upload-grid { grid-template-columns: 1fr; }

  /* ---- BUTTONS ---- */
  .btn-primary, .btn-outline {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .btn-large { padding: 0.9rem 1.75rem; font-size: 1rem; }
  .btn-table { min-height: 36px; min-width: 44px; touch-action: manipulation; }

  /* ---- FILTER TAGS ---- */
  .filter-tags { gap: 0.4rem; }
  .filter-tag { min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.82rem; }

  /* ---- GENERAL TOUCH TARGETS ---- */
  a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

  /* ---- LEADS PAGE ---- */
  .leads-filter-row { flex-wrap: wrap; gap: 0.5rem; }

  /* ---- MEMBER PROFILE MODAL ---- */
  .profile-modal-tabs { flex-wrap: wrap; gap: 0.35rem; }
  .profile-tab { min-height: 36px; font-size: 0.8rem; padding: 0.35rem 0.75rem; }

  /* ---- MAP EMBED ---- */
  .map-wrap iframe { width: 100%; border-radius: var(--radius); }

  /* ---- PREVENT LONG WORD OVERFLOW ---- */
  p, h1, h2, h3, h4, h5, h6, li, td, th, label, span {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ---- SMALL PHONES: max 480px ---- */
@media (max-width: 480px) {
  .hero-logo-wrap { width: 110px; height: 110px; }
  .hero-tcr { font-size: clamp(1.4rem, 8vw, 2rem); }
  .hero-full { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .hero-tagline { font-size: 0.9rem; }
  .hero-cta-group { max-width: 260px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .cat-card { padding: 0.85rem 0.6rem; min-height: 190px; }
  .cat-card h3 { font-size: 0.75rem; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-card-owner-logo { max-width: 95px; height: 32px; }
  .cat-card-owner-img, .cat-card-owner-img.placeholder { width: 36px; height: 36px; }
  .cat-card-owner-section { min-height: 65px; }
  .cat-card-company-name { font-size: 0.99rem; }

  .members-grid { grid-template-columns: 1fr; }
  .member-photo-wrap { height: 220px; min-height: 220px; }
  .leadership-grid { grid-template-columns: 1fr; }

  .section-title { font-size: clamp(1.4rem, 7vw, 1.9rem); }

  .apply-form { padding: 1.25rem 0.85rem; }
  .apply-section { padding: 2.5rem 0; }

  .admin-main { padding: 1rem 0.75rem; }
  .sidebar-link { font-size: 0.72rem; padding: 0.45rem 0.6rem; }

  .deal-modal-title { font-size: 1rem; }
  .deal-modal-desc { font-size: 0.82rem; }

  .footer-grid { gap: 1.5rem; }
  .footer-bottom { font-size: 0.75rem; }

  .page-hero { height: 170px; }
  .page-hero-content h1 { font-size: clamp(1.2rem, 7vw, 1.7rem); }

  .modal-box { padding: 1.5rem 1rem; }
  .cat-modal-box { padding: 1.25rem 1rem 1.75rem; }
}

/* ---- EXTRA SMALL: max 360px ---- */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-cta-group { max-width: 240px; }
  .hero-full { font-size: clamp(1.1rem, 6.5vw, 1.6rem); }
  .section-title { font-size: 1.35rem; }
  .cat-card h3 { font-size: 0.7rem; }
  .nav-logo-icon { height: 34px; }
  .logo-tcr { font-size: 1rem; }
  .logo-sub { max-width: 130px; }
  .admin-main { padding: 0.75rem; }
  .mission-card, .step-card { padding: 1rem; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline { font-size: 0.82rem; padding: 0.75rem 0.85rem; }
  .member-card { font-size: 0.82rem; }
  .cat-card { padding: 0.75rem 0.5rem; }
  .footer-grid { gap: 1.25rem; }
}

/* ---- iPAD / TABLET PORTRAIT: 768px – 900px ---- */
@media (min-width: 769px) and (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: repeat(3, 1fr); }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .events-layout { grid-template-columns: 1fr; }
  .calendar-wrap { position: static; }
  /* iPad portrait: ensure forms stack */
  .form-row { grid-template-columns: 1fr; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 600px; }
  /* iPad portrait: hero */
  .hero-content { max-width: 100%; padding: 90px 24px 32px; }
  /* iPad: modals bottom-sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    width: 100%; max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90svh; overflow-y: auto;
  }
}

/* ---- iPAD LANDSCAPE / LARGE TABLET: 901px – 1024px ---- */
@media (min-width: 901px) and (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .leadership-grid { grid-template-columns: repeat(3, 1fr); }
  .events-layout { grid-template-columns: 340px 1fr; }
}

/* ---- LANDSCAPE PHONES ---- */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  :root { --nav-h: 52px; }
  .hero { min-height: 100svh; }
  .hero-content { padding-top: calc(var(--nav-h) + 0.5rem); padding-bottom: 1rem; }
  .hero-logo-wrap { width: 80px; height: 80px; }
  .hero-tagline { display: none; }
  .hero-stats { display: none; }
  .hero-scroll-indicator { display: none; }
  .navbar { height: var(--nav-h); }
  .nav-links { top: var(--nav-h); max-height: calc(100svh - var(--nav-h)); }
  .page-hero { height: 150px; }
  /* Landscape: two-column grids to use horizontal space */
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: row; flex-wrap: wrap; }
  .step-card { min-width: 200px; flex: 1; }
  .step-arrow { transform: none; }
  /* Landscape chat: reduce height to fit keyboard */
  .chat-shell-inner { height: calc(100svh - var(--nav-h) - 36px); }
}

/* ---- iOS SAFE AREAS (notch, Dynamic Island, home indicator) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .navbar {
    padding-top: env(safe-area-inset-top);
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    /* Ensure navbar height accounts for status bar on notched phones */
    min-height: calc(var(--nav-h) + env(safe-area-inset-top));
  }
  .modal-box,
  .cat-modal-box,
  .deal-modal-box,
  .leader-bio-box,
  .event-detail-modal-box,
  .profile-modal-box {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  .nav-links {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  /* Chat input bar: lift above home indicator */
  .chat-input-bar {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
  }
  /* Admin sidebar: account for left safe area on landscape */
  .admin-sidebar {
    padding-left: max(1rem, env(safe-area-inset-left));
  }
}

/* ---- PREVENT iOS INPUT ZOOM (all inputs >= 16px) ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Prevent double-tap zoom on inputs */
  touch-action: manipulation;
}

/* ---- ANDROID CHROME: smooth scrolling + tap highlight ---- */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent elastic bounce on body scroll causing layout shifts */
  overscroll-behavior-y: none;
}
body {
  /* Restore overscroll for body content */
  overscroll-behavior-y: auto;
}
* { -webkit-tap-highlight-color: transparent; }

/* ---- TOUCH TARGETS: minimum 44×44px for all interactive elements ---- */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn-primary,
  .btn-outline,
  .btn-table,
  .filter-tag,
  .modal-close,
  .cat-modal-close,
  .deal-modal-close,
  .sidebar-link,
  .cal-nav,
  .nav-toggle,
  .chat-send-btn,
  .chat-attach-btn,
  .chat-mobile-tab,
  .chat-action-btn,
  .dir-dm-btn,
  .upd-logout,
  .user-profile-btn {
    min-height: 44px;
  }
  .nav-toggle { min-width: 44px; }
  .chat-send-btn { min-width: 44px; }
  .chat-attach-btn { min-width: 44px; }

  /* Remove hover-only states that confuse touch users */
  .nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 0;
    pointer-events: none;
  }

  /* Show dropdown only when .open class is applied via JS */
  .nav-dropdown-wrap.open .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  /* Leader card overlay — always visible on touch */
  .leader-img-overlay { opacity: 0.85; }

  /* Member cards: show action overlay on touch */
  .member-card-overlay { opacity: 1; }

  /* Increase spacing between tappable list items */
  .chat-room-item { padding: 0.75rem 1.1rem; }
  .dir-member { padding: 0.65rem 1.1rem; }
  .new-dm-item { padding: 0.75rem; }

  /* Calendar days: bigger tap area */
  .cal-day { min-height: 40px; }

  /* Sidebar links in admin: bigger tap */
  .sidebar-link { padding: 0.65rem 0.85rem; }
}

/* ---- OVERSCROLL BEHAVIOR (prevent pull-to-refresh on modals) ---- */
.modal-overlay,
.cat-modal-overlay,
.deal-modal-overlay,
.nav-links {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---- SCROLLABLE CONTAINERS: momentum scrolling on iOS ---- */
.admin-table-wrap,
.admin-sidebar,
.chat-messages,
.chat-sidebar-scroll,
.chat-dir-list,
.events-list-wrap,
.new-dm-list,
.modal-box,
.cat-modal-box,
.deal-modal-box,
.leader-bio-box,
.event-detail-modal-box,
.profile-modal-box {
  -webkit-overflow-scrolling: touch;
}

/* ---- GLOBAL BOX SIZING (ensures no overflow from padding) ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ---- IMAGE RESPONSIVENESS (global) ---- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- PREVENT HORIZONTAL SCROLL (global) ---- */
body {
  overflow-x: hidden;
}

/* =============================================
   ADDITIONAL MOBILE POLISH
   ============================================= */

/* ---- ADMIN TABLE: scrollable wrapper on all screen sizes ---- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

/* ---- ADMIN FORM: file inputs readable on mobile ---- */
input[type="file"] {
  max-width: 100%;
  cursor: pointer;
}

/* ---- LEADS: filter row wraps on small screens ---- */
.leads-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ---- INBOX: message rows stack on small screens ---- */
@media (max-width: 600px) {
  .inbox-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .inbox-row-meta {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .inbox-row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ---- CONTACT FORM: full-width on mobile ---- */
@media (max-width: 600px) {
  .contact-form-card { padding: 1.25rem 1rem; }
  .contact-form-card .form-row { grid-template-columns: 1fr; }
  .contact-detail-item { flex-direction: column; gap: 0.4rem; }
}

/* ---- EVENTS: calendar day numbers legible ---- */
@media (max-width: 480px) {
  .cal-day-num { font-size: 0.72rem; }
  .cal-day.has-event::after { width: 5px; height: 5px; }
  .event-list-item { flex-direction: column; gap: 0.5rem; }
  .event-list-date { min-width: unset; width: 100%; flex-direction: row; gap: 0.5rem; align-items: center; border-radius: var(--radius); padding: 0.5rem 0.75rem; }
}

/* ---- MEMBERS: search bar full-width on mobile ---- */
@media (max-width: 600px) {
  .members-search-wrap { width: 100%; }
  .members-search-wrap input { width: 100%; }
  .members-filter-row { flex-direction: column; gap: 0.5rem; }
  .members-filter-row .filter-tags { flex-wrap: wrap; }
}

/* ---- ABOUT: leadership cards stack cleanly ---- */
@media (max-width: 480px) {
  .leader-card { padding-bottom: 0.75rem; }
  .leader-card-name { font-size: 0.95rem; }
  .leader-card-role { font-size: 0.78rem; }
}

/* ---- FOOTER: links list readable on mobile ---- */
@media (max-width: 600px) {
  .footer-links ul { columns: 2; column-gap: 1rem; }
  .footer-links li { break-inside: avoid; margin-bottom: 0.4rem; }
  .footer-contact p { font-size: 0.88rem; }
}

/* ---- MODAL: prevent body scroll when open (iOS) ---- */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ---- USER PROFILE DROPDOWN: touch-friendly ---- */
.user-profile-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.upd-header, .user-profile-dropdown a {
  touch-action: manipulation;
}
@media (max-width: 480px) {
  .user-profile-dropdown {
    min-width: 180px;
  }
  .user-profile-dropdown a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* ---- DEAL / NEWSLETTER MODAL: bottom-sheet on all phones ---- */
@media (max-width: 600px) {
  .deal-modal-overlay { align-items: flex-end; padding: 0; }
  .deal-modal-box {
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
  }
}

/* ---- SMOOTH SCROLL: native momentum on all scrollable areas ---- */
@media (max-width: 768px) {
  html { scroll-behavior: smooth; }
  .events-list-wrap,
  .chat-messages,
  .chat-sidebar-scroll,
  .modal-box,
  .cat-modal-box {
    scroll-behavior: smooth;
  }
}

/* ---- ANDROID: fix select arrow ---- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  -webkit-appearance: none;
  appearance: none;
}

/* ---- FOCUS VISIBLE: accessibility on keyboard + touch ---- */
@media (max-width: 768px) {
  :focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }
  :focus:not(:focus-visible) {
    outline: none;
  }
}

/* =============================================
   LEADER BIO MODAL (About page)
   ============================================= */

/* Hover overlay on leader image */
.leader-img-clickable {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.leader-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 180, 180, 0.78);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.leader-img-overlay span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-card:hover .leader-img-overlay {
  opacity: 1;
}

.leader-card:hover .leader-img {
  transform: scale(1.06);
  transition: transform 0.3s ease;
}

/* Leader bio modal box */
.leader-bio-box {
  max-width: 560px;
  width: 92%;
  padding: 2rem;
  border-radius: 16px;
  background: var(--card-bg, #12122a);
  border: 1px solid rgba(0, 200, 200, 0.2);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}

.leader-bio-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.leader-bio-photo-wrap {
  flex-shrink: 0;
}

.leader-bio-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 200, 200, 0.5);
  box-shadow: 0 0 20px rgba(0, 200, 200, 0.2);
}

.leader-bio-title-wrap {
  flex: 1;
  min-width: 0;
}

.leader-bio-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-teal, #00c8c8);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.leader-bio-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.leader-bio-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.leader-bio-section h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-purple, #1a6cff);
  margin: 0 0 0.5rem 0;
}

.leader-bio-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* Modal overlay scroll fix — kept here for non-media-query rules */
.modal-overlay,
.cat-modal-overlay,
.new-dm-modal,
.report-modal {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Prevent body scroll lock from freezing the page */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* =============================================
   DEAL FINDER / NEWSLETTER POPUP MODAL
   ============================================= */

@keyframes cobaltPulse {
  0%   { box-shadow: 0 0 18px 3px rgba(0,112,255,0.55), 0 0 50px 8px rgba(0,80,220,0.25), inset 0 0 20px rgba(0,80,220,0.08); }
  50%  { box-shadow: 0 0 32px 8px rgba(0,140,255,0.8),  0 0 80px 18px rgba(0,100,255,0.35), inset 0 0 30px rgba(0,100,255,0.12); }
  100% { box-shadow: 0 0 18px 3px rgba(0,112,255,0.55), 0 0 50px 8px rgba(0,80,220,0.25), inset 0 0 20px rgba(0,80,220,0.08); }
}

.deal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.deal-modal-overlay.open {
  display: flex;
}

.deal-modal-box {
  position: relative;
  background: #000;
  border: 2px solid #0070ff;
  border-radius: 16px;
  animation: cobaltPulse 2.8s ease-in-out infinite;
  max-width: 820px;
  width: 100%;
  padding: 2.25rem 2rem;
  color: #fff;
  overflow: hidden;
}
.deal-modal-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(ellipse at 30% 0%, rgba(0,100,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(0,60,200,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.deal-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: rgba(0,112,255,0.15);
  border: 1px solid rgba(0,112,255,0.4);
  color: #7bb8ff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.deal-modal-close:hover {
  background: rgba(0,112,255,0.35);
  color: #fff;
}

.deal-modal-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* LEFT LOGO COLUMN */
.deal-modal-logo-col {
  flex: 0 0 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.deal-logo-upload-zone {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.deal-logo-upload-zone:hover {
  border-color: transparent;
  background: transparent;
}
.deal-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}
.deal-logo-upload-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.65);
  color: #7bb8ff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.deal-logo-upload-zone:hover .deal-logo-upload-hint {
  opacity: 1;
}
.deal-logo-label {
  display: none;
  font-size: 0.68rem;
  color: rgba(0,112,255,0.7);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

/* RIGHT CONTENT COLUMN */
.deal-modal-content-col {
  flex: 1;
  min-width: 0;
}
.deal-modal-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4da6ff;
  margin-bottom: 0.4rem;
}
.deal-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.65rem;
  text-shadow: 0 0 20px rgba(0,112,255,0.4);
}
.deal-modal-desc {
  font-size: 0.88rem;
  color: rgba(200,220,255,0.85);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}
.deal-modal-desc strong {
  color: #7bb8ff;
  font-weight: 700;
}

/* FORM */
.deal-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.deal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.deal-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.deal-form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7bb8ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.deal-form-group input[type="text"],
.deal-form-group input[type="email"],
.deal-form-group input[type="tel"] {
  background: rgba(0,30,80,0.6);
  border: 1px solid rgba(0,112,255,0.35);
  border-radius: 8px;
  color: #fff;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.deal-form-group input:focus {
  border-color: #0070ff;
  box-shadow: 0 0 0 3px rgba(0,112,255,0.2);
}
.deal-form-group input::placeholder { color: rgba(150,180,255,0.45); }

/* SMS opt-in */
.deal-sms-group { margin-top: 0.1rem; }
.deal-sms-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(200,220,255,0.9);
  user-select: none;
}
.deal-sms-label input[type="checkbox"] { display: none; }
.deal-sms-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(0,112,255,0.5);
  background: rgba(0,30,80,0.5);
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.deal-sms-label input[type="checkbox"]:checked + .deal-sms-check-box {
  background: #0070ff;
  border-color: #0070ff;
}
.deal-sms-label input[type="checkbox"]:checked + .deal-sms-check-box::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.deal-optional {
  font-size: 0.72rem;
  color: rgba(150,180,255,0.55);
  font-style: italic;
}
.deal-phone-wrap {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.deal-phone-wrap input {
  background: rgba(0,30,80,0.6);
  border: 1px solid rgba(0,112,255,0.35);
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.deal-sms-note {
  font-size: 0.67rem;
  color: rgba(150,180,255,0.5);
}

/* Submit button */
.deal-submit-btn {
  margin-top: 0.4rem;
  background: linear-gradient(135deg, #0050cc 0%, #0090ff 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,112,255,0.45);
  width: 100%;
}
.deal-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.deal-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.deal-success {
  background: rgba(0,200,100,0.12);
  border: 1px solid rgba(0,200,100,0.35);
  border-radius: 10px;
  color: #5dffb0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}
.deal-error {
  color: #ff7b7b;
  font-size: 0.82rem;
  text-align: center;
  margin-top: 0.25rem;
}

.deal-skip-btn {
  background: none;
  border: none;
  color: rgba(150,180,255,0.45);
  font-size: 0.72rem;
  cursor: pointer;
  margin-top: 0.6rem;
  text-align: center;
  width: 100%;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}
.deal-skip-btn:hover { color: rgba(150,180,255,0.75); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .deal-modal-box { padding: 1.5rem 1rem 1.25rem; }
  .deal-modal-inner { flex-direction: column; gap: 1.25rem; align-items: center; }
  .deal-modal-logo-col { flex: none; padding-top: 0; }
  .deal-modal-title { font-size: 1.1rem; }
  .deal-form-row { grid-template-columns: 1fr; }
}
