/* =====================================================================
   NordLaks – blue on white, modern
   ===================================================================== */
:root {
  --blue-950: #041a38;
  --blue-900: #06264f;
  --blue-800: #0a3a78;
  --blue-700: #0a4fa6;
  --blue-600: #1563c8;
  --blue-500: #2b7de9;
  --blue-300: #7fb6ff;
  --blue-200: #bcd8fb;
  --blue-100: #e6f0fd;
  --blue-50:  #f3f8ff;
  --ink: #0f1f33;
  --text: #24364d;
  --muted: #5d6e84;
  --line: #dde6f2;
  --bg: #ffffff;
  --green: #128a5a;
  --green-bg: #e3f6ee;
  --red: #c4302b;
  --red-bg: #fdecea;
  --amber: #a86a00;
  --amber-bg: #fff4dc;
  --gold: #e9b425;
  --silver: #a9b4c2;
  --bronze: #c98b54;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 58, 120, .06), 0 1px 3px rgba(10, 58, 120, .08);
  --shadow: 0 4px 14px rgba(10, 58, 120, .08), 0 1px 3px rgba(10, 58, 120, .06);
  --shadow-lg: 0 18px 50px rgba(6, 38, 79, .18);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 800; color: var(--ink); }
.mt { margin-top: 1.5rem; } .mb { margin-bottom: 1.5rem; } .mt-sm { margin-top: .5rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow, .narrow { max-width: 780px; }
.section { padding: 72px 0; }
.section-sm { padding: 36px 0 64px; }
.section-tint { background: var(--blue-50); }
.section-blue { background: linear-gradient(160deg, var(--blue-800), var(--blue-700) 60%, var(--blue-600)); color: #fff; }
.section-blue h2 { color: #fff; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue-700); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ----------------------------------------------------------- buttons */
.btn {
  --b: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .7em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 4px 14px rgba(10, 79, 166, .28); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: #fff; }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-ghost { color: var(--blue-700); background: transparent; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-white { background: #fff; color: var(--blue-800); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a82722; color: #fff; }
.btn-danger-ghost { color: var(--red); background: transparent; }
.btn-danger-ghost:hover { background: var(--red-bg); color: var(--red); }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; font-size: .95rem; }
.small-link { font-weight: 600; font-size: .88rem; }
form.inline { display: inline; }

/* ----------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--blue-900); letter-spacing: -.02em; }
.brand:hover { color: var(--blue-900); }
.brand-light { color: #fff; } .brand-light:hover { color: #fff; }
.logo { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.main-nav ul { display: flex; list-style: none; margin: 0 auto 0 12px; padding: 0; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav ul a:hover { background: var(--blue-50); color: var(--blue-700); }
.main-nav ul a.active { background: var(--blue-100); color: var(--blue-800); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--blue-900); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch { position: relative; }
.lang-btn { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .42em .8em; font: inherit; font-weight: 700; font-size: .82rem; color: var(--blue-800); cursor: pointer; }
.lang-btn:hover { border-color: var(--blue-300); }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 150px; display: none; z-index: 60; }
.lang-switch.open .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.dropdown a:hover, .dropdown a.active { background: var(--blue-50); color: var(--blue-700); }

/* ----------------------------------------------------------- avatars */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; font-weight: 800; font-size: .85rem; }
.avatar-xs { width: 24px; height: 24px; font-size: .62rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .7rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.4rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 2rem; border: 4px solid rgba(255,255,255,.35); }
.user-cell { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------- alerts */
.flash-wrap { padding-top: 18px; }
.alert { position: relative; padding: 13px 44px 13px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 600; font-size: .95rem; border: 1px solid; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #bfe6d3; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #f5c6c3; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: #f4dca6; }
.alert-info { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-200); }
.alert-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }

/* ----------------------------------------------------------- hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(127,182,255,.35), transparent 60%), linear-gradient(155deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%); color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 120px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .35em; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .6em; }
.eyebrow-light { color: var(--blue-200); }

.hero-card { perspective: 1200px; }
.mini-card { background: #fff; color: var(--text); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: rotate(2deg); position: relative; }
.mini-card::before { content: ''; position: absolute; top: 14px; left: 22%; right: 22%; height: 12px; background: radial-gradient(circle, var(--blue-100) 5px, transparent 6px) 0 0 / 25% 12px repeat-x; }
.mini-card-head { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; color: var(--blue-900); font-size: 1.1rem; padding: 14px 0 10px; border-bottom: 2px solid var(--blue-100); margin-bottom: 12px; }
.mini-card-head span:last-child { font-family: var(--font); font-weight: 600; font-size: .85rem; color: var(--muted); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: .9rem; }
.mini-row > span { color: var(--muted); }
.mini-time { position: relative; flex: 1; max-width: 220px; height: 10px; background: var(--blue-50); border-radius: 5px; }
.mini-time i { position: absolute; top: 0; bottom: 0; background: var(--blue-500); border-radius: 5px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mini-chips span { background: var(--blue-50); color: var(--blue-800); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.mini-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--blue-50); border-radius: 12px; padding: 12px; }
.mini-result small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.mini-result strong { color: var(--blue-900); font-size: .92rem; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -60px; position: relative; z-index: 2; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--blue-700); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }

.page-hero { background: linear-gradient(155deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 56px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 680px; margin: 0; }
.profile-head { display: flex; align-items: center; gap: 28px; }
.profile-head .bio { color: rgba(255,255,255,.85); max-width: 640px; margin-top: 10px; }

/* ----------------------------------------------------------- sections, cards, grids */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { margin: 0; }
.h-section { font-size: 1.4rem; margin: 36px 0 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2.align-start { align-items: start; }
.grid-2.wide-left { grid-template-columns: 1.5fr 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.table-card { padding: 0; overflow: hidden; }
.table-card .card-head { padding: 18px 22px 0; }
.empty { color: var(--muted); padding: 16px 0; margin: 0; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 2.6rem; margin-bottom: 8px; }

.features .feature { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.features .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ----------------------------------------------------------- rank list / toplist */
.ranklist { list-style: none; margin: 0; padding: 0; }
.ranklist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ranklist li:first-child { border-top: 0; }
.rank { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-800); font-weight: 800; font-size: .88rem; flex-shrink: 0; }
.rank-1 { background: var(--gold); color: #fff; }
.rank-2 { background: var(--silver); color: #fff; }
.rank-3 { background: var(--bronze); color: #fff; }
.rank-body { flex: 1; min-width: 0; color: var(--ink); }
.rank-body strong { display: block; }
.rank-body small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-value { font-family: var(--font-display); font-weight: 700; color: var(--blue-700); font-size: 1.15rem; white-space: nowrap; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 18px 20px; margin-top: -70px; position: relative; z-index: 3; box-shadow: var(--shadow); }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; }
.filter-bar label > span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter-count { margin-left: auto; color: var(--muted); font-weight: 600; align-self: center; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0 20px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--blue-700); }
.tabs a.active { color: var(--blue-700); border-bottom-color: var(--blue-700); }
.tabs-info { margin-left: auto; background: var(--blue-100); color: var(--blue-800); padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; align-items: end; }
.podium-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--text); transition: transform .2s, box-shadow .2s; }
.podium-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.podium-item.place-1 { order: 2; border-color: var(--gold); box-shadow: 0 10px 30px rgba(233,180,37,.22); }
.podium-item.place-2 { order: 1; }
.podium-item.place-3 { order: 3; }
.podium-img { position: relative; aspect-ratio: 4/3; background: var(--blue-50); }
.place-1 .podium-img { aspect-ratio: 1/1; }
.podium-img img { width: 100%; height: 100%; object-fit: cover; }
.podium-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); }
.podium-medal { position: absolute; left: 12px; top: 12px; font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.podium-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.podium-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--blue-700); }
.podium-body small { color: var(--muted); }

/* ----------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--blue-50); padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: #fafcff; }
.table .row-muted td { opacity: .55; }
.table-rank td:first-child { width: 56px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-size: .74rem; font-weight: 800; letter-spacing: .02em; vertical-align: middle; }
.badge-soft { background: var(--green-bg); color: var(--green); }
.badge-paid { background: var(--green-bg); color: var(--green); }
.badge-pending { background: var(--amber-bg); color: var(--amber); }
.badge-failed { background: var(--red-bg); color: var(--red); }
.badge-manual { background: var(--blue-100); color: var(--blue-800); }
.badge-over { position: absolute; right: 8px; top: 8px; background: rgba(4,26,56,.75); color: #fff; }
.chip { display: inline-block; background: var(--blue-50); color: var(--blue-800); padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .78rem; }
.chip-green { background: var(--green-bg); color: var(--green); }

/* ----------------------------------------------------------- gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-item { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--blue-50); aspect-ratio: 4/3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.g-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(4,26,56,.8)); color: #fff; font-size: .82rem; }
.gallery-grid.masonry { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.g-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.g-card .g-item { border-radius: 0; }
.g-card figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.fish-info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fish-info strong { color: var(--ink); margin-right: 2px; }
.caption { margin: 0; font-size: .9rem; color: var(--text); }

.lightbox { position: fixed; inset: 0; background: rgba(4,18,40,.94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #dfeaff; margin-top: 14px; text-align: center; font-weight: 600; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 14px; } .lightbox-nav.next { right: 14px; }

/* ----------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; color: var(--text); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.2rem; }
.plan p { color: var(--muted); flex: 1; }
.plan-featured { border: 2px solid var(--blue-500); transform: translateY(-8px); box-shadow: 0 22px 50px rgba(10,79,166,.22); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; font-size: .74rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; color: var(--blue-800); font-weight: 700; margin: 6px 0 12px; line-height: 1.1; }
.plan-price small { font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.checklist li { padding: 5px 0 5px 28px; position: relative; font-size: .94rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 5px; width: 19px; height: 19px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 800; font-size: .72rem; display: grid; place-items: center; }
.secure-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: .92rem; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: #fff; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 22px; }
.callout p { margin: 2px 0 0; opacity: .85; }
.membership-status { display: flex; gap: 18px; align-items: center; }
.membership-status.is-active { border-left: 5px solid var(--green); }
.membership-status.is-inactive { border-left: 5px solid var(--amber); }
.membership-status h3 { margin: 0 0 2px; }
.membership-status p { margin: 0; }
.ms-icon { font-size: 2rem; }

/* ----------------------------------------------------------- blog */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.post-cover { aspect-ratio: 16/9; background: var(--blue-50); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); }
.post-cover-fallback .logo { width: 64px; height: 64px; opacity: .85; }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post-body h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.post-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.article-head { padding: 48px 20px 18px; }
.article-head h1 { margin-top: 14px; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; margin-bottom: 30px; }
.prose { font-size: 1.07rem; line-height: 1.75; padding-bottom: 40px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--blue-500); background: var(--blue-50); border-radius: 0 10px 10px 0; color: var(--blue-900); }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.lead-dark { font-size: 1.2rem; color: var(--ink); font-weight: 500; }

/* ----------------------------------------------------------- forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form.compact { gap: 10px; margin: 10px 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .sub-label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.sub-label { margin-top: 6px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .62em .8em; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a4fa6' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8em center; padding-right: 2.2em; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(43,125,233,.15); }
textarea { resize: vertical; }
.input-lg { font-size: 1.2rem !important; font-weight: 700; }
.check { display: inline-flex; align-items: flex-start; gap: 9px; font-weight: 600; font-size: .94rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-700); flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.form-card h3 { margin-bottom: 4px; }
.form-inline-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.input-unit { position: relative; }
.input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 700; font-size: .85rem; pointer-events: none; }
.input-unit input { padding-right: 3.2em; }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-group input { max-width: 100px; }
.input-group em { font-style: normal; color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 140px; }
.compact-row input, .compact-row select { padding: .42em .6em; font-size: .88rem; }
.w-sm { max-width: 80px; flex: 0 0 80px !important; }
.danger-zone { border-color: #f5c6c3; margin-top: 22px; }
.danger-zone h3 { color: var(--red); }

/* pill radios (from the paper card's tick boxes) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { padding: .45em .9em; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .88rem; cursor: pointer; user-select: none; transition: all .15s; background: #fff; }
.pills label:hover { border-color: var(--blue-300); color: var(--blue-700); }
.pills input:checked + label { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pills input:focus-visible + label { box-shadow: 0 0 0 4px rgba(43,125,233,.25); }

/* compass for wind direction */
.compass { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 2px dashed var(--blue-200); margin: 6px 0; }
.compass input { position: absolute; opacity: 0; pointer-events: none; }
.compass label { position: absolute; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; font-weight: 800; color: var(--blue-800); cursor: pointer; transition: all .15s; }
.compass label:hover { border-color: var(--blue-500); }
.compass input:checked + label { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.compass .c-n { top: -6px; left: 44px; } .compass .c-s { bottom: -6px; left: 44px; }
.compass .c-e { right: -6px; top: 44px; } .compass .c-w { left: -6px; top: 44px; }
.compass-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; pointer-events: none; }

/* fishing-time timeline (0-24) */
.timeline { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; background: var(--blue-50); padding: 4px; border-radius: 10px; }
.timeline span, .timeline button { height: 34px; border-radius: 5px; background: #fff; border: 0; font: inherit; font-size: .7rem; font-weight: 700; color: var(--muted); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; }
.timeline .on { background: var(--blue-600); color: #fff; }
.timeline-input button { cursor: pointer; transition: background .1s; }
.timeline-input button:hover { background: var(--blue-100); }
.timeline-input button.on:hover { background: var(--blue-500); }
.time-selects { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }
.time-selects label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.time-selects select { width: auto; }

/* trip form */
.trip-form fieldset { margin: 0; border: 1px solid var(--line); }
.trip-form legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.trip-form legend + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-700); color: #fff; font-family: var(--font); font-size: .85rem; font-weight: 800; }
.catch-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.catch-row { position: relative; display: grid; grid-template-columns: 1.4fr .6fr .9fr .9fr 1.4fr .8fr; gap: 10px 12px; padding: 16px 44px 16px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--blue-50); }
.catch-row .f-notes { grid-column: span 3; }
.catch-row .f-photo { grid-column: span 2; }
.catch-row .f-released { align-self: end; padding-bottom: 10px; }
.catch-row input[type=file] { font-size: .82rem; padding: .4em; background: #fff; }
.row-remove { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; color: var(--red); font-size: 1.2rem; cursor: pointer; line-height: 1; box-shadow: var(--shadow-sm); }
.row-remove:hover { background: var(--red-bg); }
.lined-input { background-image: repeating-linear-gradient(#fff 0 31px, var(--blue-100) 31px 32px); line-height: 32px !important; padding-top: 4px !important; }
.lined { background-image: repeating-linear-gradient(transparent 0 31px, var(--blue-100) 31px 32px); line-height: 32px; padding: 0 4px; }
.form-footer { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: var(--shadow-lg); z-index: 5; }
.form-footer-actions { display: flex; gap: 8px; }
.trip-form { gap: 20px; }

.dropzone { display: block; position: relative; border: 2px dashed var(--blue-200); border-radius: 14px; padding: 26px; text-align: center; background: var(--blue-50); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue-500); background: var(--blue-100); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone > span { font-weight: 700; color: var(--blue-800); }
.dz-previews { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.dz-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-sm); }
.photo-manage { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.photo-tile { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--red); }
.photo-tile img { width: 110px; height: 90px; object-fit: cover; border-radius: 8px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }

/* manage grid (member gallery/admin photos) */
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.manage-item { padding: 0; overflow: hidden; }
.manage-item .g-item { border-radius: 0; }
.manage-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.manage-body details summary { cursor: pointer; font-weight: 700; color: var(--blue-700); font-size: .88rem; }
.btn-row { display: flex; gap: 4px; flex-wrap: wrap; }

/* blog editor */
.editor-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.editor-layout aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 90px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--blue-50); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-toolbar button { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--blue-900); }
.editor-toolbar button:hover { border-color: var(--blue-300); }
.editor { border-radius: 0 0 10px 10px !important; font-family: ui-monospace, Menlo, monospace !important; font-size: .9rem !important; line-height: 1.6; }
.editor-preview { border: 1.5px solid var(--line); border-radius: 0 0 10px 10px; padding: 18px; min-height: 300px; font-size: 1rem; }
.cover-preview { border-radius: 10px; margin-bottom: 10px; }
.post-row { display: flex; align-items: center; gap: 12px; }
.post-row img { width: 56px; height: 38px; object-fit: cover; border-radius: 6px; }

/* ----------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 48px 20px; background: radial-gradient(800px 400px at 50% 0%, var(--blue-100), transparent 70%); }
.auth-card { width: 100%; max-width: 480px; padding: 36px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 2rem; }
.auth-switch { text-align: center; margin: 18px 0 0; color: var(--muted); }

/* ----------------------------------------------------------- trip view (digital log card) */
.logcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.logcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 30px 30px 24px; background: linear-gradient(135deg, var(--blue-50), #fff); border-bottom: 1px solid var(--line); }
.logcard-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .2em; }
.logcard-place { margin: 0; font-size: 1.05rem; }
.logcard-user { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; background: #fff; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); }
.logcard-block { padding: 22px 30px; border-bottom: 1px solid var(--line); }
.logcard-block:last-child { border-bottom: 0; }
.logcard-block h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-800); margin-bottom: 14px; }
.logcard-block h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; font-size: .9rem; }
.logcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.logcard-grid .logcard-block { border-bottom: 0; border-right: 1px solid var(--line); }
.logcard-grid .logcard-block:last-child { border-right: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .94rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.trend { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.trend-rising { background: #e5f4ff; color: #0a6ab8; }
.trend-rising::before { content: '↗ '; }
.trend-falling { background: #fff1e6; color: #b85a0a; }
.trend-falling::before { content: '↘ '; }
.trend-stable { background: #eef2f6; color: #4f6075; }
.trend-stable::before { content: '→ '; }
.page-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* ----------------------------------------------------------- panel (member/admin backend) */
.panel-page .site-header { position: sticky; }
.panel-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 70px); background: var(--blue-50); }
.panel-sidebar { background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.panel-user { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 16px; border-radius: 12px; background: var(--blue-50); }
.panel-user strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.panel-user small { color: var(--muted); font-size: .78rem; line-height: 1.3; display: block; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; }
.panel-nav a, .panel-logout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .94rem; }
.panel-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.panel-nav a.active { background: var(--blue-700); color: #fff; box-shadow: 0 4px 12px rgba(10,79,166,.25); }
.panel-switch { margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 16px !important; color: var(--blue-700) !important; }
.panel-logout { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; color: var(--muted); }
.panel-logout:hover { color: var(--red); background: var(--red-bg); }
.panel-content { padding: 30px 34px 60px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.panel-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .1em; }
.panel-head p { margin: 0; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-actions input, .head-actions select { width: auto; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-card span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.stat-card.accent { background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); border: 0; }
.stat-card.accent span { color: var(--blue-200); }
.stat-card.accent strong { color: #fff; }

.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { width: 100%; max-width: 28px; background: linear-gradient(to top, var(--blue-700), var(--blue-500)); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bar small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.bar-val { font-size: .72rem; font-weight: 800; color: var(--blue-800); min-height: 1em; }
.best { display: flex; flex-direction: column; gap: 4px; }
.best-value { font-family: var(--font-display); font-size: 2.6rem; color: var(--blue-700); line-height: 1.1; }

/* ----------------------------------------------------------- pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pagination a.active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

/* ----------------------------------------------------------- footer */
.site-footer { color: var(--blue-900); margin-top: 0; }
.footer-wave { display: block; width: 100%; height: 50px; color: var(--blue-900); }
.footer-body { background: var(--blue-900); color: #c8d9f2; padding: 30px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: #c8d9f2; }
.footer-grid a:hover { color: #fff; }
.muted-light { color: #93add2; margin-top: 12px; font-size: .94rem; }
.flags { font-size: 1.3rem; letter-spacing: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 18px; font-size: .86rem; color: #93add2; }
.panel-page .site-footer { display: none; }

/* ----------------------------------------------------------- cookie banner + modal */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 980px; margin: 0 auto; z-index: 150; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; gap: 20px; align-items: center; animation: slideUp .35s ease-out; }
.cookie-text { flex: 1; }
.cookie-text strong { color: var(--ink); }
.cookie-text p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { position: fixed; inset: 0; z-index: 180; background: rgba(4,26,56,.55); display: grid; place-items: center; padding: 20px; }
.modal-card { background: #fff; border-radius: 18px; padding: 28px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.switch-row > span:first-child strong { display: block; color: var(--ink); }
.switch-row small { color: var(--muted); }
.switch-row input { position: absolute; opacity: 0; }
.switch { flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--blue-700); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:disabled + .switch { opacity: .6; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .catch-row { grid-template-columns: repeat(3, 1fr); }
  .catch-row .f-notes, .catch-row .f-photo { grid-column: span 3; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-layout aside { position: static; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 70px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; margin: 0; }
  .nav-actions { flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-card { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-layout { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .panel-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .panel-nav a, .panel-logout { white-space: nowrap; padding: 8px 12px; }
  .panel-nav-label, .panel-user { display: none; }
  .panel-switch { margin: 0; border: 0; padding: 8px 12px !important; }
  .panel-content { padding: 22px 16px 60px; }
  .logcard-grid { grid-template-columns: 1fr; }
  .logcard-grid .logcard-block { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-2.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .podium-item.place-1, .podium-item.place-2, .podium-item.place-3 { order: 0; }
  .place-1 .podium-img { aspect-ratio: 4/3; }
  .form-row { grid-template-columns: 1fr; }
  .catch-row { grid-template-columns: 1fr 1fr; }
  .catch-row .f-species, .catch-row .f-bait, .catch-row .f-notes, .catch-row .f-photo { grid-column: span 2; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .logcard-head { flex-direction: column; padding: 22px 20px; }
  .logcard-block { padding: 18px 20px; }
  .timeline span, .timeline button { font-size: 0; height: 26px; }
  .filter-bar { margin-top: -50px; }
  .lightbox { padding: 60px 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mini-result { grid-template-columns: 1fr 1fr; }
}
