/* ═══════════════════════════════════════════════════════════════════════
   ZENITHMARINER — RIVA & ABYSSAL LIQUID GLASS DESIGN SYSTEM
   Dark Mode: Deep Aegean Night | Light Mode: Warm Riviera Cream & Linen
   Buttons: High-Refraction Living Liquid Water Droplets
   ═══════════════════════════════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
  --bg: #03101c;
  --bg2: #061828;
  --bg3: #0a2236;
  --deep: #03101c;
  --navy: #03101c;
  --ocean: #0b2942;

  /* Sea-Glass Surfaces */
  --surface: rgba(12, 38, 60, .44);
  --surface2: rgba(18, 52, 80, .58);
  --surface-high: rgba(26, 70, 104, .68);
  --glass: rgba(8, 28, 46, .56);
  --glass-border: rgba(164, 228, 246, .14);
  --border: rgba(164, 228, 246, .11);
  --border2: rgba(164, 228, 246, .20);

  /* Typography Ink */
  --text: #f3f9fc;
  --text2: #9db9cc;
  --text3: #5f8097;
  --on-surface: #f3f9fc;

  /* Mediterranean Water & Marine Brass Accents */
  --accent: #56d7ec;
  --accent2: #a5eef9;
  --accent-dim: rgba(86, 215, 236, .14);
  --zm-gold: #d4b16a;
  --zm-gold-dim: rgba(212, 177, 106, .15);
  --green: #3cd6a5;
  --red: #f27474;
  --orange: #f4a259;
  --yellow: #e9c46a;

  /* Shell Tokens */
  --zm-sidebar-w: 264px;
  --zm-sidebar-bg: rgba(4, 18, 32, .78);
  --zm-topbar-bg: rgba(4, 18, 32, .68);

  /* Font Families — Architectural Swiss Marine Precision */
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ── WARM RIVIERA CREAM & YACHT LINEN LIGHT MODE ── */
[data-theme="light"] {
  --bg: #f5efe4;
  --bg2: #ede4d4;
  --bg3: #fcf9f2;
  --deep: #f5efe4;
  --navy: #f5efe4;
  --ocean: #e4d9c6;
  --bg4: #efe7d9;

  /* Warm Alabaster & Cream Surfaces */
  --surface: rgba(252, 248, 240, .78);
  --surface2: rgba(246, 239, 226, .92);
  --surface-high: rgba(238, 229, 212, .95);
  --glass: rgba(253, 249, 241, .84);
  --glass-border: rgba(154, 118, 56, .18);
  --border: rgba(142, 108, 54, .15);
  --border2: rgba(142, 108, 54, .25);

  /* Warm Maritime Navy Ink */
  --text: #142636;
  --text2: #4c5e6c;
  --text3: #7d8992;
  --on-surface: #142636;
  --ivory: #142636;
  --id: #4c5e6c;

  /* Mediterranean Cove Turquoise & Warm Teak Brass */
  --accent: #0b849e;
  --accent2: #07596e;
  --accent-dim: rgba(11, 132, 158, .12);
  --brass: #0b849e;
  --bl: #07596e;
  --foam: #0b849e;
  --zm-gold: #9d7732;
  --zm-gold-dim: rgba(157, 119, 50, .14);
  --zm-sidebar-bg: rgba(250, 245, 236, .92);
  --zm-topbar-bg: rgba(248, 242, 232, .86);

  --green: #0d8a64;
  --red: #c93b3b;
  --orange: #c97316;
  --yellow: #b7791f;
}

/* ── GLOBAL BASE & MEDITERRANEAN CAUSTIC AMBIENCE ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes zmCausticDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .84; }
  50%  { transform: translate3d(-1.8%, 1.4%, 0) scale(1.04); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: .84; }
}

[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 52% at 84% 8%, rgba(28, 146, 178, .22) 0%, rgba(10, 68, 98, .08) 42%, transparent 72%),
    radial-gradient(ellipse 55% 45% at 14% 92%, rgba(212, 177, 106, .08) 0%, transparent 65%),
    radial-gradient(ellipse 46% 36% at 50% 42%, rgba(86, 215, 236, .05) 0%, transparent 70%),
    linear-gradient(165deg, #041524 0%, #03101c 55%, #020b14 100%) !important;
  animation: zmCausticDrift 22s ease-in-out infinite;
}

[data-theme="light"] body::before {
  content: '';
  display: block !important;
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 88% 6%, rgba(58, 198, 222, .14) 0%, rgba(154, 226, 238, .05) 45%, transparent 70%),
    radial-gradient(ellipse 58% 48% at 12% 92%, rgba(212, 174, 106, .20) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 250, 240, .85) 0%, transparent 65%),
    linear-gradient(175deg, #f8f3ea 0%, #f3ecdf 55%, #ece2d1 100%) !important;
}

/* Custom Ocean-Glass Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, .20);
  border-radius: 99px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(142, 108, 54, .24);
}

/* ── ARCHITECTURAL SWISS MARITIME TYPOGRAPHY ── */
.hero-title,
.pt,
.ltitle,
.mtitle,
.modal-ttl {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  font-style: normal !important;
}

.hero-title {
  font-size: clamp(28px, 3.4vw, 42px) !important;
  line-height: 1.1 !important;
  text-shadow: 0 6px 28px rgba(2, 12, 24, .52);
}

.pt {
  font-size: clamp(22px, 2.4vw, 31px) !important;
  line-height: 1.14 !important;
}

.lzt {
  font-family: var(--font-display) !important;
  font-size: 16.5px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

.lmr {
  font-family: var(--font-sans) !important;
  font-size: 9px !important;
  letter-spacing: 3.4px !important;
  color: var(--zm-gold) !important;
  font-weight: 600 !important;
}

#clock,
.zm-kpi-val,
.cval,
.cl-stat-val,
.tbl-r {
  font-variant-numeric: tabular-nums;
}

#clock {
  font-family: var(--font-mono) !important;
  font-size: 11.5px !important;
  letter-spacing: 1px !important;
  color: var(--accent2) !important;
}

[data-theme="light"] #clock {
  color: var(--accent2) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   HIGH-REFRACTION LIVING LIQUID-WATER BUTTONS ("SU GİBİ BUTONLAR")
   Crystal translucency + wet curved meniscus + lower internal caustic glow
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes zmWaterRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.12);
    opacity: .82;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.8);
    opacity: 0;
  }
}

.zm-water-ripple {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(255, 255, 255, .56) 0%, rgba(114, 236, 252, .36) 44%, rgba(56, 214, 240, 0) 72%);
  border: 1.5px solid rgba(255, 255, 255, .62);
  animation: zmWaterRippleAnim .72s cubic-bezier(.16, .84, .32, 1) forwards;
}

/* Base Optical Water-Droplet Physics */
.btn,
.lbtn,
.zm-quick-pill,
.zm-icon-btn,
.theme-toggle,
.cal-nb,
.cl-mini-btn,
.sb-edit-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-sans) !important;
  backdrop-filter: blur(18px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(210%) !important;
  transition:
    transform .26s cubic-bezier(.22, 1, .36, 1),
    box-shadow .3s cubic-bezier(.22, 1, .36, 1),
    border-color .24s ease,
    background .28s ease,
    color .2s ease !important;
}

/* Curved Wet Specular Meniscus Highlight (Top Liquid Arc) */
.btn::before,
.lbtn::before,
.zm-quick-pill::before,
.zm-icon-btn::before,
.theme-toggle::before,
.cal-nb::before {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 7%;
  right: 7%;
  height: 48%;
  border-radius: 999px 999px 55% 55% / 100% 100% 52% 52%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .66) 0%,
    rgba(255, 255, 255, .22) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Caustic Sunlight Sweep Across Water Surface on Hover */
.btn::after,
.lbtn::after,
.zm-quick-pill::after,
.cal-nb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 18%,
    rgba(255, 255, 255, .44) 46%,
    rgba(154, 242, 255, .28) 54%,
    transparent 78%
  );
  transform: translateX(-135%) skewX(-20deg);
  transition: transform .72s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
  z-index: 1;
}

.btn:hover::after,
.lbtn:hover::after,
.zm-quick-pill:hover::after,
.cal-nb:hover::after {
  transform: translateX(140%) skewX(-20deg);
}

.btn:hover,
.lbtn:hover,
.zm-quick-pill:hover,
.zm-icon-btn:hover,
.theme-toggle:hover,
.cal-nb:hover {
  transform: translateY(-2px) scale(1.016);
}

.btn:active,
.lbtn:active,
.zm-quick-pill:active,
.zm-icon-btn:active,
.theme-toggle:active,
.cal-nb:active {
  transform: translateY(0.5px) scale(0.972) !important;
}

/* ── PRIMARY LIQUID SEA-WATER BUTTON (.bp / .zm-hero-cta / .lbtn) ── */
.btn.bp,
.zm-hero-cta,
.lbtn {
  border-radius: 999px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.025em !important;
  background:
    radial-gradient(ellipse 85% 55% at 50% 108%, rgba(126, 245, 255, .64) 0%, rgba(28, 198, 228, .22) 55%, transparent 78%),
    linear-gradient(
      180deg,
      rgba(136, 238, 252, .52) 0%,
      rgba(26, 174, 206, .66) 44%,
      rgba(10, 122, 158, .80) 100%
    ) !important;
  border: 1px solid rgba(206, 250, 255, .58) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .82),
    inset 0 -6px 14px rgba(102, 242, 255, .58),
    0 12px 28px -6px rgba(14, 168, 206, .52),
    0 3px 10px rgba(4, 34, 52, .28) !important;
  text-shadow: 0 1px 2px rgba(4, 32, 48, .42);
}

.btn.bp:hover,
.zm-hero-cta:hover,
.lbtn:hover {
  opacity: 1 !important;
  border-color: rgba(232, 253, 255, .82) !important;
  background:
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(154, 248, 255, .78) 0%, rgba(42, 212, 240, .30) 55%, transparent 78%),
    linear-gradient(
      180deg,
      rgba(160, 244, 255, .62) 0%,
      rgba(32, 190, 222, .74) 44%,
      rgba(12, 134, 170, .86) 100%
    ) !important;
  box-shadow:
    inset 0 2px 2.5px rgba(255, 255, 255, .92),
    inset 0 -7px 16px rgba(136, 246, 255, .72),
    0 16px 34px -6px rgba(22, 192, 228, .62),
    0 4px 12px rgba(4, 34, 52, .30) !important;
}

/* ── SECONDARY CRYSTAL WATER-GLASS BUTTON (.bg / .cal-nb / .cl-mini-btn) ── */
.btn.bg,
.cal-nb,
.cl-mini-btn {
  border-radius: 999px !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  background:
    radial-gradient(ellipse 80% 55% at 50% 108%, rgba(114, 236, 252, .30) 0%, transparent 72%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .20) 0%,
      rgba(136, 228, 248, .09) 52%,
      rgba(24, 128, 162, .16) 100%
    ) !important;
  border: 1px solid rgba(196, 244, 255, .32) !important;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, .52),
    inset 0 -4px 10px rgba(86, 224, 246, .28),
    0 8px 20px -6px rgba(4, 24, 40, .42) !important;
}

.btn.bg:hover,
.cal-nb:hover,
.cl-mini-btn:hover {
  border-color: rgba(196, 248, 255, .58) !important;
  background:
    radial-gradient(ellipse 85% 60% at 50% 108%, rgba(126, 242, 255, .44) 0%, transparent 74%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .28) 0%,
      rgba(144, 236, 252, .16) 52%,
      rgba(26, 146, 182, .24) 100%
    ) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .68),
    inset 0 -5px 12px rgba(102, 236, 252, .42),
    0 12px 26px -6px rgba(16, 158, 198, .38) !important;
}

/* Light-mode clear crystal water buttons on warm cream surfaces */
[data-theme="light"] .btn.bg,
[data-theme="light"] .cal-nb,
[data-theme="light"] .cl-mini-btn {
  color: #0b3c50 !important;
  background:
    radial-gradient(ellipse 85% 58% at 50% 112%, rgba(74, 218, 242, .36) 0%, rgba(166, 238, 248, .12) 55%, transparent 78%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .74) 0%,
      rgba(224, 247, 252, .42) 52%,
      rgba(176, 234, 246, .34) 100%
    ) !important;
  border: 1px solid rgba(32, 168, 198, .34) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .96),
    inset 0 -5px 12px rgba(48, 206, 234, .34),
    0 8px 20px -6px rgba(14, 134, 168, .22),
    0 2px 5px rgba(72, 54, 28, .08) !important;
}

[data-theme="light"] .btn.bg:hover,
[data-theme="light"] .cal-nb:hover,
[data-theme="light"] .cl-mini-btn:hover {
  color: #062b3b !important;
  border-color: rgba(18, 162, 196, .54) !important;
  background:
    radial-gradient(ellipse 88% 62% at 50% 112%, rgba(74, 224, 248, .52) 0%, rgba(166, 242, 252, .18) 55%, transparent 78%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .86) 0%,
      rgba(216, 246, 252, .56) 52%,
      rgba(154, 232, 248, .44) 100%
    ) !important;
  box-shadow:
    inset 0 2px 2.5px rgba(255, 255, 255, 1),
    inset 0 -6px 14px rgba(44, 212, 240, .46),
    0 12px 26px -6px rgba(14, 152, 188, .32) !important;
}

/* Transparent Crystal Water Buttons Over Dark Hero Photos (in BOTH Light & Dark Modes!) */
.page-hero .btn.bg,
[data-theme="light"] .page-hero .btn.bg {
  color: #ffffff !important;
  background:
    radial-gradient(ellipse 85% 58% at 50% 110%, rgba(124, 242, 255, .38) 0%, transparent 72%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .28) 0%,
      rgba(168, 238, 252, .12) 55%,
      rgba(24, 140, 174, .20) 100%
    ) !important;
  border: 1px solid rgba(220, 250, 255, .48) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .66),
    inset 0 -5px 12px rgba(102, 238, 255, .34),
    0 10px 24px -6px rgba(2, 18, 34, .48) !important;
  text-shadow: 0 1px 2px rgba(2, 16, 30, .45);
}

.page-hero .btn.bg:hover,
[data-theme="light"] .page-hero .btn.bg:hover {
  color: #ffffff !important;
  border-color: rgba(240, 253, 255, .76) !important;
  background:
    radial-gradient(ellipse 90% 62% at 50% 110%, rgba(148, 248, 255, .52) 0%, transparent 74%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .38) 0%,
      rgba(176, 242, 255, .20) 55%,
      rgba(26, 156, 194, .30) 100%
    ) !important;
}

/* Emerald Sea-Foam Liquid Button */
.btn.bs,
.lbtn.green {
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(ellipse 85% 55% at 50% 108%, rgba(124, 252, 214, .58) 0%, transparent 75%),
    linear-gradient(180deg, rgba(96, 238, 192, .48) 0%, rgba(18, 168, 126, .66) 50%, rgba(8, 118, 88, .82) 100%) !important;
  border: 1px solid rgba(178, 252, 228, .54) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .74),
    inset 0 -6px 14px rgba(84, 242, 196, .48),
    0 10px 24px -6px rgba(16, 168, 126, .44) !important;
}

/* Maritime Coral Liquid Button */
.btn.br {
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(ellipse 85% 55% at 50% 108%, rgba(255, 174, 174, .52) 0%, transparent 75%),
    linear-gradient(180deg, rgba(252, 148, 148, .44) 0%, rgba(206, 72, 72, .62) 55%, rgba(146, 38, 38, .78) 100%) !important;
  border: 1px solid rgba(255, 206, 206, .50) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .66),
    inset 0 -5px 12px rgba(252, 134, 134, .42),
    0 10px 22px -6px rgba(196, 68, 68, .40) !important;
}

/* Spherical Water-Droplet Icon Buttons */
.zm-icon-btn,
.theme-toggle {
  border-radius: 999px !important;
  width: 38px !important;
  height: 38px !important;
  background:
    radial-gradient(circle at 50% 108%, rgba(102, 236, 252, .32) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(86, 215, 236, .08) 100%) !important;
  border: 1px solid rgba(196, 244, 255, .32) !important;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, .56),
    inset 0 -4px 10px rgba(86, 224, 246, .28),
    0 6px 16px -4px rgba(2, 14, 26, .42) !important;
  color: var(--accent2) !important;
}

.zm-icon-btn:hover,
.zm-icon-btn.active,
.theme-toggle:hover {
  border-color: rgba(196, 248, 255, .64) !important;
  background:
    radial-gradient(circle at 50% 108%, rgba(126, 246, 255, .52) 0%, transparent 68%),
    linear-gradient(180deg, rgba(144, 238, 252, .34) 0%, rgba(20, 148, 184, .26) 100%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .74),
    inset 0 -5px 12px rgba(102, 238, 255, .48),
    0 10px 22px -4px rgba(24, 178, 216, .46) !important;
}

[data-theme="light"] .zm-icon-btn,
[data-theme="light"] .theme-toggle {
  background:
    radial-gradient(circle at 50% 112%, rgba(68, 218, 242, .38) 0%, transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(208, 242, 250, .44) 100%) !important;
  border: 1px solid rgba(28, 164, 194, .34) !important;
  color: #0b6d85 !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .98),
    inset 0 -4px 10px rgba(48, 206, 234, .34),
    0 6px 16px -4px rgba(14, 134, 168, .22) !important;
}

/* Quick Access Liquid Water Pills */
.zm-quick-pill {
  border-radius: 999px !important;
  padding: 10px 18px !important;
  background:
    radial-gradient(ellipse 80% 55% at 50% 110%, rgba(102, 236, 252, .26) 0%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(86, 215, 236, .08) 100%) !important;
  border: 1px solid rgba(196, 244, 255, .26) !important;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, .44),
    inset 0 -4px 10px rgba(86, 224, 246, .22),
    0 8px 20px -6px rgba(2, 16, 30, .40) !important;
}

.zm-quick-pill:hover {
  border-color: rgba(186, 246, 255, .54) !important;
  background:
    radial-gradient(ellipse 85% 60% at 50% 110%, rgba(126, 244, 255, .40) 0%, transparent 74%),
    linear-gradient(180deg, rgba(144, 238, 252, .26) 0%, rgba(20, 140, 174, .20) 100%) !important;
}

[data-theme="light"] .zm-quick-pill {
  color: #0b3c50 !important;
  background:
    radial-gradient(ellipse 85% 58% at 50% 112%, rgba(68, 218, 242, .34) 0%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(214, 244, 250, .44) 100%) !important;
  border: 1px solid rgba(28, 164, 194, .32) !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .96),
    inset 0 -5px 11px rgba(48, 206, 234, .30),
    0 8px 18px -6px rgba(14, 134, 168, .20) !important;
}

/* ── DESKTOP SIDEBAR & TOPBAR (YACHT BRIDGE CONSOLE) ── */
.rope-top {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, var(--zm-gold) 22%, var(--accent) 62%, transparent) !important;
}

.zm-sidebar {
  background: var(--zm-sidebar-bg) !important;
  border-right: 1px solid var(--glass-border) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04), 8px 0 36px rgba(2, 10, 20, .35);
}

[data-theme="light"] .zm-sidebar {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .8), 6px 0 28px rgba(72, 54, 28, .06);
}

.zm-vessel-card {
  border-radius: 16px !important;
  background: linear-gradient(155deg, rgba(86, 215, 236, .12), rgba(212, 177, 106, .08)) !important;
  border: 1px solid rgba(186, 238, 255, .20) !important;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .24), 0 8px 20px -8px rgba(2, 14, 26, .45);
}

[data-theme="light"] .zm-vessel-card {
  background: linear-gradient(155deg, rgba(255, 252, 246, .95), rgba(238, 228, 208, .75)) !important;
  border: 1px solid rgba(157, 119, 50, .24) !important;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 1), 0 8px 20px -10px rgba(72, 54, 28, .12);
}

.zm-vessel-ico {
  border-radius: 11px !important;
  background: linear-gradient(180deg, rgba(130, 232, 248, .28), rgba(14, 124, 155, .24)) !important;
  border: 1px solid rgba(186, 244, 255, .30);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45);
}

[data-theme="light"] .zm-vessel-ico {
  background: linear-gradient(180deg, rgba(196, 242, 250, .82), rgba(134, 218, 234, .46)) !important;
  border-color: rgba(18, 146, 176, .28);
  color: #096880 !important;
}

.zm-sidebar .ni {
  border-radius: 13px !important;
  padding: 10px 13px !important;
}

.zm-sidebar .ni.active {
  background: linear-gradient(180deg, rgba(130, 232, 248, .22) 0%, rgba(18, 126, 160, .14) 100%) !important;
  border: 1px solid rgba(164, 236, 252, .28);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .34),
    inset 0 -3px 10px rgba(86, 215, 236, .18),
    0 6px 18px -8px rgba(14, 158, 198, .4);
}

[data-theme="light"] .zm-sidebar .ni.active {
  background:
    radial-gradient(ellipse 80% 60% at 50% 112%, rgba(68, 218, 242, .30) 0%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(214, 244, 250, .54) 100%) !important;
  border: 1px solid rgba(22, 156, 186, .30);
  color: #083344 !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 1),
    inset 0 -4px 10px rgba(48, 206, 234, .24),
    0 6px 16px -8px rgba(14, 134, 168, .22);
}

.zm-sidebar .ni.active::before {
  background: linear-gradient(180deg, var(--accent2), var(--accent)) !important;
  box-shadow: 0 0 12px rgba(86, 215, 236, .75);
}

header.zm-topbar {
  background: var(--zm-topbar-bg) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(2, 12, 24, .22) !important;
}

[data-theme="light"] header.zm-topbar {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .8), 0 8px 24px rgba(72, 54, 28, .06) !important;
}

.zm-bc-title {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

.zm-bc-pill,
.zm-clock-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(86, 215, 236, .04)) !important;
  border: 1px solid rgba(186, 238, 255, .18) !important;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .24);
}

[data-theme="light"] .zm-bc-pill,
[data-theme="light"] .zm-clock-pill {
  background: linear-gradient(180deg, rgba(255, 252, 246, .92), rgba(242, 234, 218, .72)) !important;
  border: 1px solid rgba(154, 118, 56, .22) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1);
}

.lang-select {
  border-radius: 999px !important;
  padding: 7px 13px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(86, 215, 236, .05)) !important;
  border: 1px solid rgba(186, 238, 255, .20) !important;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .26);
}

[data-theme="light"] .lang-select {
  background: linear-gradient(180deg, rgba(255, 252, 246, .94), rgba(242, 234, 218, .74)) !important;
  border: 1px solid rgba(154, 118, 56, .24) !important;
  color: #142636 !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* ── CINEMATIC MARITIME HERO & MARINE GLASS CARDS ── */
.page-hero {
  border-radius: 24px !important;
  border: 1px solid rgba(186, 238, 255, .18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 24px 56px -14px rgba(2, 10, 22, .62) !important;
}

[data-theme="light"] .page-hero {
  border: 1px solid rgba(154, 118, 56, .22) !important;
  box-shadow: 0 20px 44px -14px rgba(48, 36, 18, .24) !important;
}

#page-seyir .page-hero .hero-overlay {
  background:
    linear-gradient(100deg, rgba(3, 16, 28, .90) 0%, rgba(4, 22, 38, .56) 52%, rgba(4, 24, 42, .22) 100%),
    linear-gradient(to top, rgba(3, 16, 28, .94) 0%, transparent 62%) !important;
}

.zm-hero-meta {
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 1.5px !important;
  background: linear-gradient(180deg, rgba(8, 28, 46, .74), rgba(4, 18, 32, .82)) !important;
  border: 1px solid rgba(212, 177, 106, .40) !important;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .22), 0 6px 18px rgba(2, 10, 20, .35);
}

/* Marine-Glass Containers Site-Wide */
.zm-kpi-card,
.card,
.tbl,
.cal-wrap,
.cl-card,
.crew-card,
.month-acc,
.modal,
.lcard,
.fin-toolbar,
.fin-kpi,
.fin-chart-box,
.fin-cat-card,
.saf-card {
  border-radius: 20px !important;
  background: linear-gradient(165deg, rgba(16, 48, 74, .50) 0%, rgba(6, 24, 40, .62) 100%) !important;
  backdrop-filter: blur(20px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(155%) !important;
  border: 1px solid rgba(164, 228, 246, .16) !important;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, .20),
    0 16px 38px -12px rgba(2, 10, 22, .52) !important;
}

/* Warm Cream Alabaster Containers in Light Mode */
[data-theme="light"] .zm-kpi-card,
[data-theme="light"] .card,
[data-theme="light"] .tbl,
[data-theme="light"] .cal-wrap,
[data-theme="light"] .cl-card,
[data-theme="light"] .crew-card,
[data-theme="light"] .month-acc,
[data-theme="light"] .modal,
[data-theme="light"] .lcard,
[data-theme="light"] .fin-toolbar,
[data-theme="light"] .fin-kpi,
[data-theme="light"] .fin-chart-box,
[data-theme="light"] .fin-cat-card,
[data-theme="light"] .saf-card {
  background: linear-gradient(165deg, rgba(255, 252, 246, .95) 0%, rgba(245, 238, 224, .88) 100%) !important;
  border: 1px solid rgba(154, 118, 56, .18) !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 1),
    0 12px 28px -12px rgba(72, 54, 28, .12) !important;
}

[data-theme="light"] .tbl-h {
  background: rgba(154, 118, 56, .06) !important;
  border-bottom-color: rgba(154, 118, 56, .14) !important;
}

[data-theme="light"] .tbl-r {
  border-bottom-color: rgba(154, 118, 56, .10) !important;
}

.zm-kpi-card:hover {
  border-color: rgba(130, 232, 248, .38) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .32),
    inset 0 -3px 12px rgba(86, 215, 236, .12),
    0 20px 40px -12px rgba(8, 120, 158, .32) !important;
}

[data-theme="light"] .zm-kpi-card:hover {
  border-color: rgba(18, 154, 184, .36) !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 1),
    0 16px 32px -12px rgba(14, 124, 154, .18) !important;
}

.zm-kpi-val {
  font-family: var(--font-display) !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  font-variant-numeric: tabular-nums;
}

.zm-kpi-ico {
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(130, 232, 248, .24), rgba(18, 120, 152, .18)) !important;
  border: 1px solid rgba(186, 244, 255, .28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .42);
}

[data-theme="light"] .zm-kpi-ico {
  background: linear-gradient(180deg, rgba(196, 242, 250, .80), rgba(136, 220, 236, .42)) !important;
  border-color: rgba(18, 146, 176, .28);
  color: #096880 !important;
}

.zm-kpi-ico.gold {
  background: linear-gradient(180deg, rgba(232, 198, 128, .26), rgba(168, 130, 58, .18)) !important;
  border-color: rgba(232, 198, 128, .36);
}

[data-theme="light"] .zm-kpi-ico.gold {
  background: linear-gradient(180deg, rgba(246, 230, 194, .88), rgba(224, 196, 138, .48)) !important;
  border-color: rgba(157, 119, 50, .32);
  color: #8c6622 !important;
}

.zm-kpi-ico.green {
  background: linear-gradient(180deg, rgba(96, 238, 192, .24), rgba(16, 138, 102, .18)) !important;
  border-color: rgba(140, 246, 212, .32);
}

[data-theme="light"] .zm-kpi-ico.green {
  background: linear-gradient(180deg, rgba(204, 248, 232, .85), rgba(146, 232, 200, .44)) !important;
  border-color: rgba(13, 138, 100, .28);
  color: #0b7856 !important;
}

/* Recessed Marine-Glass Form Controls */
.form-input,
.form-select,
.form-textarea,
.finput,
.fselect {
  border-radius: 12px !important;
  background: rgba(4, 18, 32, .48) !important;
  border: 1px solid rgba(164, 228, 246, .18) !important;
  box-shadow: inset 0 2px 5px rgba(2, 10, 20, .35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.finput:focus,
.fselect:focus {
  border-color: rgba(86, 215, 236, .62) !important;
  box-shadow: inset 0 2px 5px rgba(2, 10, 20, .3), 0 0 0 3px rgba(86, 215, 236, .16) !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea,
[data-theme="light"] .finput,
[data-theme="light"] .fselect {
  background: rgba(255, 253, 248, .92) !important;
  border: 1px solid rgba(154, 118, 56, .24) !important;
  color: #142636 !important;
  box-shadow: inset 0 1px 3px rgba(72, 54, 28, .06);
}

/* Status Bar */
.sb {
  background: rgba(3, 15, 27, .86) !important;
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(164, 228, 246, .12) !important;
}

[data-theme="light"] .sb {
  background: rgba(248, 242, 231, .92) !important;
  border-top: 1px solid rgba(154, 118, 56, .18) !important;
  color: #4c5e6c !important;
}

/* ── FLOATING LIQUID-GLASS MOBILE DOCK (MOBBIN / iOS LIQUID GLASS) ── */
@media (max-width: 860px) {
  .zm-tabbar {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    border-radius: 26px !important;
    padding: 7px 6px 8px !important;
    background: linear-gradient(
      180deg,
      rgba(16, 52, 80, .78) 0%,
      rgba(5, 22, 38, .88) 100%
    ) !important;
    backdrop-filter: blur(26px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(210%) !important;
    border: 1px solid rgba(186, 242, 255, .28) !important;
    box-shadow:
      inset 0 1.5px 1px rgba(255, 255, 255, .36),
      inset 0 -2px 8px rgba(86, 215, 236, .18),
      0 14px 36px rgba(1, 10, 20, .62) !important;
  }

  [data-theme="light"] .zm-tabbar {
    background: linear-gradient(
      180deg,
      rgba(255, 252, 245, .92) 0%,
      rgba(241, 233, 218, .90) 100%
    ) !important;
    border: 1px solid rgba(154, 118, 56, .26) !important;
    box-shadow:
      inset 0 1.5px 1px rgba(255, 255, 255, 1),
      inset 0 -2px 8px rgba(48, 206, 234, .18),
      0 12px 30px rgba(72, 54, 28, .18) !important;
  }

  .zm-tab-btn.active .zm-tab-ico-wrap {
    background:
      radial-gradient(ellipse 85% 60% at 50% 110%, rgba(126, 245, 255, .52) 0%, transparent 74%),
      linear-gradient(180deg, rgba(130, 232, 248, .40) 0%, rgba(20, 146, 182, .38) 100%) !important;
    border: 1px solid rgba(196, 248, 255, .52);
    box-shadow:
      inset 0 1.5px 1px rgba(255, 255, 255, .68),
      inset 0 -3px 8px rgba(86, 232, 252, .42),
      0 4px 14px -2px rgba(24, 176, 214, .48);
  }

  [data-theme="light"] .zm-tab-btn.active .zm-tab-ico-wrap {
    background:
      radial-gradient(ellipse 85% 60% at 50% 110%, rgba(68, 218, 242, .46) 0%, transparent 74%),
      linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(176, 236, 248, .54) 100%) !important;
    border: 1px solid rgba(20, 158, 190, .42);
    box-shadow:
      inset 0 1.5px 1px rgba(255, 255, 255, 1),
      inset 0 -3px 8px rgba(44, 206, 234, .34),
      0 4px 12px -2px rgba(14, 134, 168, .26);
  }

  main {
    padding: 14px 14px calc(106px + env(safe-area-inset-bottom)) !important;
  }

  .zm-more-panel {
    background: linear-gradient(180deg, rgba(10, 34, 54, .94), rgba(4, 18, 32, .98)) !important;
    backdrop-filter: blur(26px) saturate(180%);
    border-top: 1px solid rgba(186, 242, 255, .24) !important;
  }

  [data-theme="light"] .zm-more-panel {
    background: linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(243, 235, 220, .98)) !important;
    border-top: 1px solid rgba(154, 118, 56, .24) !important;
  }

  .zm-more-item {
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(86, 215, 236, .04)) !important;
    border: 1px solid rgba(186, 238, 255, .18) !important;
    box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .24);
  }

  [data-theme="light"] .zm-more-item {
    background: linear-gradient(180deg, rgba(255, 253, 248, .95), rgba(242, 234, 218, .75)) !important;
    border: 1px solid rgba(154, 118, 56, .20) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   2-COLUMN LUXURY LOGIN SHOWCASE & DUAL CAPTAIN/CREW ACCESS PORTAL
   ═══════════════════════════════════════════════════════════════════════ */
.zm-login-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 56px 28px 36px;
}

@keyframes zmKenBurns {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  50%  { transform: scale(1.10) translate3d(-1.4%, -1%, 0); }
  100% { transform: scale(1.02) translate3d(0, 0, 0); }
}

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

@keyframes zmRadarPing {
  0%, 100% { opacity: .22; transform: scale(1); }
  50%      { opacity: .92; transform: scale(1.7); }
}

@keyframes zmWaveSlide {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-3.5%, 6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes zmWaveSlideRev {
  0%   { transform: translate3d(-2%, 4px, 0); }
  50%  { transform: translate3d(2.5%, -5px, 0); }
  100% { transform: translate3d(-2%, 4px, 0); }
}

@keyframes zmGlintFloat {
  0%   { transform: translate3d(0, 24px, 0) scale(.75); opacity: 0; }
  25%  { opacity: .75; }
  75%  { opacity: .45; }
  100% { transform: translate3d(18px, -110px, 0) scale(1.15); opacity: 0; }
}

@keyframes zmStaggerRise {
  0%   { opacity: 0; transform: translate3d(0, 18px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zmCardFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -5px, 0); }
}

.zm-login-bg {
  position: fixed;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  opacity: .44;
  z-index: 0;
  animation: zmKenBurns 32s ease-in-out infinite;
  will-change: transform;
}

.zm-login-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(16, 128, 162, .22) 0%, transparent 65%),
    linear-gradient(125deg, rgba(3, 14, 26, .88) 0%, rgba(3, 16, 28, .72) 48%, rgba(2, 11, 20, .92) 100%);
}

/* Ambient Rotating Navigation Radar Backdrop */
.zm-radar-ambient {
  position: fixed;
  right: -120px;
  top: -120px;
  width: 640px;
  height: 640px;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
}

.zm-radar-svg {
  width: 100%;
  height: 100%;
}

.zm-radar-sweep {
  transform-origin: 300px 300px;
  animation: zmRadarRotate 14s linear infinite;
}

.zm-radar-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: zmRadarPing 3.6s ease-in-out infinite;
}

.zm-radar-ping.p2 { animation-delay: 1.2s; }
.zm-radar-ping.p3 { animation-delay: 2.4s; }

/* Drifting Sunlit Ocean Glints */
.zm-ocean-glints {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.zm-glint {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 240, 255, .85) 0%, rgba(86, 215, 236, .18) 55%, transparent 75%);
  animation: zmGlintFloat 11s ease-in-out infinite;
}

.zm-glint.g1 { width: 8px; height: 8px; left: 10%; bottom: 14%; animation-duration: 10s; animation-delay: 0s; }
.zm-glint.g2 { width: 12px; height: 12px; left: 26%; bottom: 10%; animation-duration: 13s; animation-delay: 2s; }
.zm-glint.g3 { width: 6px; height: 6px; left: 42%; bottom: 18%; animation-duration: 9s; animation-delay: 4s; }
.zm-glint.g4 { width: 14px; height: 14px; left: 58%; bottom: 8%; animation-duration: 14s; animation-delay: 1s; background: radial-gradient(circle, rgba(232, 198, 128, .75) 0%, rgba(212, 177, 106, .16) 55%, transparent 75%); }
.zm-glint.g5 { width: 9px; height: 9px; left: 74%; bottom: 16%; animation-duration: 11.5s; animation-delay: 3.2s; }
.zm-glint.g6 { width: 7px; height: 7px; left: 88%; bottom: 12%; animation-duration: 9.8s; animation-delay: 5s; }
.zm-glint.g7 { width: 11px; height: 11px; left: 34%; bottom: 26%; animation-duration: 12.5s; animation-delay: 6.2s; }

/* Layered Translucent Mediterranean Waves along Bottom Edge */
.zm-login-waves {
  position: fixed;
  left: -4%;
  right: -4%;
  bottom: -8px;
  height: 150px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.zm-wave-svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 108%;
  height: 140px;
}

.zm-wave-svg.w1 path {
  fill: rgba(24, 152, 188, .12);
  stroke: rgba(130, 232, 248, .22);
  stroke-width: 1.2;
}
.zm-wave-svg.w1 { animation: zmWaveSlide 13s ease-in-out infinite; }

.zm-wave-svg.w2 path {
  fill: rgba(14, 110, 148, .16);
  stroke: rgba(165, 238, 249, .18);
  stroke-width: 1;
}
.zm-wave-svg.w2 { animation: zmWaveSlideRev 17s ease-in-out infinite; }

.zm-wave-svg.w3 path {
  fill: rgba(4, 24, 42, .42);
  stroke: rgba(212, 177, 106, .16);
  stroke-width: 1;
}
.zm-wave-svg.w3 { animation: zmWaveSlide 21s ease-in-out infinite; }

/* Staggered Entrance Choreography */
.zm-anim-in {
  opacity: 0;
  animation: zmStaggerRise .72s cubic-bezier(.22, 1, .36, 1) forwards;
}
.zm-anim-in.d1 { animation-delay: .05s; }
.zm-anim-in.d2 { animation-delay: .14s; }
.zm-anim-in.d3 { animation-delay: .22s; }
.zm-anim-in.d4 { animation-delay: .30s; }
.zm-anim-in.d5 { animation-delay: .38s; }
.zm-anim-in.d6 { animation-delay: .46s; }
.zm-anim-in.d7 { animation-delay: .54s; }

.zm-login-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.18fr 0.88fr;
  gap: 48px;
  align-items: center;
  margin: auto;
}

.zm-login-grid .lbox {
  animation: zmStaggerRise .8s cubic-bezier(.22, 1, .36, 1) .18s both;
}

.zm-login-grid .lcard {
  animation: zmCardFloat 8s ease-in-out 1.2s infinite;
}

.zm-login-story {
  color: #f3f9fc;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zm-story-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zm-story-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
}

.zm-story-h1 span {
  font-weight: 400;
  color: #8ce7f6;
}

.zm-story-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(226, 241, 249, .84);
  max-width: 560px;
}

.zm-story-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zm-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 48, 74, .48), rgba(5, 22, 38, .62));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(164, 228, 246, .16);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .18);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .25s ease, box-shadow .28s ease;
}

.zm-pillar:hover {
  transform: translateX(6px);
  border-color: rgba(130, 232, 248, .38);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .28), 0 12px 28px -10px rgba(14, 158, 198, .30);
}

.zm-pillar-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(130, 232, 248, .28), rgba(16, 128, 162, .22));
  border: 1px solid rgba(186, 244, 255, .32);
  color: #9beeff;
  flex-shrink: 0;
}

.zm-pillar-ttl {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.zm-pillar-txt {
  font-size: 12.4px;
  line-height: 1.54;
  color: rgba(206, 228, 240, .80);
}

/* Sleek Live Maritime Bridge Telemetry Strip */
.zm-bridge-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 42, 66, .54), rgba(4, 18, 32, .68));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(186, 238, 255, .18);
  width: fit-content;
}

.zm-bs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(214, 238, 248, .86);
  letter-spacing: .03em;
}

.zm-bs-item .material-symbols-outlined {
  font-size: 15px;
  color: var(--accent);
}

.zm-bs-sep {
  width: 1px;
  height: 12px;
  background: rgba(186, 238, 255, .20);
}

@media (prefers-reduced-motion: reduce) {
  .zm-login-bg,
  .zm-radar-sweep,
  .zm-radar-ping,
  .zm-glint,
  .zm-wave-svg,
  .zm-anim-in,
  .zm-login-grid .lbox,
  .zm-login-grid .lcard {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Login Card Mode Switcher (Captain vs Crew) */
.zm-auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(4, 16, 28, .62);
  border: 1px solid rgba(186, 238, 255, .16);
  margin-bottom: 18px;
}

.zm-auth-mode-btn {
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(206, 228, 240, .74);
  font-family: var(--font-sans);
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
}

.zm-auth-mode-btn.active {
  color: #ffffff;
  border-color: rgba(186, 244, 255, .44);
  background: linear-gradient(180deg, rgba(130, 232, 248, .34), rgba(16, 134, 168, .48));
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .52), 0 6px 16px -4px rgba(14, 168, 206, .42);
}

.zm-crew-login-hint {
  font-size: 12px;
  line-height: 1.52;
  color: rgba(214, 236, 248, .86);
  background: rgba(86, 215, 236, .10);
  border: 1px solid rgba(86, 215, 236, .26);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CAPTAIN RBAC, ROLE PILL, CREW RECEIPTS & ACCOUNTING CREW SUMMARY
   ═══════════════════════════════════════════════════════════════════════ */
.zm-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(212, 177, 106, .08));
  border: 1px solid rgba(212, 177, 106, .34);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.zm-role-pill:hover {
  border-color: rgba(164, 236, 252, .52);
  transform: translateY(-1px);
}

.zm-role-pill.crew-mode {
  background: linear-gradient(180deg, rgba(124, 234, 252, .22), rgba(18, 126, 160, .20));
  border-color: rgba(130, 232, 248, .48);
}

[data-theme="light"] .zm-role-pill {
  background: linear-gradient(180deg, rgba(255, 252, 246, .95), rgba(242, 233, 214, .82));
  border-color: rgba(157, 119, 50, .30);
  color: #142636;
}

.zm-role-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
}

.zm-crew-lock-banner {
  max-width: 1320px;
  margin: 0 auto 16px;
  padding: 11px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(24, 126, 160, .20), rgba(10, 44, 68, .42));
  border: 1px solid rgba(130, 232, 248, .32);
  backdrop-filter: blur(14px);
}

[data-theme="light"] .zm-crew-lock-banner {
  background: linear-gradient(160deg, rgba(214, 244, 250, .82), rgba(252, 248, 240, .92));
  border-color: rgba(18, 146, 176, .30);
}

/* Captain Assignment Modal Controls */
.zm-master-pin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  margin-bottom: 14px;
}

.zm-role-form-box {
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.zm-perm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.zm-perm-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .18s;
}

.zm-perm-toggle:hover {
  border-color: var(--accent);
}

.zm-perm-toggle.sensitive {
  border-color: rgba(242, 116, 116, .28);
}

.zm-perm-toggle input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.zm-pt-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.zm-pt-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 1px;
}

.zm-sens-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(242, 116, 116, .16);
  color: var(--red);
  margin-left: 4px;
}

.zm-member-card {
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
}

.zm-perm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.zm-perm-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(86, 215, 236, .26);
}

.zm-perm-chip.warn {
  background: rgba(242, 116, 116, .14);
  color: var(--red);
  border-color: rgba(242, 116, 116, .30);
}

.zm-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border2);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, transform .15s;
}

.zm-switch-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Crew Receipt Page (#page-fisler) */
.zm-fis-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.zm-fis-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(86, 215, 236, .26);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2);
}

.zm-fis-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.zm-fis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.zm-fis-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.zm-fis-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface2);
}

.zm-fis-date {
  font-size: 11px;
  color: var(--text3);
}

.zm-fis-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.zm-fis-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.zm-fis-amt {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* Captain Accounting Crew Summary Card & Badges */
.zm-crew-sum-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.zm-crew-sum-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zm-crew-sum-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}

.zm-crew-sum-pill strong {
  color: var(--red);
  font-weight: 700;
}

.zm-crew-sum-pill.active,
.zm-crew-sum-pill:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.zm-crew-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(86, 215, 236, .30);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.zm-crew-badge.inline {
  margin-right: 6px;
  font-size: 10.5px;
  padding: 2px 7px;
}

@media (max-width: 980px) {
  .zm-login-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 12px;
  }
  .zm-login-shell {
    align-items: flex-start;
    padding: 58px 16px 32px;
  }
  .zm-fis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .zm-perm-grid {
    grid-template-columns: 1fr;
  }
  .zm-role-pill span:not(.material-symbols-outlined) {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   FULL iPHONE / MOBILE APP COMPATIBILITY & RESPONSIVE ENGINE
   Fixes: Calendar 7-day grid, Topbar spacing, Swipeable tables, iOS forms
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .cal-months {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  /* Put Login Form first on phones so crew/captain sign in immediately without scrolling */
  .zm-login-grid .lbox {
    order: -1;
    max-width: 100% !important;
  }
  .zm-radar-ambient {
    width: 360px;
    height: 360px;
    right: -90px;
    top: -90px;
    opacity: .38;
  }
}

@media (max-width: 860px) {
  /* 1. Crisp Mobile Topbar — Zero Overlap Between Brand, Role Pill & Icons */
  header.zm-topbar {
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  .zm-topbar-left {
    gap: 8px !important;
    min-width: 0;
    flex: 1 1 auto;
  }
  .zm-mobile-brand {
    gap: 7px !important;
    min-width: 0;
  }
  .zm-mobile-brand .lc2 {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
  }
  .zm-mobile-brand .lzt {
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  header.zm-topbar .hdr-r {
    gap: 5px !important;
    flex-shrink: 0;
  }
  .zm-role-pill {
    padding: 5px 9px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .zm-role-pill .material-symbols-outlined {
    font-size: 14px !important;
  }
  .zm-icon-btn,
  .theme-toggle {
    width: 34px !important;
    height: 34px !important;
  }
  .zm-icon-btn .material-symbols-outlined {
    font-size: 18px !important;
  }

  /* 2. Annual Logbook Calendar — Full 7 Days (Pt–Pz) Never Clipped on iPhone */
  .cal-wrap {
    padding: 14px 10px !important;
  }
  .cal-nav {
    gap: 8px !important;
  }
  .cal-year {
    font-size: 18px !important;
  }
  .cal-nb {
    padding: 7px 12px !important;
    font-size: 11.5px !important;
  }
  .cal-months {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .cal-month {
    min-width: 0 !important;
  }
  .cal-mh {
    padding: 7px 8px !important;
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
  }
  .cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 6px 5px !important;
  }
  .cal-dh {
    font-size: 8.5px !important;
    letter-spacing: 0 !important;
    padding: 2px 0 3px !important;
    min-width: 0 !important;
  }
  .cal-d {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
  }
  .cal-legend {
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
  }

  /* 3. Swipeable Wide Tables (Seyir Logbook, Accounting Ledger, Day Panel) */
  .tbl,
  .day-body {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .tbl > .tbl-h,
  .tbl > div > .tbl-r {
    min-width: 540px;
  }
  .day-body .tbl-h,
  .day-body .tbl-r {
    min-width: 660px;
  }
  #day-panel .tbl-h,
  #day-panel .tbl-r {
    min-width: 560px;
  }
  .day-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* 4. Multi-Column Forms, Grids & Modals Full Mobile Adaptation */
  .form-row,
  .form-row3,
  .wh-form-inputs,
  .ch-mrow,
  .ch-mrow3,
  .cl-add-r2,
  .cl-add-r3 {
    grid-template-columns: 1fr !important;
  }
  .inv-grid,
  .fin-charts-grid,
  .fin-cat-grid,
  .cl-cols {
    grid-template-columns: 1fr !important;
  }
  .ch-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .inv-edit-thumbs {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ph {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .fin-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .fin-donut-layout {
    flex-direction: column !important;
    align-items: center !important;
  }
  .fin-quick-form {
    grid-template-columns: 1fr !important;
  }

  /* 5. iOS Safari Native Input / Date Picker & Safe-Area Modal Fix */
  .form-input,
  .form-select,
  .form-textarea,
  .finput,
  .fselect,
  input[type="date"],
  input[type="time"] {
    font-size: 16px !important;
    min-height: 42px;
    max-width: 100%;
    min-width: 0;
  }
  .modal {
    width: calc(100vw - 20px) !important;
    max-height: 88dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom)) !important;
  }
  .page-hero .hero-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 12px !important;
  }
}

@media (max-width: 360px) {
  .cal-months {
    grid-template-columns: 1fr !important;
  }
  .zm-mobile-brand .lzt {
    font-size: 11.5px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   CHECKLIST ROW REDESIGN (LARGE LEFT TEXT + COMPACT RIGHT STATUS ICONS)
   & UNIFIED BOTTOM-RIGHT LIQUID MENU BUTTON (ALL MOBILE PAGES INSIDE)
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Checklist Task Row: Crisp Left Typography + Compact Right Status Controls */
.cl-task-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "body status"
    "body acts" !important;
  column-gap: 14px !important;
  row-gap: 7px !important;
  align-items: center !important;
  padding: 14px 18px !important;
}

.cl-task-body {
  grid-area: body !important;
  min-width: 0 !important;
}

.cl-task-text {
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.48 !important;
  color: var(--text) !important;
  margin-bottom: 7px !important;
}

.cl-st-group {
  grid-area: status !important;
  justify-self: end !important;
  padding: 2px !important;
  gap: 2px !important;
  border-radius: 9px !important;
}

.cl-st-btn {
  width: 26px !important;
  height: 26px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

.cl-st-btn.eye svg {
  width: 13px !important;
  height: 13px !important;
}

.cl-row-acts {
  grid-area: acts !important;
  justify-self: end !important;
  width: auto !important;
}

.cl-row-acts .cl-mini-btn {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

/* 2. Unified Bottom-Right Floating Liquid Menu Button (Mobile Only) */
.zm-fab-menu {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 910;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background:
    radial-gradient(ellipse 85% 58% at 50% 110%, rgba(126, 245, 255, .62) 0%, rgba(28, 198, 228, .22) 55%, transparent 78%),
    linear-gradient(180deg, rgba(136, 238, 252, .52) 0%, rgba(22, 162, 196, .74) 46%, rgba(8, 108, 146, .88) 100%);
  backdrop-filter: blur(22px) saturate(210%);
  -webkit-backdrop-filter: blur(22px) saturate(210%);
  border: 1px solid rgba(206, 250, 255, .58);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .80),
    inset 0 -6px 14px rgba(102, 242, 255, .54),
    0 14px 32px -4px rgba(8, 146, 186, .58),
    0 4px 12px rgba(2, 16, 30, .42);
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
  overflow: hidden;
  isolation: isolate;
}

.zm-fab-menu::before {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 10%;
  right: 10%;
  height: 46%;
  border-radius: 999px 999px 55% 55% / 100% 100% 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .64) 0%, rgba(255, 255, 255, .14) 60%, transparent 100%);
  pointer-events: none;
}

.zm-fab-menu .material-symbols-outlined {
  font-size: 20px;
  color: #ffffff;
}

.zm-fab-menu:active {
  transform: scale(0.95);
}

/* Unified All-Pages Sheet Styling */
.zm-more-sec-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--text3);
  margin: 10px 2px 6px;
}

.zm-more-panel {
  max-height: 86dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.zm-more-item.active {
  border-color: rgba(130, 232, 248, .54) !important;
  background: linear-gradient(180deg, rgba(130, 232, 248, .26), rgba(18, 134, 168, .22)) !important;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .44), 0 6px 16px -6px rgba(14, 158, 198, .38) !important;
}

[data-theme="light"] .zm-more-item.active {
  border-color: rgba(14, 146, 178, .48) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(186, 238, 248, .58)) !important;
  color: #063344 !important;
}

/* Always hide legacy topbar grid button — bottom-right FAB replaces it cleanly on mobile */
#hdr-more-btn {
  display: none !important;
}

@media (max-width: 860px) {
  .zm-fab-menu {
    display: inline-flex !important;
  }
  /* More vertical breathing room since bottom dock bar is gone */
  main {
    padding: 14px 14px calc(86px + env(safe-area-inset-bottom)) !important;
  }
  .cl-task-row {
    padding: 13px 12px !important;
    column-gap: 10px !important;
    align-items: start !important;
  }
  .cl-task-text {
    font-size: 14.5px !important;
    line-height: 1.44 !important;
  }
  .cl-st-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 11.5px !important;
  }
  .cl-role-badge,
  .cl-period-badge,
  .cl-date-badge,
  .cl-notdone-badge {
    font-size: 10.5px !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   ZENITH AI — SMART INVENTORY VISION MODAL & CREW VERIFICATION UI
   ═════════════════════════════════════════════════════════════════════════════ */
.zmai-trigger-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.zmai-mo {
  z-index: 1200 !important;
  padding: 16px;
}

.zmai-modal {
  width: min(680px, 100%) !important;
  max-width: 100% !important;
  max-height: min(88vh, 840px) !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.zmai-modal-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(86, 215, 236, .08), transparent);
}

.zmai-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.zmai-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.zmai-sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--text2);
}

.zmai-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .16s ease;
}

.zmai-close-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.zmai-modal-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zmai-section-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text3);
  margin-bottom: 8px;
}

.zmai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.zmai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}

.zmai-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.zmai-chip.active {
  background: linear-gradient(180deg, rgba(86, 215, 236, .24), rgba(14, 146, 178, .18));
  border-color: rgba(86, 215, 236, .68);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(14, 146, 178, .22);
}

.zmai-tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(86, 215, 236, .09);
  border: 1px solid rgba(86, 215, 236, .26);
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--text2);
}

.zmai-tip-ico {
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}

.zmai-alert.is-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .34);
  color: #fca5a5;
  font-size: 12.5px;
  line-height: 1.45;
}

.zmai-viewfinder {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: rgba(3, 14, 28, .72);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zmai-viewfinder.is-idle {
  padding: 28px 20px;
  text-align: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(86, 215, 236, .12), transparent 62%),
    var(--surface);
}

.zmai-idle-icon {
  font-size: 36px;
  line-height: 1;
}

.zmai-idle-copy {
  margin: 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.52;
  color: var(--text2);
}

.zmai-idle-btns,
.zmai-capture-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.zmai-upload-lbl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.zmai-viewfinder.is-live video {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.zmai-reticle {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.zmai-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(114, 232, 250, .85);
  border-style: solid;
  border-width: 0;
}

.zmai-corner.tl { top: 0; left: 0; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 6px; }
.zmai-corner.tr { top: 0; right: 0; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 6px; }
.zmai-corner.bl { bottom: 0; left: 0; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 6px; }
.zmai-corner.br { bottom: 0; right: 0; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 6px; }

.zmai-cam-flip {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(5, 18, 34, .64);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zmai-shutter-btn {
  min-width: 170px;
  font-weight: 700 !important;
}

/* Analyzing stage */
.zmai-analyzing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 6px 8px;
}

.zmai-scan-frame {
  position: relative;
  width: min(380px, 100%);
  max-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(86, 215, 236, .45);
  box-shadow: 0 12px 32px rgba(0, 14, 36, .35);
}

.zmai-scan-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(.85) contrast(1.05);
}

.zmai-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #67e8f9, #ffffff, #67e8f9, transparent);
  box-shadow: 0 0 18px 5px rgba(86, 215, 236, .68);
  animation: zmaiScanSweep 1.8s ease-in-out infinite;
}

@keyframes zmaiScanSweep {
  0%   { top: 6%; opacity: .75; }
  50%  { top: 92%; opacity: 1; }
  100% { top: 6%; opacity: .75; }
}

.zmai-analyzing-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.zmai-analyzing-sub {
  font-size: 12.5px;
  color: var(--text2);
  max-width: 440px;
  line-height: 1.48;
}

/* Crew verification / review stage */
.zmai-review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.zmai-review-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border2);
}

.zmai-review-meta {
  min-width: 0;
  flex: 1;
}

.zmai-review-ttl {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.zmai-review-sub {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.42;
  margin-top: 2px;
}

.zmai-review-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.zmai-count-pill,
.zmai-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.zmai-count-pill {
  background: rgba(16, 185, 129, .15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, .3);
}

.zmai-quota-pill {
  background: rgba(86, 215, 236, .12);
  color: var(--accent);
  border: 1px solid rgba(86, 215, 236, .28);
}

.zmai-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zmai-item-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zmai-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 10px;
}

.zmai-mini-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 4px;
}

.zmai-input,
.zmai-select {
  width: 100% !important;
  min-height: 38px !important;
  font-size: 14px !important;
  padding: 7px 10px !important;
}

.zmai-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.zmai-item-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.zmai-conf-pill,
.zmai-subcat-pill,
.zmai-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.zmai-conf-pill.is-high {
  background: rgba(16, 185, 129, .14);
  color: #34d399;
}

.zmai-conf-pill.is-med {
  background: rgba(245, 158, 11, .16);
  color: #fbbf24;
}

.zmai-subcat-pill {
  background: var(--surface2);
  color: var(--text2);
}

.zmai-match-badge.is-update {
  background: rgba(56, 189, 248, .15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, .3);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.zmai-match-badge.is-new {
  background: rgba(212, 175, 55, .14);
  color: #e5c66b;
  border: 1px solid rgba(212, 175, 55, .28);
}

.zmai-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.zmai-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.zmai-step-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.zmai-qty-input {
  width: 58px;
  height: 34px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zmai-del-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, .28);
  background: rgba(239, 68, 68, .1);
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.zmai-del-btn:hover {
  background: rgba(239, 68, 68, .22);
}

.zmai-empty {
  padding: 26px 16px;
  border-radius: 14px;
  border: 1px dashed var(--border2);
  text-align: center;
}

.zmai-empty-ttl {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.zmai-empty-sub {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text2);
}

.zmai-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.zmai-review-left-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zmai-confirm-btn {
  font-weight: 700 !important;
  padding: 10px 18px !important;
}

/* Warm Riviera Cream Light Mode refinements */
[data-theme="light"] .zmai-modal-hdr {
  background: linear-gradient(180deg, rgba(14, 146, 178, .08), rgba(245, 239, 228, .2));
}

[data-theme="light"] .zmai-tip-banner {
  background: rgba(14, 146, 178, .08);
  border-color: rgba(14, 146, 178, .24);
  color: #163247;
}

[data-theme="light"] .zmai-chip.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(186, 238, 248, .55));
  border-color: rgba(14, 146, 178, .52);
  color: #063344;
}

[data-theme="light"] .zmai-alert.is-error {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .28);
  color: #991b1b;
}

[data-theme="light"] .zmai-count-pill {
  background: rgba(5, 150, 105, .12);
  color: #047857;
}

[data-theme="light"] .zmai-conf-pill.is-high {
  background: rgba(5, 150, 105, .12);
  color: #047857;
}

[data-theme="light"] .zmai-conf-pill.is-med {
  background: rgba(217, 119, 6, .14);
  color: #b45309;
}

[data-theme="light"] .zmai-match-badge.is-update {
  background: rgba(14, 116, 144, .12);
  color: #0e7490;
  border-color: rgba(14, 116, 144, .28);
}

[data-theme="light"] .zmai-match-badge.is-new {
  background: rgba(180, 134, 42, .14);
  color: #8a6214;
  border-color: rgba(180, 134, 42, .3);
}

[data-theme="light"] .zmai-qty-input,
[data-theme="light"] .zmai-input,
[data-theme="light"] .zmai-select {
  background: #fdfaf3 !important;
  color: #142636 !important;
  border-color: rgba(168, 144, 108, .38) !important;
}

[data-theme="light"] .zmai-step-btn,
[data-theme="light"] .zmai-close-btn {
  background: #f6efe2 !important;
  color: #142636 !important;
  border-color: rgba(168, 144, 108, .36) !important;
}

[data-theme="light"] .zmai-modal .btn.bg,
[data-theme="light"] .zmai-modal .zmai-upload-lbl {
  color: #0e3347 !important;
  border-color: rgba(14, 146, 178, .38) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(214, 240, 248, .72)) !important;
  text-shadow: none !important;
}

[data-theme="light"] .zmai-del-btn {
  background: rgba(220, 38, 38, .09) !important;
  color: #b91c1c !important;
  border-color: rgba(220, 38, 38, .28) !important;
}

/* Mobile / iPhone responsive adjustments */
@media (max-width: 680px) {
  .zmai-mo {
    padding: 10px;
  }
  .zmai-modal {
    max-height: 92vh !important;
    border-radius: 18px !important;
  }
  .zmai-modal-hdr {
    padding: 16px 16px 12px;
  }
  .zmai-title {
    font-size: 17.5px;
  }
  .zmai-modal-body {
    padding: 14px 16px 18px;
  }
  .zmai-item-main {
    grid-template-columns: 1fr;
  }
  .zmai-review-top {
    align-items: flex-start;
  }
  .zmai-review-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .zmai-confirm-btn {
    width: 100%;
    justify-content: center;
  }
  .inv-hdr-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zmai-scan-beam {
    animation: none;
    top: 50%;
  }
}

/* Persistent Alert Banner (never auto-dismisses; requires user Close / Retry) */
.zmai-persistent-alert {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 14px;
  border-width: 1px;
  border-style: solid;
}

.zmai-persistent-alert.is-error {
  background: rgba(239, 68, 68, .13);
  border-color: rgba(239, 68, 68, .42);
  color: #fecaca;
}

.zmai-persistent-alert.is-warn {
  background: rgba(245, 158, 11, .13);
  border-color: rgba(245, 158, 11, .42);
  color: #fde68a;
}

.zmai-alert-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.zmai-alert-ico {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.zmai-alert-copy {
  min-width: 0;
  flex: 1;
}

.zmai-alert-ttl {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
}

.zmai-alert-msg {
  font-size: 12.5px;
  line-height: 1.48;
  opacity: .94;
  word-break: break-word;
}

.zmai-alert-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.zmai-alert-btn {
  min-height: 34px !important;
  padding: 6px 13px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

[data-theme="light"] .zmai-persistent-alert.is-error {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .34);
  color: #991b1b;
}

[data-theme="light"] .zmai-persistent-alert.is-warn {
  background: rgba(217, 119, 6, .1);
  border-color: rgba(217, 119, 6, .35);
  color: #92400e;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ENTERPRISE EMAIL-INVITE ROSTER, SAFETY DRILL & CREW WORKSPACE HEADER
   ═════════════════════════════════════════════════════════════════════════════ */
.zm-captain-roster-card {
  padding: 20px 22px !important;
  border-radius: 18px !important;
}

.zm-invite-box {
  padding: 16px 18px;
  border-radius: 15px;
  background: rgba(86, 215, 236, .06);
  border: 1px solid rgba(86, 215, 236, .22);
}

.zm-invite-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.zm-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(16, 185, 129, .14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, .3);
}

.zm-invite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.zm-perm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zm-perm-chk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  transition: border-color .16s ease;
}

.zm-perm-chk:hover {
  border-color: var(--accent);
}

.zm-perm-chk input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.zm-perm-chk span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.zm-perm-chk strong {
  font-size: 12px;
  color: var(--text);
}

.zm-perm-chk small {
  font-size: 10.5px;
  color: var(--text2);
  line-height: 1.35;
}

.zm-perm-chk.compact {
  padding: 7px 9px;
  align-items: center;
}

.zm-invite-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.zm-invite-feedback.is-ok {
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(16, 185, 129, .32);
  color: #34d399;
}

.zm-invite-feedback.is-err {
  background: rgba(239, 68, 68, .13);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #fca5a5;
}

.zm-roster-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text2);
  margin-bottom: 10px;
}

.zm-roster-summary-bar strong {
  color: var(--text);
  font-family: var(--font-mono);
}

.zm-roster-empty {
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed var(--border2);
  text-align: center;
  font-size: 12.5px;
  color: var(--text2);
}

.zm-roster-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zm-roster-card {
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zm-roster-card.is-dim {
  opacity: .62;
}

.zm-roster-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zm-roster-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.zm-roster-email {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}

.zm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.zm-status-pill.is-active {
  background: rgba(16, 185, 129, .15);
  color: #34d399;
}

.zm-status-pill.is-invited {
  background: rgba(56, 189, 248, .15);
  color: #7dd3fc;
}

.zm-status-pill.is-inactive {
  background: rgba(239, 68, 68, .14);
  color: #f87171;
}

.zm-roster-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zm-roster-dept-sel {
  min-width: 128px;
  padding: 6px 10px !important;
  font-size: 12.5px !important;
  min-height: 34px !important;
}

.zm-drill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .38);
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s ease;
}

.zm-drill-toggle.is-done {
  border-color: rgba(16, 185, 129, .42);
  background: rgba(16, 185, 129, .16);
  color: #34d399;
}

.zm-roster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.zm-roster-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.zm-mod-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface2);
  color: var(--text2);
}

.zm-roster-acts {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.zm-inline-perms {
  padding-top: 10px;
  border-top: 1px dashed var(--border2);
}

/* Crew Workspace Top Banner (Name + Department Badge + Safety Drill Status) */
.zm-crew-ws-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  min-width: 0;
}

.zm-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(86, 215, 236, .16);
  border: 1px solid rgba(86, 215, 236, .4);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.zm-crew-ws-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.zm-crew-ws-vessel {
  font-weight: 500;
  color: var(--text2);
}

.zm-crew-ws-mods {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.zm-crew-ws-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zm-drill-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.zm-drill-pill.is-done {
  background: rgba(16, 185, 129, .16);
  border: 1px solid rgba(16, 185, 129, .38);
  color: #34d399;
}

.zm-drill-pill.is-pending {
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(245, 158, 11, .38);
  color: #fbbf24;
}

/* Warm Riviera Cream Light Mode Overrides */
[data-theme="light"] .zm-invite-box {
  background: rgba(14, 146, 178, .06);
  border-color: rgba(14, 146, 178, .22);
}

[data-theme="light"] .zm-shield-badge,
[data-theme="light"] .zm-status-pill.is-active,
[data-theme="light"] .zm-drill-toggle.is-done,
[data-theme="light"] .zm-drill-pill.is-done,
[data-theme="light"] .zm-invite-feedback.is-ok {
  color: #047857;
}

[data-theme="light"] .zm-status-pill.is-invited {
  color: #0369a1;
}

[data-theme="light"] .zm-drill-toggle,
[data-theme="light"] .zm-drill-pill.is-pending {
  color: #b45309;
}

[data-theme="light"] .zm-invite-feedback.is-err,
[data-theme="light"] .zm-status-pill.is-inactive {
  color: #b91c1c;
}

[data-theme="light"] .zm-dept-badge {
  background: rgba(14, 146, 178, .12);
  border-color: rgba(14, 146, 178, .34);
  color: #063344;
}

/* Persistent Invite Error/Success Banner & Direct WhatsApp Invite Link Bar */
.zm-invite-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.zm-invite-feedback.is-err {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(248, 113, 113, .48);
  color: #fecaca;
}

.zm-invite-feedback.is-ok {
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(52, 211, 153, .42);
  color: #a7f3d0;
}

.zm-invite-fb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.zm-invite-fb-text {
  font-weight: 600;
}

.zm-invite-fb-detail {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .84;
  word-break: break-word;
}

.zm-invite-fb-close {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: .78;
  flex-shrink: 0;
}

.zm-invite-fb-close:hover {
  opacity: 1;
}

.zm-invite-link-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(4, 17, 29, .45);
  border: 1px solid rgba(130, 232, 248, .28);
}

.zm-invite-link-input {
  flex: 1;
  min-width: 190px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  outline: none;
}

.zm-copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(56, 189, 248, .24), rgba(14, 146, 178, .22)) !important;
  border: 1px solid rgba(125, 211, 252, .45) !important;
  color: #e0f7ff !important;
  font-weight: 700 !important;
}

.zm-copy-link-btn:hover {
  border-color: rgba(164, 236, 252, .75) !important;
  transform: translateY(-1px);
}

.zm-copy-link-btn.is-copied {
  background: linear-gradient(180deg, rgba(16, 185, 129, .26), rgba(5, 150, 105, .24)) !important;
  border-color: rgba(52, 211, 153, .6) !important;
  color: #d1fae5 !important;
}

.zm-card-link-strip {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px dashed var(--border2);
}

[data-theme="light"] .zm-invite-feedback.is-err {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(220, 38, 38, .38);
  color: #991b1b;
}

[data-theme="light"] .zm-invite-feedback.is-ok {
  background: rgba(16, 185, 129, .10);
  border-color: rgba(5, 150, 105, .36);
  color: #065f46;
}

[data-theme="light"] .zm-invite-link-bar {
  background: rgba(255, 252, 246, .92);
  border-color: rgba(14, 146, 178, .30);
}

[data-theme="light"] .zm-copy-link-btn {
  background: linear-gradient(180deg, rgba(214, 244, 250, .95), rgba(186, 234, 246, .82)) !important;
  border-color: rgba(14, 146, 178, .42) !important;
  color: #064256 !important;
}

[data-theme="light"] .zm-copy-link-btn.is-copied {
  background: linear-gradient(180deg, rgba(209, 250, 229, .95), rgba(167, 243, 208, .85)) !important;
  border-color: rgba(5, 150, 105, .45) !important;
  color: #065f46 !important;
}

.zm-pass-gen-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zm-pass-gen-row .form-input {
  flex: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .5px;
}

.zm-cred-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(4, 17, 29, .52);
  border: 1px solid rgba(125, 211, 252, .32);
}

.zm-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
  font-size: 12px;
  color: var(--text2);
}

.zm-cred-val {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.zm-cred-pass-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: 7px;
  background: rgba(14, 165, 233, .18);
  border: 1px solid rgba(56, 189, 248, .48);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #e0f7ff;
  letter-spacing: .7px;
}

.zm-share-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.zm-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(16, 185, 129, .26), rgba(5, 150, 105, .24)) !important;
  border: 1px solid rgba(52, 211, 153, .52) !important;
  color: #d1fae5 !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.zm-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(245, 158, 11, .24), rgba(217, 119, 6, .22)) !important;
  border: 1px solid rgba(251, 191, 36, .48) !important;
  color: #fef3c7 !important;
  font-weight: 700 !important;
  text-decoration: none;
}

[data-theme="light"] .zm-cred-box {
  background: rgba(255, 252, 246, .95);
  border-color: rgba(14, 146, 178, .32);
}

[data-theme="light"] .zm-cred-pass-pill {
  background: rgba(14, 146, 178, .12);
  border-color: rgba(14, 146, 178, .42);
  color: #063344;
}

[data-theme="light"] .zm-wa-btn {
  background: linear-gradient(180deg, rgba(209, 250, 229, .95), rgba(167, 243, 208, .85)) !important;
  border-color: rgba(5, 150, 105, .45) !important;
  color: #065f46 !important;
}

[data-theme="light"] .zm-mail-btn {
  background: linear-gradient(180deg, rgba(254, 243, 199, .95), rgba(253, 230, 138, .85)) !important;
  border-color: rgba(217, 119, 6, .45) !important;
  color: #78350f !important;
}

@media (max-width: 860px) {
  .zm-invite-grid,
  .zm-perm-grid {
    grid-template-columns: 1fr;
  }
}



