/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Content Protection - Disable text selection */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Allow selection in form fields */
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1e2a42;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8B0000;
  --accent-hover: #5c0000;
  --accent-glow: rgba(139, 0, 0, 0.3);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: #1e293b;
  --border-light: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(139, 0, 0, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(60, 60, 60, 0.04) 0%, transparent 50%);
  animation: bgRotate 60s linear infinite;
}

@keyframes bgRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
  color: var(--text-primary);
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.hamburger {
  display: none;
}

/* ===== NAV LOGO IMAGE ===== */
.nav-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-brand .logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.nav-brand span {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;  min-width: 100px;  text-align: center;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: #DAA520;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: #DAA520;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: #DAA520;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.user-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

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

/* ===== PAGE STYLES ===== */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero-title {
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-title-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.3));
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About section */
.about-section {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.values, .team {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.values h3, .team h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.values ul {
  list-style: none;
}

.values li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.values li:last-child {
  border-bottom: none;
}

.values li strong {
  color: var(--accent);
}

/* Apply section */
/* ===== APPLY HERO ===== */
.apply-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0;
}

.apply-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 35s ease-in-out infinite alternate;
  pointer-events: none;
  filter: saturate(1.15) brightness(0.88);
}

.apply-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 10, 0.65) 0%,
    rgba(5, 5, 10, 0.45) 30%,
    rgba(5, 5, 10, 0.55) 70%,
    rgba(5, 5, 10, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.apply-hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px 80px rgba(0, 0, 0, 0.85) !important;
  z-index: 1;
  pointer-events: none;
}

.apply-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
}

.apply-hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-shadow:
    0 0 0 1px #000,
    0 0 0 2px rgba(218, 165, 32, 0.6),
    0 0 0 4px #5C0000,
    0 0 0 6px #3A0000,
    0 0 28px rgba(139, 0, 0, 0.5);
  animation: titleIn 1.1s 0.2s cubic-bezier(.2,.8,.2,1) both;
}

.apply-hero-title-gold {
  color: #DAA520;
}

.apply-hero-subtitle {
  font-family: Georgia, serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #eef2f7;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  max-width: 540px;
  animation: fadeUp 0.9s 0.5s both;
}

.apply-disclaimer-section {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  animation: fadeUp 0.7s 0.2s both;
}

.apply-disclaimer-card {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(26,34,53,0.75) 0%, rgba(26,34,53,0.55) 100%);
  border: 1px solid rgba(218,165,32,0.3);
  border-left: 5px solid #DAA520;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.apply-disclaimer-card::before {
  display: none;
}

.disclaimer-label {
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #DAA520;
  margin: 0 0 0.5rem;
  flex-shrink: 0;
  writing-mode: horizontal-tb;
}

.apply-disclaimer-card .disclaimer-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  padding-top: 0.2rem;
}


.disclaimer-text {
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.65;
  margin: 0;
}

.apply-section {
  max-width: 600px;
  margin: 0 auto;
}

.apply-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

.apply-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.application-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  padding: 12px 28px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
}

.submit-btn:hover {
  box-shadow: 0 0 24px var(--accent-glow), 0 0 12px rgba(218, 165, 32, 0.3);
  transform: translateY(-2px);
  border-color: rgba(218, 165, 32, 0.6);
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.success-message h3 {
  color: var(--success);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-secondary);
}

/* ===== INTERACTIVE BUTTON ===== */
.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #5C0000, #7A0000);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(92, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(92, 0, 0, 0.6);
}

/* ===== CHAT ===== */
.chat-container {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
}

.chat-container.with-sidebar {
  width: 680px;
}

.chat-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: none;
}

.chat-sidebar.visible {
  display: block;
}

.applicant-profile {
  background: rgba(26, 34, 53, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.applicant-profile h4 {
  font-family: Georgia, serif;
  color: #DAA520;
  font-size: 1rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.applicant-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.applicant-status.pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.applicant-status.approved {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.applicant-status.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.applicant-info {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.applicant-info strong {
  color: var(--text-primary);
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.admin-action-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.admin-action-btn.approve {
  border-color: rgba(16, 185, 129, 0.3);
}

.admin-action-btn.approve:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

.admin-action-btn.reject {
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-action-btn.reject:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

.admin-action-btn.request-info {
  border-color: rgba(59, 130, 246, 0.3);
}

.admin-action-btn.request-info:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.admin-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tag.high-priority {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-tag.needs-followup {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-tag.vetted {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chat-container.open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(139, 0, 0, 0.1));
  border-bottom: 2px solid var(--accent);
  position: relative;
}

.chat-header h3 {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.chat-header h3 .lock-icon {
  color: var(--success);
  font-size: 1.1rem;
}

.encryption-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.encryption-badge::before {
  content: '🔒';
  font-size: 0.85rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
}

.chat-close:hover {
  color: var(--text-primary);
}

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

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: msgIn 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.message-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.message-wrapper.own {
  flex-direction: row-reverse;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.message.own {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.other {
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message .msg-meta {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-bottom: 2px;
  font-weight: 600;
}

.message .msg-time {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 2px;
  text-align: right;
}

.message .msg-reactions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.reaction-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.reaction-badge:hover {
  background: rgba(255, 255, 255, 0.2);
}

.read-receipt {
  font-size: 0.7rem;
  opacity: 0.6;
  text-align: right;
  margin-top: 2px;
}

.read-receipt.read::after {
  content: ' ✓✓';
  color: #4CAF50;
}

.read-receipt.sent::after {
  content: ' ✓';
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 16px;
  width: fit-content;
  align-self: flex-start;
  margin-top: 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

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

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-send:hover {
  background: var(--accent-hover);
}

/* Chat toggle button */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 56px;
  min-height: 56px;
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--accent-glow);
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0 1rem;
}

.chat-toggle::after {
  content: '🔒 Secure Chat';
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
  letter-spacing: 0.03em;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.05);
  padding-right: 1.25rem;
}

.chat-toggle:hover::after {
  max-width: 100px;
  opacity: 1;
}

.chat-toggle.show {
  display: flex;
}

/* ===== AUTH MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  box-shadow: var(--shadow);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal p.subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.modal .form-group input {
  background: var(--bg-secondary);
}

.modal .btn {
  margin-top: 0.5rem;
}

.modal .switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.modal .switch a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.modal .switch a:hover {
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal {
  position: relative;
}

/* ===== ADMIN PANEL ===== */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent), #5c0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 4px;
}

.admin-tab {
  padding: 10px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  background: var(--accent);
  color: white;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.page-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.page-editor h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.page-editor label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.page-editor input,
.page-editor textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  font-family: inherit;
}

.page-editor textarea {
  min-height: 200px;
  resize: vertical;
}

.page-editor input:focus,
.page-editor textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.button-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.button-editor h3 {
  margin-bottom: 1.5rem;
}

.button-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.button-preview .cta-button {
  font-size: 0.9rem;
  padding: 10px 24px;
}

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

.application-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.application-card .app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.application-card .app-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.application-card .app-email {
  color: var(--accent);
  font-size: 0.9rem;
}

.application-card .app-section {
  margin-top: 0.75rem;
}

.application-card .app-section strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.application-card .app-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.no-apps {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  animation: notifIn 0.3s ease;
  box-shadow: var(--shadow);
}

@keyframes notifIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.notification.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--success);
  color: var(--success);
}

.notification.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #8B0000 20%, #DAA520 50%, #8B0000 80%, transparent 100%);
}
.footer a {  color: #DAA520;  text-decoration: none;}.footer a:hover {  color: #fff;  text-decoration: underline;}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    height: 60px;
  }

  .nav-brand .brand-homeland {
  color: #8B0000;
    font-size: 1.6rem;
  }
  .nav-brand .brand-canada {
    font-size: 1.6rem;
  }
  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    display: none;
  }

  .nav-auth .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 40vh;
  }

  .hero-content {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero .hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
  }

  .hero-profile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .chat-container {
    width: calc(100% - 40px);
    height: 60vh;
    right: 20px;
    bottom: 20px;
  }

  .main-content {
    padding: 1rem;
  }

  .intro-section {
    padding: 0 1rem 3rem;
  }

  .intro-section p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
  }

  .nav-auth {
    gap: 6px;
  }

  .nav-auth .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .mission-section, .apply-section {
    padding: 0 1rem;
  }

  .hero-profile-img {
    object-fit: cover;
    object-position: center;
  }

  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-brand .brand-canada {
    display: none;
  }

  .hero .hero-title {
    font-size: 2.5rem;
  }

  .hero-content > p {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .join-btn {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
}

/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== HERO FULL WIDTH BACKGROUND ===== */
.hero {
  text-align: center;
  padding: 0;
  position: relative;
  min-height: 50vh;
  overflow: hidden;
}

.hero-profile {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Dark overlay so text stays readable over the image */
.hero-profile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.55) 0%,
    rgba(10, 14, 23, 0.70) 50%,
    rgba(10, 14, 23, 0.92) 100%
  );
  pointer-events: none;
}

/* Make hero content sit above the image */
.hero h1,
.hero .tagline,
.hero p,
.hero .cta-button {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 6rem 2rem 5rem;
}

.hero .hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: #5C0000 !important;
  text-shadow: 0 4px 20px rgba(92, 0, 0, 0.8), 0 0 10px rgba(92, 0, 0, 0.5) !important;
  background: none !important;
  -webkit-text-fill-color: #5C0000 !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  margin: 0 0 0.2rem 0;
  font-family: Georgia, serif;
  letter-spacing: 3px;
}

/* Nav brand colors */
.nav-brand .brand-homeland {
  color: #8B0000;
  font-weight: 700;
}
.nav-brand .brand-canada {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
  margin-bottom: 2rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.hero p:not(.tagline) {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
}

/* Remove old feature cards but keep the container for intro content */
.features,
.feature {
  display: none !important;
}

/* ===== INTRO SECTION (below hero image) ===== */
.intro-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.intro-section p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: left;
  margin-bottom: 1.5rem;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* Drop-cap on first paragraph */
.intro-section p:first-of-type::first-letter {
  font-family: Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: #8B0000;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.15em 0 0;
}

/* Pull-quote for featured passage */
.intro-pullquote {
  position: relative;
  border-left: 4px solid #DAA520;
  background: linear-gradient(90deg, rgba(139,0,0,0.06) 0%, transparent 100%);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary) !important;
  font-size: 1.12rem !important;
  line-height: 1.75;
}

.intro-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -0.3em;
  left: 0.5rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  color: rgba(218,165,32,0.25);
  line-height: 1;
}

/* Join Us button */
.join-btn {
  color: var(--text-primary) !important;
  font-weight: 700;
  text-decoration: none;
  background: #8B0000;
  border: 2px solid #8B0000;
  padding: 8px 22px;
  border-radius: 6px;
  display: inline-block;
  margin-left: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}
.join-btn:hover {
  background: #6B0000;
  border-color: #6B0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}
.join-btn:active {
  background: #6B0000;
  border-color: #5C0000;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
  transform: scale(1.04);
  color: #fff;
}

/* ===== APPLY FORM ===== */
.apply-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.apply-form-grid .form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.apply-form-grid .form-group input,
.apply-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.apply-form-grid .form-group input:focus,
.apply-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.apply-form-grid .form-group input::placeholder,
.apply-form .form-group textarea::placeholder {
  color: var(--text-muted);
}

.apply-form-grid .form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.apply-form .form-group {
  margin-bottom: 1rem;
}

.apply-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.apply-status-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent);
}

.apply-status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.apply-status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #5C0000, #7A0000);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: 0.6s;
  pointer-events: none;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== POLISH: ENTRANCE ANIMATIONS ===== */
.hero-content { animation: heroFadeIn 1s cubic-bezier(.2,.8,.2,1) .1s both; }

.hero .hero-title {
  animation: titleIn 1.1s .25s cubic-bezier(.2,.8,.2,1) both;
}

.hero-content > p {
  animation: fadeUp .9s .55s both;
}

.cta-button {
  animation: fadeUp .9s .75s both, ctaPulse 3.8s 2.5s ease-in-out infinite;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(92, 0, 0, 0.5); }
  50%      { box-shadow: 0 4px 40px rgba(180, 20, 20, 0.85), 0 0 0 8px rgba(180, 20, 20, 0.08); }
}

/* Hero background: subtle slow zoom (Ken Burns) */
.hero-profile-img {
  animation: kenBurns 28s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Nav scrolled state */
.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(92, 0, 0, 0.35);
}

/* Intro section scroll reveal */
.intro-section p {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease, transform .8s ease;
}

/* Apply form panel — soft glass lift */
.apply-section form.apply-form {
  background: rgba(26, 34, 53, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.apply-section form.apply-form:hover {
  border-color: rgba(92, 0, 0, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Apply heading entrance */
#page-apply .apply-section > h2 {
  animation: fadeUp .8s .15s both;
}
#page-apply .apply-section > p {
  animation: fadeUp .8s .3s both;
}
#page-apply form.apply-form {
  animation: fadeUp .9s .45s both;
}

/* ===== HAMBURGER MENU ===== */
/* Nav menu — hidden by default, revealed by hamburger on mobile */
.navMenu {
  display: none;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 4px; }

.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
  .navMenu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--bg-primary);
    transition: left 0.3s ease-in-out;
    padding: 2rem;
    overflow-y: auto;
    z-index: 98;
  }

  .navMenu.active {
    left: 0;
  }

  .navMenu ul {
    list-style: none;
    padding: 0;
  }

  .navMenu ul li {
    margin-bottom: 1.5rem;
  }

  .navMenu ul li a {
    font-size: 0.9rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }

  .navMenu ul li a.active,
  .navMenu ul li a:hover {
    color: #DAA520;
  }
}

/* ===== AFFILIATE FOOTER BANNERS ===== */
.affiliate-footer {
  background: #0d1117;
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
}

.affiliate-footer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.affiliate-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.affiliate-banners a {
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
}

.affiliate-banners a:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.affiliate-banners img {
  max-width: 468px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Empty state when no affiliates yet */
.affiliate-banners:empty::after {
  content: "No affiliate banners yet — partner with us at /affiliates";
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ===== PRE-FOOTER CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(139,0,0,0.08) 0%, rgba(26,34,53,0.6) 50%, rgba(139,0,0,0.08) 100%);
  border-top: 1px solid rgba(139,0,0,0.25);
  border-bottom: 1px solid rgba(139,0,0,0.15);
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem 0 0;
}

.cta-banner-text {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.cta-banner-link {
  display: inline-block;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eef2f7;
  background: #8B0000;
  padding: 0.7rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid #8B0000;
  transition: all 0.25s ease;
}

.cta-banner-link:hover {
  background: transparent;
  color: #DAA520;
  border-color: #DAA520;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218,165,32,0.3);
}

/* ===== HERO REDESIGN ===== */
.hero-redesign {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 30s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,10,0.55) 0%, rgba(5,5,10,0.35) 40%, rgba(5,5,10,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,0.75) !important;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* Georgia serif + gold outline title (user-established brand style) */
.hero-gold-title {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #8B0000;
  text-shadow:
    0 0 0 1px #000,
    0 0 0 2px rgba(139,0,0,0.4),
    0 0 0 4px #5C0000,
    0 0 0 6px #3A0000,
    0 0 34px rgba(139,0,0,0.45);
  line-height: 1.05;
  margin: 0 0 0.8rem 0;
  animation: titleIn 1.1s .25s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)        scale(1);    }
}

.hero-subtitle {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: #eef2f7;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 2rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.9);
  animation: fadeUp .9s .55s both;
}

.hero-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .9s .8s both;
}

.btn-primary-cta,
.btn-secondary-cta {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  border: 2px solid transparent;  min-width: 160px;  display: inline-block;  text-align: center;
}

.btn-primary-cta {
  background: transparent;
  color: #DAA520;
  border: 2px solid #DAA520;
  box-shadow: 0 0 0 transparent;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(218, 165, 32, 0.12); }
}

.btn-primary-cta:hover {
  background: #DAA520;
  color: #1A0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218,165,32,0.4);
}

.btn-secondary-cta {
  background: transparent;
  color: #DAA520;
  border-color: #DAA520;
}

.btn-secondary-cta:hover {
  background: #DAA520;
  color: #1A0000;
  border-color: #DAA520;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218,165,32,0.4);
}

@media (max-width: 640px) {
  .hero-redesign { height: 60vh; min-height: 360px; }
  .hero-gold-title { text-shadow:
    0 0 0 1px #000,
    0 0 0 2px rgba(139,0,0,0.4),
    0 0 0 3px #5C0000,
    0 0 0 5px #3A0000,
    0 0 22px rgba(139,0,0,0.45); }
  .hero-actions { flex-direction: column; width: 85%; }
  .btn-primary-cta, .btn-secondary-cta { width: 100%; }
}

/* ===== OUR MISSION PAGE ===== */
.mission-container {
  max-width: 820px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.mission-page-hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.mission-page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #8B0000;
  margin: 0 0 0.6rem;
}

.mission-page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto 0;
  max-width: 640px;
}

.mission-card {
  background: rgba(26, 34, 53, 0.45);
  border: 1px solid var(--border);
  border-left: 3px solid #8B0000;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 0 0 1.25rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: missionIn .6s ease-out forwards;
}

@keyframes missionIn {
  to { opacity: 1; transform: translateY(0); }
}

.mission-card:hover {
  border-color: rgba(139,0,0,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}

.mission-card h2 {
  font-family: Georgia, serif;
  color: #DAA520;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

.mission-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.02rem;
  margin: 0 0 0.6rem 0;
}
.mission-card p:last-child {
  margin-bottom: 0;
}

.mission-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.mission-card ul li {
  color: var(--text-secondary);
  padding: 0.85rem 1rem 0.85rem 1rem;
  background: rgba(17,24,39,0.5);
  border-left: 3px solid #8B0000;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.mission-card ul li strong {
  color: #DAA520;
  font-family: Georgia, serif;
  font-weight: 700;
  display: inline-block;
  margin-right: 0.4rem;
}

.mission-cta {
  text-align: center;
  margin: 2.5rem 0 1rem;
  padding: 2rem;
  background: rgba(139,0,0,0.08);
  border: 1px solid rgba(139,0,0,0.25);
  border-radius: var(--radius);
}

.mission-cta p {
  color: var(--text-primary);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 1.2rem;
}

.mission-cta a {
  font-family: Georgia, serif;
  font-weight: 700;
  color: #DAA520;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: 2px solid #DAA520;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background .25s ease, color .25s ease;
}

.mission-cta a:hover {
  background: #DAA520;
  color: #1A0000;
}

@media (max-width: 640px) {
  .mission-card { padding: 1.25rem; }
  .mission-card h2 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  /* Force affiliate footer visible on mobile */
  #affiliateBanners {
    overflow: visible !important;
    transform: none !important;
    transform-origin: top center !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #affiliateBanners img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  #affiliateBanners > div {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  #affiliateBanners a img {
    width: 100% !important;
    height: auto !important;
  }

  .affiliate-footer { 
    padding: 1.25rem 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
  }
  
  .affiliate-footer-label {
    display: block !important;
    visibility: visible !important;
  }
  
  .affiliate-fallback {
    display: block !important;
  }
  
  /* Mobile touch targets */
  .btn-primary, .btn-secondary, .chat-toggle {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  .nav-links a {
    padding: 12px 16px !important;
  }
}

/* ===== MISSION HERO (background image + overlay) ===== */
.mission-page-hero {
  position: relative;
  width: 100%;
  min-height: 440px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
}

.mission-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mission-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.35) saturate(0.7);
}

.mission-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.7) 0%,
    rgba(10, 14, 23, 0.55) 45%,
    rgba(10, 14, 23, 0.85) 100%
  );
  z-index: 1;
}

.mission-hero-content {
  position: relative;
  z-index: 2;
  top: 220px;
  padding: 0 2rem 3rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.mission-hero-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #DAA520;
  text-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(218, 165, 32, 0.5);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.mission-hero-content p {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #eef2f7;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .mission-page-hero { min-height: 340px; }
  .mission-hero-content {
    top: 180px;
    padding: 0 1rem 2.5rem;
  }
  .mission-hero-bg img { filter: brightness(0.4) saturate(0.7); }
}


/* ===== MOBILE FIXES — FINAL OVERRIDES ===== */
/* Must come AFTER all .mobile-back-home { display: none } rules to cascade properly */
@media (max-width: 768px) {
  /* ===== HERO: BRIGHTER IMAGES ===== */
  .hero-bg-img {
    filter: brightness(1.25) contrast(1.08) saturate(1.3) !important;
  }

  .apply-hero-bg-img {
    filter: brightness(1.25) contrast(1.08) saturate(1.3) !important;
  }

  .mission-hero-bg img,
  .hero-redesign .mission-hero-bg {
    filter: brightness(0.4) saturate(0.7) !important;
  }

  /* Lighter overlay */
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(5,5,10,0.45) 0%,
      rgba(5,5,10,0.25) 40%,
      rgba(5,5,10,0.55) 100%) !important;
  }

  .apply-hero-overlay {
    background: linear-gradient(180deg,
      rgba(5,5,10,0.40) 0%,
      rgba(5,5,10,0.20) 40%,
      rgba(5,5,10,0.50) 100%) !important;
  }

  /* Subtle maple leaf overlay — Canadian texture */
  main::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg transform='translate(70 70)'%3E%3Cpath d='M 0 -30 L -6 -18 L -18 -22 L -12 -10 L -22 -4 L -10 0 L -14 14 L -4 8 L 0 20 L 4 8 L 14 14 L 10 0 L 22 -4 L 12 -10 L 18 -22 L 6 -18 Z' fill='%23DAA520'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: screen;
  }

  /* ===== ALL RED → GOLD on mobile ===== */
  :root {
    --accent: #DAA520 !important;
    --accent-hover: #B8860B !important;
  }

  /* Hamburger — gold */
  .hamburger { display: block; filter: drop-shadow(0 0 6px rgba(218,165,32,0.7)); }
  .hamburger span { background: #DAA520 !important; }

  /* Nav menu — reveal */
  .navMenu { display: block; }

  /* Headings — gold, no peach halos */
  .hero-gold-title,
  .apply-hero-title,
  .mission-hero-content h1,
  .apply-hero-title-gold {
    color: #FFFFFF !important;
    text-shadow: 0 0 1px #000, 0 2px 10px rgba(0,0,0,0.85), 0 0 24px rgba(139,0,0,0.4) !important;
  }

  /* Buttons — gold */
  .btn-primary-cta,
  .btn-primary,
  .cta-button,
  .submit-btn {
    color: #DAA520 !important;
    border-color: #DAA520 !important;
    background: transparent !important;
  }

  .btn-primary-cta:hover,
  .btn-primary:hover,
  .cta-button:hover,
  .submit-btn:hover {
    background: #DAA520 !important;
    color: #000 !important;
    box-shadow: 0 6px 22px rgba(139,0,0,0.6) !important;
  }

  /* Accents — gold */
  .gold-line,
  .mission-divider,
  .intro-pullquote { border-color: #DAA520 !important; }

  .apply-disclaimer-card {
    border: 1px solid rgba(218,165,32,0.3) !important;
    border-left: 5px solid #DAA520 !important;
  }

  .disclaimer-label { color: #DAA520 !important; }

  /* Drop-cap — gold */
  .intro-section p:first-of-type::first-letter {
    color: #DAA520 !important;
    text-shadow: 0 2px 8px rgba(218,165,32,0.4);
  }

  /* Mission cards — full gold border */
  .mission-card {
    border: 2px solid #DAA520 !important;
    box-shadow: 0 0 16px rgba(218,165,32,0.15);
  }

  .mission-card:hover,
  .mission-card:active {
    border-color: #DAA520 !important;
    box-shadow: 0 0 26px rgba(218,165,32,0.3);
  }

  .mission-card h2 { color: #DAA520 !important; }

  /* Hamburger menu links — gold */
  .navMenu ul li a { color: #DAA520 !important; }
  .navMenu ul li a:active,
  .nav-links a.active { color: #fff !important; }

  .gold-accent, .brand-canada { color: #DAA520 !important; }

  /* Mobile back-to-home — gold */
  .mobile-back-home {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem 0.9rem 3rem;
    margin: 1.25rem auto;
    max-width: 320px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #DAA520;
    background: rgba(0,0,0,0.85);
    border: 2px solid #DAA520;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    backdrop-filter: blur(8px);
  }

  .mobile-back-home::before {
    content: '🍁';
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
  }

  .mobile-back-home:hover,
  .mobile-back-home:active {
    background: #DAA520 !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218,165,32,0.4);
  }
}

/* ===== ACCESSIBILITY: Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ===== FORM VALIDATION ===== */
.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

/* ===== LOADING SPINNER ===== */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Nav logo hover effect */
.nav-brand {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
}

.nav-brand:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-logo-img {
  transition: transform 0.2s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.05);
}

/* Force Homeland text to red on mobile */
/* Force Homeland text to WHITE on mobile - no color bleeding */
@media (max-width: 768px) {
  .brand-homeland {
    color: #FFFFFF !important;
    text-shadow: none !important;
  }
}
