/* =========================================================
   ROOT / GLOBAL
========================================================= */
:root {
  --luxury-gold: #C6A75E;
  --deep-navy: #051428;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  background: var(--deep-navy);
  color: #ffffff;
}

.page-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding-top: 86px;
  padding-bottom: 140px;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 1000;
  background: rgba(5, 20, 40, 0.6);
  border-bottom: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 6px; /* 👈 move it up (try 4–8px range) */
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(198,167,94,0.5),
    var(--luxury-gold),
    rgba(198,167,94,0.5),
    transparent
  );

}

/* NAVBAR SIDES */
.nav-left,
.nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.nav-left {
  left: -3px;
}

.nav-right {
  right: 16px;
  gap: 8px;
}

/* BRAND */
.nav-brand {
  display: flex;
  align-items: center;
  height: auto;
}

.nav-brand img {
  display: block;
  width: 110px;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: scale(1.8);
  transform-origin: left center;
  transition: 0.3s ease;
}

.nav-brand img:hover {
  transform: scale(1.9);
  filter: drop-shadow(0 0 10px rgba(198, 167, 94, 0.6));
}


/* CENTER LINKS */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 58px);
  max-width: calc(100% - 460px);
}

.nav-links a {
  color: var(--luxury-gold);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--luxury-gold);
}

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--luxury-gold);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.language-switcher label {
  color: var(--luxury-gold);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.language-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 5px 30px 5px 18px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  border-radius: 14px;
  background: rgba(10, 25, 45, 0.75);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='%23C6A75E' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23C6A75E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

.language-switcher select option {
  background: #44556b;
  color: white;
}

#selectedFlag {
  display: none;
  position: absolute;
  left: 8px;
  top: 50%;
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* MOBILE LANGUAGE */
.mobile-language-dropdown {
  display: none;
  position: relative;
}

.mobile-language-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  border-radius: 20px;
  background: rgba(10, 25, 45, 0.75);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-language-trigger img,
.mobile-language-option img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.mobile-language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 110px;
  display: none;
  overflow: hidden;
  z-index: 99999;
  background: #4d617d;
  border: 1px solid rgba(198, 167, 94, 0.25);
  border-radius: 14px;
}

.mobile-language-menu.open {
  display: block;
}

.mobile-language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;

  white-space: nowrap;
  flex-wrap: nowrap;
  line-height: 1;

  border: none;
  background: transparent;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mobile-language-option:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   LOGIN / PROFILE
========================================================= */
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid rgba(198, 167, 94, 0.45);
  border-radius: 999px;
  background: rgba(10, 25, 45, 0.75);
  color: var(--luxury-gold);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.login-btn:hover {
  background: rgba(198, 167, 94, 0.14);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(198, 167, 94, 0.2);
}

.profile-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, #e3c67a, #c6a75e);
  box-shadow:
    0 4px 12px rgba(198, 167, 94, 0.4),
    0 0 8px rgba(198, 167, 94, 0.25);
  transition: all 0.25s ease;
}

.avatar-circle:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 8px 18px rgba(198, 167, 94, 0.6),
    0 0 12px rgba(198, 167, 94, 0.35);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 270px;
  min-width: 270px;
  display: none;
  flex-direction: column;
  padding: 14px;
  z-index: 9999;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 52, 0.98),
    rgba(4, 16, 32, 0.99)
  );
  border: 1px solid rgba(198, 167, 94, 0.34);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(198, 167, 94, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-dropdown.show {
  display: flex;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  min-height: 42px;
  box-sizing: border-box;
  padding: 11px 12px;
  margin: 2px 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  transition: 0.25s ease;
}

.profile-dropdown a:hover {
  background: rgba(198, 167, 94, 0.14);
  color: var(--luxury-gold);
}

  .profile-dropdown .app-dashboard-link {
  display: none !important;
}

.profile-dropdown a:first-of-type {
  border-top: none !important;
}

.profile-dropdown-user {
  padding-top: 4px;
}


/* ================= APP DROPDOWN LINKS ================= */

.app-support-links {
  display: none;
}

.capacitor-app .app-support-links {
  display: block;
}

.profile-dropdown-divider {
  height: 1px;
  margin: 10px 12px;
  opacity: 0.7;
  background: rgba(198, 167, 94, 0.22);
}

.capacitor-app .site-footer {
  display: none !important;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  padding: 28px 18px 18px;
  background: rgba(5, 20, 40, 0.95);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  border-top: 1px solid rgba(198, 167, 94, 0.4);
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h4 {
  margin-bottom: 10px;
  color: var(--luxury-gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-column p,
.footer-column a {
  display: block;
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.4;
}

.footer-column a:hover {
  color: var(--luxury-gold);
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-platform .footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
  max-width: 220px;
}

/* FOOTER ACCORDION */
.footer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--luxury-gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.footer-content {
  overflow: hidden;
}

.footer-accordion.open .footer-arrow {
  transform: rotate(45deg);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C6A75E;
  border: 1px solid rgba(198,167,94,0.45);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.footer-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-socials a:hover {
  background: rgba(198,167,94,0.14);
  color: #fff;
}
/* =========================================================
   COOKIE BANNER
========================================================= */
#cookieBanner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;
  box-sizing: border-box;
  padding: 14px 16px;
  z-index: 10000;
  border-radius: 18px;
  border: 1px solid rgba(198, 167, 94, 0.65);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(210, 225, 245, 0.10)
  );
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    0 0 16px rgba(198, 167, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#cookieBanner .cookie-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#cookieBanner .cookie-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

#cookieBanner .cookie-buttons {
  display: flex;
  width: 100%;
  gap: 10px;
}

#cookieBanner .cookie-buttons button {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

#acceptCookies {
  border: 1px solid rgba(198, 167, 94, 0.85);
  background: linear-gradient(145deg, #e3c67a, #c6a75e);
  color: #051428;
  box-shadow:
    0 8px 18px rgba(198, 167, 94, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#acceptCookies:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(198, 167, 94, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

#rejectCookies {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#rejectCookies:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.52);
}

#cookieBanner .cookie-buttons button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.22);
}

/* =========================================================
   MOBILE / TABLET
========================================================= */
@media screen and (max-width: 768px) {
  
   .page-wrapper {
    padding-top: 76px;
  }

  .navbar {
    height: 84px;
    padding: 0 14px;
    background: rgba(5, 20, 40, 0.88);
    overflow: visible;
  }

.nav-left {
  left: 20px;
}

.nav-brand img {
  width: 96px !important;
  height: auto !important;
  max-height: 44px !important;
  transform: none !important;
  object-fit: contain !important;
}

  .nav-brand img:hover {
    transform: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    right: 14px;
    gap: 10px;
    max-width: none;
  }

  .language-switcher label,
  .language-select-wrapper {
    display: none;
  }

  .mobile-language-dropdown {
    display: flex;
  }

  .mobile-language-trigger {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .avatar-circle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .hero-glass {
    padding: 18px;
  }

  .glass-section {
    padding: 20px;
  }

  .site-footer {
    padding: 26px 16px 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 14px;
  }

  .footer-column {
    min-width: unset;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-column h4 {
    display: none;
  }

  .footer-toggle {
    display: flex;
    cursor: pointer;
  }

  .footer-arrow {
    display: inline-block;
  }

  .footer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-accordion.open .footer-content {
    max-height: 400px;
  }

  .footer-column p,
  .footer-column a {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 8px;
    font-size: 12px;
  }

  .footer-platform .footer-content {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding-top: 14px;
  }

}
/* =========================================================
   SMALL TABLET / MOBILE COOKIE
========================================================= */
@media screen and (max-width: 640px) {
  #cookieBanner {
    bottom: 10px;
    width: calc(100% - 16px);
    max-width: none;
    padding: 12px 12px 14px;
    border-radius: 16px;
  }

  #cookieBanner .cookie-content p {
    font-size: 12px;
    line-height: 1.4;
  }

  #cookieBanner .cookie-buttons {
    gap: 8px;
  }

  #cookieBanner .cookie-buttons button {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media screen and (max-width: 480px) {
  .nav-brand img {
    width: 150px !important;
    height: auto !important;
    max-height: 60px !important;
  }

  .avatar-circle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
}

/* ================= MOBILE / APP NAV + PROFILE DROPDOWN ================= */

@media screen and (max-width: 768px) {
  .navbar {
    padding-left: 18px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  .nav-right {
    right: 34px !important;
    gap: 10px !important;
  }

  .avatar-circle {
    margin-right: 0 !important;
    transform: none !important;
  
  }
}

html.capacitor-app .navbar,
body.capacitor-app .navbar {
  padding-left: 18px !important;
  padding-right: calc(34px + env(safe-area-inset-right)) !important;
}

html.capacitor-app .nav-right,
body.capacitor-app .nav-right {
  right: calc(34px + env(safe-area-inset-right)) !important;
}

/* Dashboard link hidden on web, visible in app */
.profile-dropdown .app-dashboard-link {
  display: none !important;
}

html.capacitor-app .profile-dropdown .app-dashboard-link,
body.capacitor-app .profile-dropdown .app-dashboard-link {
  display: flex !important;
}

/* Brand + user only visible in app */
.profile-dropdown-brand,
.profile-dropdown-user {
  display: none !important;
}

html.capacitor-app .profile-dropdown-brand,
html.capacitor-app .profile-dropdown-user,
body.capacitor-app .profile-dropdown-brand,
body.capacitor-app .profile-dropdown-user {
  display: block !important;
}

html.capacitor-app .profile-dropdown,
body.capacitor-app .profile-dropdown {
  max-height: calc(100vh - 95px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  scrollbar-width: none !important;
  width: min(300px, calc(100vw - 32px)) !important;

  right: -2px !important;
  left: auto !important;
  transform: translateX(22px) !important;

  padding: 4px 12px 6px !important;
  z-index: 999999 !important;
}

html.capacitor-app .profile-dropdown::-webkit-scrollbar,
body.capacitor-app .profile-dropdown::-webkit-scrollbar {
  width: 0 !important;
  background: transparent !important;
}

html.capacitor-app .profile-dropdown *,
body.capacitor-app .profile-dropdown * {
  box-sizing: border-box !important;
}

html.capacitor-app .profile-dropdown-brand,
body.capacitor-app .profile-dropdown-brand {
  padding: 2px 0 3px !important;
  text-align: center !important;
}

html.capacitor-app .profile-dropdown-brand img,
body.capacitor-app .profile-dropdown-brand img {
  width: 64px !important;
  max-width: 64px !important;
  max-height: 24px !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
  margin: 0 auto !important;
}

html.capacitor-app .profile-dropdown-user,
body.capacitor-app .profile-dropdown-user {
  padding: 2px 0 4px !important;
  margin: 0 0 3px !important;
}

html.capacitor-app .profile-dropdown-greeting,
body.capacitor-app .profile-dropdown-greeting {
  font-size: 8px !important;
  line-height: 1 !important;
  margin-bottom: 0 !important;
  letter-spacing: 1px !important;
}

html.capacitor-app #dropdownUserName,
body.capacitor-app #dropdownUserName {
  font-size: 12px !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

html.capacitor-app .profile-dropdown a,
body.capacitor-app .profile-dropdown a {
  font-size: 11px !important;
  line-height: 1.2 !important;

  padding: 8px 2px !important;
  margin: 1px 0 !important;

  min-height: 40px !important;

  display: flex !important;
  align-items: center !important;

  text-indent: 0 !important;
}

html.capacitor-app .profile-dropdown-divider,
body.capacitor-app .profile-dropdown-divider {
  margin: 3px 0 !important;
}

/* ================= CLEAN INSURANCE BADGE ================= */

.profile-vessel-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
}

.profile-vessel-link > span:first-child {
  flex: 0 1 auto !important;
}

.navbar-insurance-dot {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;

  margin-left: 8px !important;
  border-radius: 50% !important;

  background: #dc2626 !important;
  color: #ffffff !important;

  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 20px !important;

  position: relative !important;
  z-index: 99999999 !important;
}

.profile-vessel-link.insurance-alert {
  color: #ffffff !important;
  background: rgba(220, 38, 38, 0.22) !important;
  border: 1px solid rgba(220, 38, 38, 0.65) !important;
  border-radius: 10px !important;
  padding: 6px 8px !important;
}

.profile-vessel-link.insurance-alert::before {
  content: "⚠️";
  margin-right: 6px;
}

/* FINAL FIX: MOBILE LANGUAGE DROPDOWN */
@media screen and (max-width: 768px) {
  .mobile-language-menu {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
}

  .mobile-language-option {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;

    width: 100% !important;
    min-width: 118px !important;

    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-height: 1 !important;

    padding: 10px 14px !important;
    text-align: left !important;
  }

  .mobile-language-option span,
  .mobile-language-option strong {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    display: inline-block !important;
  }

  .mobile-language-option img {
    flex: 0 0 16px !important;
  }
}