/* ==========================================================================
   FPC Unified Navigation Bar Styles (Desktop, Tablet, Foldable & Mobile)
   6-Item Grouped Architecture: Home | About v | Events & Media v | Community v | Contact | Donate
   Fits single-row across Desktop, iPad Landscape (1024px) & Folded Unfolded Landscape (884px).
   ========================================================================== */

:root {
  --fpc-dark-green: #0a4a2a;
  --fpc-darker-green: #07381e;
  --fpc-green: #1a7a4a;
  --fpc-light-green: #e8f5e9;
  --fpc-gold: #f5d76e;
  --fpc-gold-hover: #ffd966;
  --fpc-gold-dark: #d4a017;
  --fpc-text: #1a1a2e;
}

/* Base Navbar */
.navbar {
  background: linear-gradient(135deg, var(--fpc-darker-green) 0%, var(--fpc-dark-green) 55%, #0e5c35 100%);
  color: #fff;
  padding: 0;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
  width: 100%;
  display: flex;
  align-items: center;
}

.navbar .container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

/* Brand & SVG Logo (Top-Left — 3-line stacked name) */
.navbar .brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.navbar .brand:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.navbar .brand .logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
  display: block;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.navbar .brand:hover .logo {
  box-shadow: 0 0 0 2px var(--fpc-gold), 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: scale(1.04);
}

.navbar .brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.25px;
  color: #ffffff;
}

.navbar .brand-text span {
  display: block;
}

/* Middle Navigation (Strictly Single Row on Desktop & Landscape Tablets > 860px) */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.5vw, 24px);
  list-style: none;
  margin: 0 auto;
  padding: 0 6px;
  min-width: 0;
}

.nav-links > li {
  flex-shrink: 0;
  position: relative;
}

.nav-links > li > a,
.nav-links > li > .nav-group-btn {
  color: #dceee0;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(0.84rem, 1vw, 0.93rem);
  font-weight: 500;
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links > li > a:not(.donate-btn):hover,
.nav-links > li > a:not(.donate-btn).active,
.nav-links > li > .nav-group-btn:hover,
.nav-links > li > .nav-group-btn.active,
.nav-links > li.open > .nav-group-btn {
  color: var(--fpc-gold) !important;
  font-weight: 700;
}

.nav-links > li > a:not(.donate-btn).active::after,
.nav-links > li > .nav-group-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 3px;
  right: 3px;
  height: 2.5px;
  background: var(--fpc-gold);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(245, 215, 110, 0.6);
}

.nav-group-caret {
  font-size: 0.62em;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.nav-links > li.open > .nav-group-btn .nav-group-caret {
  transform: rotate(180deg);
}

/* Desktop Dropdown Submenu */
.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 245px;
  background: #ffffff;
  color: var(--fpc-text);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  border: 1px solid #dce6df;
  list-style: none;
  z-index: 10003;
  animation: fpcSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible hover bridge so cursor moving down into submenu never drops hover */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

@media (hover: hover) and (min-width: 861px) {
  .nav-has-dropdown:hover > .nav-submenu,
  .nav-has-dropdown:focus-within > .nav-submenu {
    display: block;
  }
}

.nav-has-dropdown.open > .nav-submenu {
  display: block;
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #1a1a2e !important;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-submenu a small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #5c6e64;
  margin-top: 1px;
}

.nav-submenu a .sub-ic {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-submenu a:hover,
.nav-submenu a.active {
  background: #eef7f1;
  color: var(--fpc-dark-green) !important;
}

/* Navbar Donate Pill Button */
.nav-links a.donate-btn,
.nav-links a.donate-btn:visited {
  background: var(--fpc-gold) !important;
  color: #062d19 !important;
  -webkit-text-fill-color: #062d19 !important;
  padding: 7px 18px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(245, 215, 110, 0.32);
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-links a.donate-btn:hover {
  background: #fce282 !important;
  color: #041f11 !important;
  -webkit-text-fill-color: #041f11 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(245, 215, 110, 0.55);
}

.nav-links a.donate-btn.active {
  background: #e6c547 !important;
  color: #041f11 !important;
  -webkit-text-fill-color: #041f11 !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 3px 12px rgba(230, 197, 71, 0.6) !important;
}

.nav-links a.donate-btn::after,
.nav-links a.donate-btn.active::after {
  display: none !important;
  content: none !important;
}

/* Nav Actions & Auth Slot (Top-Right Corner) */
.navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  height: 100%;
}

.nav-auth-slot {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(245, 215, 110, 0.45);
  height: 38px;
  padding: 0 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: var(--fpc-gold);
  color: #0a4a2a;
  border-color: var(--fpc-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  height: 38px;
  padding: 0 12px 0 5px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.nav-user-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--fpc-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nav-user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-user-initials-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fpc-gold);
  color: #0a4a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
}

.nav-user-name {
  font-weight: 600;
  font-size: 13px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-caret {
  font-size: 8px;
  opacity: 0.8;
  margin-left: 1px;
}

/* Role Badges */
.role-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 12px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.role-badge-super-admin {
  background: linear-gradient(135deg, #ffe082 0%, #ffd700 100%);
  color: #062817;
  border: 1px solid #fff;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}
.role-badge-admin { background: var(--fpc-gold); color: #0a4a2a; }
.role-badge-team, .role-badge-editor { background: #26a69a; color: #ffffff; }
.role-badge-organizer { background: #ffb74d; color: #3e2723; }
.role-badge-scanner { background: #80cbc4; color: #004d40; }
.role-badge-volunteer { background: #b0bec5; color: #263238; }
.role-badge-member { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* User Profile Dropdown Panel */
.user-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  color: #1a1a2e;
  width: 300px;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  padding: 14px 0;
  z-index: 10001;
  animation: fpcSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
  max-height: calc(100vh - 84px);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@keyframes fpcSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header { padding: 10px 18px 12px; }
.user-dropdown-close {
  background: #f0f4f1;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #555;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s;
}
.user-dropdown-close:hover { background: #e0e6e2; color: #111; transform: rotate(90deg); }
.menu-divider { height: 1px; background: #eef2f0; margin: 6px 0; }
.menu-section-title {
  padding: 8px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #7b8a82;
  text-transform: uppercase;
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.menu-link:hover { background: #f0f7f2; color: #0a4a2a; }
.menu-link .m-icon { font-size: 16px; width: 20px; text-align: center; }
.menu-link-danger { color: #c62828 !important; }
.menu-link-danger:hover { background: #ffebee !important; }

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* Unified Auth & Profile Modals (Landscape-safe scrolling — never clips top!) */
.fpc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fpc-modal-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  max-width: 440px;
  width: 100%;
  padding: 26px 24px;
  position: relative;
  box-sizing: border-box;
  margin: auto;
  animation: fpcModalIn 0.22s ease;
}

@media (max-height: 540px) {
  .fpc-modal-overlay {
    align-items: flex-start;
    padding: 10px 14px;
  }
  .fpc-modal-card {
    padding: 18px 18px;
    margin: 6px auto;
  }
}

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

.fpc-modal-close-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.fpc-modal-close-x:hover { color: #111; }

/* Full-Screen Digital Badge Modal Overlay */
body.fpc-modal-open { overflow: hidden !important; }
.fpc-fullscreen-badge-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 20%, #104229 0%, #082d1a 45%, #04190e 100%);
  z-index: 2147483000;
  display: none;
  overflow: hidden;
}
.fpc-badge-modal-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 215, 110, 0.55);
  color: #ffffff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483005;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.fpc-badge-iframe { width: 100%; height: 100%; border: none; display: block; }

/* Compact Desktop / Landscape Tablet (861px - 1060px): Keep horizontal 6-item nav crisp! */
@media (max-width: 1060px) and (min-width: 861px) {
  .navbar .container { padding: 0 12px; gap: 8px; }
  .nav-links { gap: 11px; }
  .nav-links > li > a,
  .nav-links > li > .nav-group-btn { font-size: 0.82rem; }
  .nav-links a.donate-btn,
  .nav-links a.donate-btn:visited { padding: 6px 14px; }
  .nav-user-name { display: none; }
  .nav-user-pill { padding: 0 8px 0 4px; gap: 5px; }
}

/* Mobile & Portrait Tablet Drawer (<= 860px: iPad Portrait 768px, Foldable Inner Portrait 717px, All Portrait/Small Phones) */
@media (max-width: 860px) {
  .navbar .container {
    padding: 0 14px;
    gap: 8px;
  }

  .navbar .brand {
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .navbar .brand-text {
    font-size: 0.74rem;
    line-height: 1.06;
  }

  .navbar-actions {
    gap: 6px;
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
    margin-left: 2px;
  }

  .nav-user-name { display: none; }
  .nav-user-pill { padding: 0 8px 0 4px; gap: 5px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100% !important;
    gap: 4px;
    padding: 12px 14px 28px !important;
    margin: 0 !important;
    align-items: stretch;
    border-top: 2px solid var(--fpc-gold);
    border-bottom: 1px solid rgba(245, 215, 110, 0.25);
    max-height: calc(100dvh - 68px) !important;
    max-height: calc(100vh - 68px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    background: #041d10;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
    border-radius: 0 0 18px 18px;
    z-index: 10002;
  }

  .nav-links.open { display: flex !important; }
  .nav-has-dropdown::after { display: none; }

  .nav-links > li > a,
  .nav-links > li > .nav-group-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.94rem;
    text-align: left;
  }

  .nav-links > li > a:not(.donate-btn).active::after,
  .nav-links > li > .nav-group-btn.active::after {
    display: none;
  }

  .nav-links > li > a:not(.donate-btn):hover,
  .nav-links > li > a:not(.donate-btn).active,
  .nav-links > li > .nav-group-btn.active {
    background: rgba(255, 255, 255, 0.08);
  }

  /* Inline accordion submenu inside mobile drawer */
  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: none;
    padding: 6px;
    margin: 2px 0 6px;
    animation: none;
  }

  .nav-submenu a {
    color: #e6f2ea !important;
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .nav-submenu a small {
    color: rgba(255, 255, 255, 0.62);
  }

  .nav-submenu a:hover,
  .nav-submenu a.active {
    background: rgba(245, 215, 110, 0.16);
    color: var(--fpc-gold) !important;
  }

  .nav-links a.donate-btn,
  .nav-links a.donate-btn:visited {
    justify-content: center;
    text-align: center;
    margin-top: 8px;
    padding: 11px 18px;
    border-radius: 50px;
  }

  .user-dropdown-panel {
    position: fixed;
    top: 68px;
    right: 10px;
    left: auto;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    z-index: 10006;
  }
}

/* Foldable Cover Screen (344px) & Very Narrow Phones (<= 400px) */
@media (max-width: 400px) {
  .navbar .container {
    padding: 0 10px;
    gap: 6px;
  }
  .navbar .brand {
    gap: 6px;
  }
  .navbar .brand .logo {
    width: 38px;
    height: 38px;
  }
  .navbar .brand-text {
    font-size: 0.68rem;
    line-height: 1.05;
  }
  .nav-auth-btn {
    padding: 0 10px;
    font-size: 0.78rem;
    height: 34px;
    gap: 5px;
  }
  .nav-auth-btn svg {
    width: 14px;
    height: 14px;
  }
  .nav-user-pill {
    height: 34px;
    padding: 0 6px 0 4px;
  }
  .nav-user-pill .role-badge {
    display: none;
  }
  .nav-toggle {
    padding: 4px;
  }
  .nav-toggle span {
    width: 22px;
  }
  .user-dropdown-panel {
    top: 68px;
    right: 8px;
    width: calc(100vw - 16px);
  }
}

/* Profile Photo Uploader Section */
.fpc-avatar-picker-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.fpc-avatar-preview-box { position: relative; width: 86px; height: 86px; margin: 0 auto 10px; border-radius: 50%; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); cursor: pointer; }
.fpc-avatar-preview-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--fpc-dark-green); display: block; }
.fpc-avatar-preview-initials { width: 100%; height: 100%; border-radius: 50%; background: var(--fpc-dark-green); color: var(--fpc-gold); font-weight: 800; font-size: 32px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--fpc-dark-green); }
.fpc-avatar-camera-badge { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--fpc-gold); color: var(--fpc-dark-green); border: 2px solid #ffffff; display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); pointer-events: none; }
.fpc-avatar-upload-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(6, 45, 25, 0.85); color: var(--fpc-gold); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; z-index: 5; backdrop-filter: blur(4px); }
.fpc-avatar-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.fpc-avatar-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 16px; font-size: 12px; font-weight: 600; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; cursor: pointer; transition: all 0.18s ease; }
.fpc-avatar-btn:hover { background: #e2e8f0; border-color: #94a3b8; color: #0f172a; }
.fpc-avatar-btn.primary { background: rgba(10, 74, 42, 0.08); border-color: rgba(10, 74, 42, 0.35); color: var(--fpc-dark-green); font-weight: 700; }
.fpc-avatar-btn.primary:hover { background: var(--fpc-dark-green); color: #ffffff; border-color: var(--fpc-dark-green); }

/* Hide member-only navigation & footer items until authenticated */
body:not(.fpc-authenticated) .fpc-auth-only { display: none !important; }
body.fpc-authenticated .fpc-guest-only { display: none !important; }

/* Sign-In Button Subtle Highlight & Pointing Notification Bubble */
body:not(.fpc-authenticated) .nav-auth-btn {
  box-shadow: 0 0 0 0 rgba(245, 215, 110, 0.55);
  animation: fpcSigninPulse 2.8s ease-in-out infinite;
}
@keyframes fpcSigninPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 215, 110, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(245, 215, 110, 0); }
}

.fpc-signin-nudge {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 20px);
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #f5d76e;
  border-radius: 14px;
  padding: 13px 15px 12px;
  box-shadow: 0 14px 36px rgba(6, 45, 25, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 10060;
  text-align: left;
  animation: fpcNudgeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fpcNudgeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fpc-signin-nudge-arrow {
  position: absolute;
  top: -9px;
  right: 28px;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border-top: 2px solid #f5d76e;
  border-left: 2px solid #f5d76e;
  transform: rotate(45deg);
}
.fpc-signin-nudge-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fpc-signin-nudge-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.fpc-signin-nudge-title {
  font-weight: 800;
  font-size: 13px;
  color: #0a4a2a;
  margin-bottom: 5px;
  padding-right: 22px;
}
.fpc-signin-nudge-body {
  font-size: 12px;
  line-height: 1.48;
  color: #475569;
  margin: 0 0 10px;
}
.fpc-signin-nudge-body strong { color: #0a4a2a; font-weight: 700; }
.fpc-signin-nudge-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fpc-signin-nudge-cta {
  background: #0a4a2a;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.fpc-signin-nudge-cta:hover { background: #146c43; }
.fpc-signin-nudge-later {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
}
.fpc-signin-nudge-later:hover { color: #1e293b; text-decoration: underline; }

/* Member Benefits Grid inside Login Modal */
.fpc-login-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
  text-align: left;
}
.fpc-login-benefit-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4faf6;
  border: 1px solid #d5e7dc;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0a4a2a;
  line-height: 1.25;
}
.fpc-guest-continue-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.fpc-guest-continue-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

@media (max-width: 860px) {
  .fpc-signin-nudge {
    position: fixed;
    top: 74px;
    right: 10px;
    width: min(306px, calc(100vw - 20px));
  }
  .fpc-signin-nudge-arrow { right: 56px; }
}
@media (max-width: 400px) {
  .fpc-login-benefits { grid-template-columns: 1fr; }
  .fpc-signin-nudge { padding: 11px 12px 10px; }
  .fpc-signin-nudge-arrow { right: 48px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .fpc-signin-nudge {
    padding: 9px 12px;
    width: 280px;
  }
  .fpc-signin-nudge-body { font-size: 11px; margin-bottom: 7px; }
  .fpc-login-benefits { gap: 4px; margin-bottom: 10px; }
  .fpc-login-benefit-pill { padding: 4px 7px; font-size: 11px; }
}

/* Mandatory Clickwrap Privacy Policy & Terms Consent Gate (2026-12-01) */
.fpc-policy-update-banner {
  display: none;
  text-align: left;
  background: #fff8e1;
  border: 1.5px solid #f59e0b;
  color: #78350f;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.48;
}
.fpc-policy-update-banner strong { color: #92400e; }

.fpc-policy-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: #f4faf6;
  border: 1.5px solid #b7dfc3;
  border-radius: 10px;
  padding: 11px 12px;
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.fpc-policy-consent-box:hover {
  border-color: #0a4a2a;
  background: #ecf7f0;
}
.fpc-policy-consent-box input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin-top: 2px;
  accent-color: #0a4a2a;
  cursor: pointer;
}
.fpc-policy-consent-box a {
  color: #0a4a2a;
  font-weight: 700;
  text-decoration: underline;
}
.fpc-policy-consent-box.attention {
  border-color: #c62828 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.16);
  animation: fpcConsentShake 0.36s ease;
}
@keyframes fpcConsentShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.fpc-signin-gate {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.fpc-signin-gate.locked {
  opacity: 0.45;
  filter: grayscale(0.35);
}
.fpc-signin-shield {
  display: none;
  position: absolute;
  inset: -4px;
  z-index: 10;
  cursor: not-allowed;
  border-radius: 28px;
}
.fpc-signin-gate.locked .fpc-signin-shield {
  display: block;
}
.fpc-signin-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 8px;
}
