:root {
  --navy: #1a3a5c;
  --navy-2: #264d6e;
  --sea: #3d9be9;
  --sea-light: #6cb8f5;
  --ink: #1c2e3f;
  --ink-2: #3a5068;
  --muted: #7a93a8;
  --bg: #e8eef6;
  --card: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.65);
  --card-solid: #ffffff;
  --line: rgba(160, 185, 210, 0.25);
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 2px 16px rgba(20, 50, 80, 0.08), 0 1px 3px rgba(20, 50, 80, 0.04);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --blur: 18px;
  --green: #34c770;
  --amber: #e8a830;
  --red: #e05555;
  --green-bg: rgba(52, 199, 112, 0.12); --green-ink: #1a8a48;
  --amber-bg: rgba(232, 168, 48, 0.12); --amber-ink: #8a6010;
  --red-bg: rgba(224, 85, 85, 0.12);   --red-ink: #b03030;
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Inter", -apple-system, "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #d0dff0 0%, #e4ecf4 30%, #f0f4f8 60%, #dce6f0 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}
.mg-axis text, .mg-plot text { font-family: "Inter", system-ui, sans-serif; }

/* ═══════ Topbar — frosted glass ═══════ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(26, 58, 92, 0.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  color: #fff;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.topbar h1 { font-size: 18px; margin: 0; letter-spacing: .3px; font-weight: 700; }
.tag { font-size: 10px; color: rgba(180, 210, 235, 0.9); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }
.sos {
  background: rgba(224, 85, 85, 0.85); color: #fff; border: 1px solid rgba(255,255,255,.2);
  font-weight: 800; font-size: 14px; letter-spacing: 1.2px;
  padding: 8px 18px; border-radius: var(--radius-sm); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(224,85,85,.3), var(--glass-inset);
  transition: transform .12s, box-shadow .12s;
}
.sos:active { transform: scale(.95); box-shadow: 0 1px 6px rgba(224,85,85,.2); }

/* ═══════ Region bar ═══════ */
.regionbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(26, 58, 92, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.regionbar-lbl { font-size: 11px; color: rgba(170, 200, 225, 0.85); font-weight: 600; letter-spacing: .3px; }
.regionbar select {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 14px; font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.gps-btn {
  flex-shrink: 0; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 13px; font-weight: 600; font-family: inherit; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .15s, transform .1s;
  box-shadow: var(--glass-inset);
}
.gps-btn:hover { background: rgba(255,255,255,.2); }
.gps-btn:active { transform: scale(.97); }
.gps-btn:disabled { opacity: .5; cursor: default; }

/* ═══════ Bottom Tab Bar ═══════ */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; gap: 0;
  padding: 4px 4px; padding-bottom: max(4px, env(safe-area-inset-bottom));
  background: rgba(26, 58, 92, 0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 4px; border: none; cursor: pointer;
  background: transparent; color: rgba(170, 200, 225, 0.6);
  font-family: inherit; border-radius: 10px;
  transition: color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tab-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  transition: transform .2s ease;
}
.tab-label {
  font-size: 10px; font-weight: 600; letter-spacing: .2px; line-height: 1;
}
.tab:hover { color: rgba(220, 235, 248, 0.85); }
.tab:active { transform: scale(.92); }
.tab.active {
  color: #fff;
}
.tab.active .tab-icon { transform: scale(1.1); }
.tab.active .tab-label { font-weight: 700; }
.tab.active::before {
  content: ""; display: block; position: absolute; top: 0;
  width: 24px; height: 2px; border-radius: 0 0 2px 2px;
  background: var(--sea-light);
}

/* ═══════ Main / panes ═══════ */
.main { flex: 1; display: flex; min-height: 0; padding-bottom: 62px; }
.tabpane { display: none; flex: 1; min-height: 0; }
.tabpane.active { display: flex; }
#tab-vrijeme.active, #tab-meteogram.active, #tab-info.active, #tab-dhmz.active, #tab-vodic.active, #tab-ruza.active {
  display: block; overflow-y: auto;
}

/* ═══════ Glass card ═══════ */
.card {
  background: var(--card);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* ═══════ Info tab ═══════ */
.info-scroll { max-width: 680px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.info-card { padding: 18px; }
.info-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--ink); font-weight: 700; }
.info-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.info-card ul { margin: 4px 0 0; padding-left: 18px; }
.info-card li { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-bottom: 7px; }
.info-card a { color: var(--sea); font-weight: 600; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.radar-img {
  width: 100%; border-radius: var(--radius-sm); display: block;
  background: rgba(200,215,230,.3); min-height: 180px;
}
.radar-controls { display: flex; gap: 8px; margin-top: 10px; }
.radar-btn {
  flex: 1; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--sea);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: center; text-decoration: none; display: inline-block;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .15s, transform .1s;
  box-shadow: var(--glass-inset);
}
.radar-btn:hover { background: var(--glass-strong); }
.radar-btn:active { transform: scale(.98); }

.info-note { font-size: 13px !important; color: var(--muted) !important; margin-top: 10px !important; }
.info-disclaimer {
  padding: 18px;
  background: rgba(255, 248, 230, 0.6);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(220, 200, 160, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.info-disclaimer h2 { margin: 0 0 8px; font-size: 17px; color: #9a7020; }
.info-disclaimer p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.info-verdicts { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.iv-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.iv-row .badge { flex-shrink: 0; margin-top: 1px; }
.info-sources li { color: var(--muted); }
.sea-state-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.sea-state-tbl th { text-align: left; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 8px; }
.sea-state-tbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.sea-state-tbl td:first-child { font-weight: 700; text-align: center; width: 60px; }
.model-select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.7); color: var(--ink);
  font-size: 14px; font-family: inherit; margin: 6px 0 2px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ═══════ Pull-to-refresh ═══════ */
#tab-vrijeme { position: relative; }
.ptr-indicator {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--sea);
  padding: 0; height: 0; overflow: hidden; transition: height .2s, opacity .2s;
  opacity: 0; display: flex; align-items: center; justify-content: center;
}
.ptr-indicator.pulling { height: 44px; opacity: 1; }
.ptr-indicator.refreshing { height: 44px; opacity: 1; }

.wx-scroll { max-width: 640px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }

/* ═══════ Forecast summary cards ═══════ */
.fc-day-card { padding: 0; overflow: hidden; }
.fc-day-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(26, 58, 92, 0.06);
  border-bottom: 1px solid var(--line);
}
.fc-day-name { font-weight: 700; font-size: 15px; }
.fc-day-details { display: flex; flex-direction: column; gap: 0; }
.fc-detail {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.4;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(200, 215, 230, 0.15);
  transition: background .15s;
}
.fc-detail:last-child { border-bottom: none; }
.fc-detail:hover { background: rgba(61, 155, 233, 0.04); }
.fc-detail-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.fc-detail-icon.wind { background: rgba(42, 120, 214, 0.1); }
.fc-detail-icon.wave { background: rgba(27, 175, 122, 0.1); }
.fc-detail-icon.temp { background: rgba(235, 104, 52, 0.1); }
.fc-detail-icon.sea  { background: rgba(27, 175, 122, 0.1); }
.fc-detail-icon.rain { background: rgba(77, 148, 232, 0.1); }
.fc-detail-body { flex: 1; min-width: 0; }
.fc-detail-lbl {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 1px;
}
.fc-detail-val {
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.fc-wind-bar {
  height: 3px; border-radius: 2px; margin-top: 4px;
  background: rgba(200, 215, 230, 0.3);
  overflow: hidden;
}
.fc-wind-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width .4s ease;
}
.fc-wind-bar-fill.green  { background: var(--green); }
.fc-wind-bar-fill.amber  { background: var(--amber); }
.fc-wind-bar-fill.red    { background: var(--red); }
.fc-day-warn { margin: 0; border-radius: 0; border-left: none; border-top: 1px solid var(--line); padding: 10px 16px; }

/* ═══════ Weather day / meteogram ═══════ */
.wx-day { padding: 12px 12px 6px; }
.wx-day-head { display: flex; align-items: center; justify-content: space-between; }
.wx-day-title { display: flex; align-items: baseline; gap: 8px; }
.wx-day-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.wx-day-date { font-size: 13px; font-weight: 400; color: var(--muted); }
.badge {
  padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge.g { background: var(--green-bg); color: var(--green-ink); border-color: rgba(52,199,112,.25); }
.badge.a { background: var(--amber-bg); color: var(--amber-ink); border-color: rgba(232,168,48,.25); }
.badge.r { background: var(--red-bg); color: var(--red-ink); border-color: rgba(224,85,85,.25); }
.wx-cont { padding: 14px 14px 10px; }
.wx-days-head { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.wx-day-seg { flex: 1; min-width: 170px; }
.wx-seg-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wx-seg-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.warn-chip {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px;
  color: #fff; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.warn-chip.a { background: var(--amber); }
.warn-chip.r { background: var(--red); }
.wx-day-warn {
  margin: 8px 0 2px; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; border-left: 3px solid;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.wx-day-warn.a { background: rgba(232,168,48,.08); border-color: var(--amber); }
.wx-day-warn.r { background: rgba(224,85,85,.08); border-color: var(--red); }
.wx-warn-row { padding: 2px 0; }
.wx-warn-detail { color: var(--muted); font-size: 12px; margin-top: 1px; }
.wx-warn-link { display: inline-block; margin-top: 5px; font-size: 12px; color: var(--sea); font-weight: 600; text-decoration: none; }
.mg-frame { display: flex; align-items: flex-start; }
.mg-axis { flex: 0 0 auto; display: block; }
.mg-scroll { flex: 1 1 auto; position: relative; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; }
.mg-plot { display: block; cursor: crosshair; }
.mg-hint { text-align: center; font-size: 11px; color: var(--muted); margin-top: 4px; }
.mg-model { text-align: center; font-size: 11px; color: var(--muted); margin-top: 6px; }
.mg-model b { color: var(--ink); font-weight: 700; }
.mg-band { fill: rgba(240, 245, 250, 0.5); }
.mg-ax { font-size: 8.5px; fill: #7a8890; font-variant-numeric: tabular-nums; }
.mg-cloud { fill: #a0adb8; }
.mg-rain { fill: #4d94e8; }
.mg-grid { stroke: rgba(180, 200, 220, 0.3); stroke-width: 1; }
.mg-vgrid { stroke: rgba(160, 185, 210, 0.3); stroke-width: 1; }
.mg-hline { stroke: rgba(200, 215, 230, 0.25); stroke-width: 1; }
.mg-gust { fill: none; stroke: #9ec5f4; stroke-width: 1.6; stroke-dasharray: 3 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-wind { fill: none; stroke: #2a78d6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-warrow line { stroke: #5f7f9e; stroke-width: 1.4; stroke-linecap: round; }
.mg-warrow path { fill: #5f7f9e; }
.mg-limit-a { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 5 3; }
.mg-limit-r { stroke: var(--red); stroke-width: 1; }
.mg-wave-fill { fill: rgba(27,175,122,.1); stroke: none; }
.mg-wave { fill: none; stroke: #1baf7a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-pres { fill: none; stroke: #5a48c4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-air { fill: none; stroke: #eb6834; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-sea { fill: none; stroke: #1baf7a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-day { font-size: 10px; font-weight: 700; fill: #4a5560; text-anchor: middle; font-variant-numeric: tabular-nums; }
.mg-daysep { stroke: rgba(150,170,190,.4); stroke-width: 1.1; stroke-dasharray: 4 3; }
.mg-dot.dair { fill: #eb6834; }
.mg-dot.dsea { fill: #1baf7a; }
.mg-cross { stroke: rgba(80,110,140,.5); stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.mg-dot { stroke: #fff; stroke-width: 2; pointer-events: none; }
.mg-dot.dwind { fill: #2a78d6; }
.mg-dot.dgust { fill: #9ec5f4; }
.mg-dot.dwave { fill: #1baf7a; }
.mg-dot.dpres { fill: #5a48c4; }

/* Readout — frosted glass */
.mg-readout {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 14px;
  position: sticky; top: 0; z-index: 10;
  box-shadow: var(--glass-shadow), var(--glass-inset);
}
.ro-head {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.ro-rows { display: flex; flex-direction: column; gap: 7px; }
.ro-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.2; }
.ro-sw { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; }
.ro-k { width: 92px; flex-shrink: 0; color: var(--muted); font-weight: 600; }
.ro-v { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.mg-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: 12px; color: var(--muted); }
.mg-legend i.sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.mg-legend .cloud { background: #a0adb8; }
.mg-legend .rain { background: #4d94e8; }
.mg-legend .wind { background: #2a78d6; }
.mg-legend .gust { background: #9ec5f4; }
.mg-legend .wave { background: #8fd4bf; }
.mg-legend .pres { background: #5a48c4; }
.mg-legend .air { background: #eb6834; }
.mg-legend .sea { background: #1baf7a; }

/* ═══════ Warnings ═══════ */
.warnings { padding: 14px 16px; }
.warn-head { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.warn-src { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.warn-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.warn-row:first-of-type { border-top: none; }
.warn-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.warn-row.g .warn-dot { background: var(--green); }
.warn-row.a .warn-dot { background: var(--amber); }
.warn-row.r .warn-dot { background: var(--red); }
.warn-when { font-size: 12px; color: var(--muted); }
.warn-detail { font-size: 13px; color: var(--muted); }
.warn-official { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--sea); font-weight: 600; text-decoration: none; }
.warn-note { font-size: 13px; color: var(--muted); font-style: italic; padding: 6px 0; }
.warn-jump {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(232,168,48,.1); color: var(--amber-ink);
  border: 1px solid rgba(232,168,48,.2); font-size: 12.5px; line-height: 1.45;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .15s;
}
.warn-jump b { color: var(--amber-ink); }
.warn-jump:hover { background: rgba(232,168,48,.15); }

/* ═══════ Picker ═══════ */
.picker { display: flex; flex-direction: column; gap: 5px; }
.picker label { font-size: 12px; color: var(--muted); font-weight: 600; padding-left: 4px; }
.picker select {
  padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.65); font-size: 15px; color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-inset);
}

.detail-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 8px; }

.app-version {
  font-size: 11px; color: var(--muted); text-align: center;
  margin: 12px 0 8px; opacity: 0.7;
}

.disclaimer {
  font-size: 11px; color: var(--muted); line-height: 1.55;
  background: rgba(255, 248, 230, 0.45);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(220, 200, 160, 0.3);
  padding: 10px 14px; border-radius: var(--radius-sm); margin: 0;
}

/* ═══════ Modal — frosted sheet ═══════ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 35, 55, 0.35);
  display: flex; align-items: flex-end; justify-content: center; z-index: 1000;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  width: 100%; max-width: 460px;
  border-radius: 22px 22px 0 0; padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  max-height: 85vh; overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 -4px 30px rgba(0,0,0,.12);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 18px; margin: 0; font-weight: 700; }
.modal-head button { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.sos-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(230, 240, 248, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 8px; text-decoration: none; color: var(--ink); font-size: 14px;
  border: 1px solid rgba(200, 215, 230, 0.3);
  transition: background .15s;
}
.sos-row:hover { background: rgba(220, 235, 248, 0.6); }
.sos-row.urgent { background: rgba(224, 85, 85, 0.08); border-color: rgba(224,85,85,.15); }
.sos-num {
  font-weight: 800; font-size: 15px; color: var(--navy);
  min-width: 62px; flex-shrink: 0;
}
.sos-row.urgent .sos-num { color: var(--red); }
.sos-tip { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 4px 0; }

/* ═══════ Vodič tab ═══════ */
.obj-filters {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
  padding: 2px;
}
.obj-filter {
  padding: 7px 16px; border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .15s ease;
  box-shadow: var(--glass-inset);
}
.obj-filter:hover { background: var(--glass-strong); }
.obj-filter.active {
  background: rgba(61, 155, 233, 0.12); color: var(--sea);
  border-color: rgba(61, 155, 233, 0.3);
  box-shadow: 0 0 0 2px rgba(61,155,233,0.08), var(--glass-inset);
}
.obj-count { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; padding-left: 4px; letter-spacing: .3px; }
.obj-list { display: flex; flex-direction: column; gap: 10px; }
.obj-card {
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: box-shadow .2s ease, transform .15s ease;
}
.obj-card:hover { box-shadow: 0 4px 20px rgba(20,50,80,.1), var(--glass-inset); transform: translateY(-1px); }
.obj-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.obj-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.obj-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 600; padding: 3px 11px;
  border-radius: 99px; white-space: nowrap; letter-spacing: .2px;
}
.obj-badge.obj-anch { background: rgba(61,142,181,.1); color: #2d7ea5; }
.obj-badge.obj-mar  { background: rgba(59,109,158,.1); color: #3060a0; }
.obj-badge.obj-port { background: rgba(92,112,128,.1); color: #4a6070; }
.obj-badge.obj-fuel { background: rgba(94,122,58,.1); color: #4a6a2a; }
.obj-loc { font-size: 11px; color: var(--muted); margin-bottom: 8px; letter-spacing: .3px; }
.obj-details { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.obj-row { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.obj-row b { color: var(--muted); font-weight: 600; font-size: 12px; margin-right: 4px; }
.obj-row a { color: var(--sea); text-decoration: none; font-weight: 500; }
.obj-row a:hover { text-decoration: underline; }
.obj-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

/* ═══════ Wind Rose ═══════ */
.wr-scroll { max-width: 440px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.wr-slider-box { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: center; }
.wr-time { font-size: 15px; font-weight: 700; color: var(--ink); min-width: 180px; text-align: center; }
.wr-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--ink); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: background .15s, transform .1s;
}
.wr-arrow:hover { background: var(--glass-strong); }
.wr-arrow:active { transform: scale(.92); }
.wr-slider {
  width: 100%; max-width: 360px; accent-color: var(--sea);
  height: 6px; cursor: pointer;
}
.wr-canvas-wrap { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; }
#wrCanvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.wr-hint { text-align: center; font-size: 11px; color: var(--muted); margin-top: 2px; }
.wr-center-info { width: 100%; padding: 14px 18px !important; }
.wr-info-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.wr-info-row:last-child { border-bottom: none; }
.wr-info-row .wr-ik { color: var(--muted); font-weight: 600; width: 90px; flex-shrink: 0; font-size: 13px; }
.wr-info-row .wr-iv { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wr-info-row .wr-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.wr-src {
  font-size: 10px; font-weight: 600; color: var(--muted);
  background: var(--glass);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 2px 8px; border-radius: 8px; margin-left: 4px; white-space: nowrap;
  border: 1px solid var(--line);
}
.wr-src-live { color: var(--green-ink); background: var(--green-bg); border-color: rgba(52,199,112,.2); }

/* ═══════ Mobile ═══════ */
@media (max-width: 560px) {
  .topbar h1 { font-size: 16px; }
  .tab { font-size: 12px; padding: 9px 3px; }
  .wx-scroll { padding: 10px; }
  .wx-cont, .card { padding: 12px 10px; }
  .wx-days-head { flex-direction: column; gap: 8px; }
  .wx-day-seg { min-width: 100%; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .wx-day-seg:last-child { border-bottom: none; padding-bottom: 0; }
}
