:root {
  --navy: #082f51;
  --navy-deep: #05243f;
  --teal: #075f68;
  --teal-bright: #0b7d82;
  --teal-soft: #e7f5f3;
  --blue-soft: #eef6fb;
  --coral: #eb6c4d;
  --sand: #fbf6ec;
  --paper: #fffdf9;
  --white: #fff;
  --ink: #18384b;
  --muted: #617989;
  --line: #dce8e8;
  --shadow: 0 24px 70px rgba(7, 57, 75, .12);
  --shadow-small: 0 12px 32px rgba(7, 57, 75, .09);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 48px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
body, button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; border-radius: 10px; color: var(--white); background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; font-size: .94rem; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--teal), var(--teal-bright)); box-shadow: 0 10px 24px rgba(7, 95, 104, .22); }
.button-primary:hover { box-shadow: 0 14px 30px rgba(7, 95, 104, .28); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.78); color: var(--navy); }
.button-soft { background: var(--teal-soft); color: var(--teal); border-color: #cce7e4; }
.button-white { color: var(--teal); background: var(--white); }
.button-outline-light { color: var(--white); border-color: rgba(255,255,255,.44); background: rgba(255,255,255,.08); }
.button-large { min-height: 50px; padding: 13px 23px; }
.full { width: 100%; }
.text-link { align-self: center; color: var(--teal); font-weight: 800; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--teal); font-weight: 800; cursor: pointer; }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid transparent; background: rgba(255,253,249,.88); backdrop-filter: blur(18px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: rgba(8,47,81,.08); box-shadow: 0 8px 24px rgba(8,47,81,.06); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 20px rgba(7,95,104,.18); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { color: var(--navy); font-size: 1.04rem; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: var(--teal); font-size: .59rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 10px 13px; border-radius: 999px; color: #426174; font-size: .91rem; font-weight: 750; }
.site-nav a:hover { background: var(--teal-soft); color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-pill { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); font-size: .76rem; font-weight: 900; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 42px; border: 0; border-radius: 12px; background: var(--teal-soft); padding: 11px; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--teal); }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr); align-items: center; gap: clamp(38px, 6vw, 84px); padding-block: clamp(62px, 8vw, 108px) 92px; }
.eyebrow { margin-bottom: 14px; color: var(--teal); font-size: .72rem; line-height: 1.3; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 23px; height: 2px; margin-right: 9px; vertical-align: middle; background: var(--coral); }
.eyebrow.light { color: #bce8e5; }
.hero h1 { max-width: 660px; margin-bottom: 24px; color: var(--navy); font-size: clamp(3rem, 5.8vw, 5.45rem); line-height: .95; letter-spacing: -.065em; }
.hero h1 em { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-lead { max-width: 590px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 13px 22px; margin-top: 27px; color: #587181; font-size: .87rem; font-weight: 750; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--white); background: var(--teal); font-size: .68rem; font-style: normal; }
.hero-visual { position: relative; min-height: 600px; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: -24px 18px 34px -14px; border-radius: 52% 48% 45% 55% / 38% 42% 58% 62%; background: linear-gradient(145deg, #e4f4f2, #f9eadf); }
.hero-visual > img { width: 100%; height: 600px; object-fit: cover; border-radius: 44px 44px 110px 44px; box-shadow: var(--shadow); }
.hero-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.78); border-radius: 17px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: var(--shadow-small); }
.hero-float div { display: grid; gap: 3px; }
.hero-float small { color: var(--muted); font-size: .72rem; font-weight: 750; }
.hero-float strong { color: var(--navy); font-size: .88rem; }
.hero-float-top { top: 32px; left: -34px; }
.hero-float-bottom { right: -22px; bottom: 38px; }
.status-dot { width: 13px; height: 13px; border: 4px solid #ccede7; border-radius: 50%; background: #19a987; }
.float-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: #fff4d4; color: #e49b00; font-size: 1.2rem; }

.quick-section { padding-block: 88px 96px; background: #f2f8f6; }
.section-heading { max-width: 690px; }
.section-heading h2 { margin-bottom: 16px; color: var(--navy); font-size: clamp(2.15rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
.section-heading > p:not(.eyebrow), .split-heading > p { color: var(--muted); line-height: 1.72; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; max-width: none; margin-bottom: 34px; }
.split-heading > p { margin-bottom: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid #d9e9e6; border-radius: var(--radius-lg); background: rgba(255,255,255,.86); box-shadow: 0 10px 25px rgba(7,57,75,.04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.quick-card:hover { transform: translateY(-7px); border-color: #b8dcd7; box-shadow: var(--shadow-small); }
.quick-card > div { margin-top: auto; }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 42px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); font-size: 1.35rem; }
.quick-card small { color: var(--coral); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.quick-card h3 { margin: 9px 0 11px; color: var(--navy); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.025em; }
.quick-card p { color: var(--muted); font-size: .91rem; line-height: 1.57; }
.quick-card strong { color: var(--teal); font-size: .86rem; }
.quick-weather { color: var(--white); border-color: transparent; background: linear-gradient(155deg, #0b6671, #0b8990); }
.quick-weather small, .quick-weather h3, .quick-weather strong { color: var(--white); }
.quick-weather p { color: #d8eeee; }
.quick-weather .card-icon { background: rgba(255,255,255,.15); color: #ffe07b; }
.quick-community { background: #fff8f0; border-color: #f3dec9; }
.quick-community .card-icon { background: #fde4d9; color: var(--coral); }

.community-section { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(44px, 7vw, 92px); padding-block: 116px; }
.feature-list { display: grid; gap: 20px; margin: 34px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.feature-list li > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cce3e0; border-radius: 13px; color: var(--teal); background: var(--teal-soft); font-size: .72rem; font-weight: 900; }
.feature-list div { display: grid; gap: 4px; }
.feature-list strong { color: var(--navy); }
.feature-list small { color: var(--muted); line-height: 1.52; }
.community-preview { position: relative; }
.preview-window { overflow: hidden; border: 9px solid var(--navy-deep); border-radius: 30px; background: #eff5f5; box-shadow: 0 32px 80px rgba(5,36,63,.2); transform: perspective(1100px) rotateY(-3deg) rotateX(1deg); }
.window-top { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: var(--navy-deep); }
.window-top span { width: 8px; height: 8px; border-radius: 50%; background: #ef8b77; }
.window-top span:nth-child(2) { background: #f2cc68; }
.window-top span:nth-child(3) { background: #77cdb6; }
.window-top small { margin: 0 auto; color: #9eb8c8; font-size: .62rem; }
.preview-layout { min-height: 430px; display: grid; grid-template-columns: 58px 1fr 146px; }
.preview-rail { display: grid; align-content: start; justify-items: center; gap: 20px; padding: 17px 0; background: var(--white); }
.preview-rail b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--white); background: var(--teal); font-size: .7rem; }
.preview-rail i { width: 18px; height: 18px; border-radius: 7px; background: #dae6e6; }
.preview-feed { padding: 20px 18px; }
.preview-welcome { display: grid; gap: 3px; margin-bottom: 15px; }
.preview-welcome small { color: var(--teal); }
.preview-welcome strong { color: var(--navy); }
.preview-post { display: flex; gap: 10px; padding: 13px; margin-bottom: 12px; border-radius: 15px; background: var(--white); box-shadow: 0 8px 18px rgba(8,47,81,.05); }
.preview-avatar { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 10px; color: var(--white); background: var(--coral); font-size: .67rem; font-weight: 900; }
.preview-post > div { width: 100%; }
.preview-post b, .preview-post small { display: block; font-size: .62rem; }
.preview-post small { margin: 3px 0 8px; color: var(--muted); }
.preview-post p { height: 6px; margin: 5px 0; border-radius: 999px; background: #e9efef; }
.preview-post p:last-child { width: 68%; }
.preview-post-image > div { height: 175px; border-radius: 11px; background: linear-gradient(145deg, rgba(7,95,104,.16), rgba(235,108,77,.14)), url('../img/app-erleben.webp') center/cover; }
.preview-side { padding: 20px 13px; border-left: 1px solid #dde8e8; background: rgba(255,255,255,.72); }
.preview-side > strong { color: var(--navy); font-size: .73rem; }
.countdown { display: grid; place-items: center; aspect-ratio: 1; margin: 18px 4px; border-radius: 50%; border: 7px solid #cde5e3; color: var(--teal); background: var(--white); }
.countdown b { font-size: 1.8rem; }
.countdown small { margin-top: -13px; }
.preview-side p { height: 7px; margin: 8px 0; border-radius: 999px; background: #e2eceb; }
.privacy-badge { position: absolute; right: -18px; bottom: -24px; padding: 14px 18px; border: 1px solid #cee3df; border-radius: 15px; color: var(--teal); background: var(--white); box-shadow: var(--shadow-small); font-size: .78rem; font-weight: 850; }

.privacy-section { padding-block: 96px; color: var(--white); background: var(--navy-deep); }
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 76px; }
.privacy-visual { overflow: hidden; height: 440px; border-radius: 34px; box-shadow: 0 25px 50px rgba(0,0,0,.22); }
.privacy-visual img { width: 100%; height: 100%; object-fit: cover; }
.privacy-copy h2 { max-width: 650px; margin-bottom: 20px; font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.05em; }
.privacy-copy > p:not(.eyebrow) { max-width: 650px; color: #c7d9e3; line-height: 1.75; }
.privacy-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.privacy-points span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d9e8ed; background: rgba(255,255,255,.06); font-size: .8rem; font-weight: 750; }

.portal-section { padding-block: 108px; }
.centered { margin-inline: auto; text-align: center; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.portal-card { min-height: 280px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.portal-card > span { color: var(--coral); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.portal-card h3 { margin: 45px 0 12px; color: var(--navy); font-size: 1.25rem; overflow-wrap: anywhere; }
.portal-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.portal-card small { display: inline-block; margin-top: 18px; padding: 7px 10px; border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-weight: 800; }
.portal-card.active { color: var(--white); border-color: transparent; background: linear-gradient(150deg, var(--teal), #0b7c87); box-shadow: var(--shadow-small); }
.portal-card.active > span, .portal-card.active h3 { color: var(--white); }
.portal-card.active p { color: #d9eeee; }
.portal-card.active small { color: var(--teal); background: var(--white); }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 92px; padding: 46px 52px; border-radius: var(--radius-xl); color: var(--white); background: radial-gradient(circle at 85% 0, rgba(255,206,105,.25), transparent 30%), linear-gradient(135deg, var(--teal), var(--navy)); box-shadow: var(--shadow); }
.final-cta h2 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.04em; }
.final-cta p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: #d7eaea; line-height: 1.6; }
.final-cta .hero-actions { flex: 0 0 auto; margin-top: 0; }

.site-footer { padding: 64px 0 26px; border-top: 1px solid var(--line); background: #f5f7f3; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 11px; }
.footer-grid > div > strong { margin-bottom: 6px; color: var(--navy); font-size: .84rem; }
.footer-grid a, .footer-grid span { color: var(--muted); font-size: .82rem; }
.footer-grid a:hover { color: var(--teal); }
.footer-brand p { margin: 18px 0 0; color: var(--muted); font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: #80919b; font-size: .76rem; }

/* Login */
.page-auth { min-height: 100vh; background: #edf5f3; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 1.05fr) minmax(520px, .95fr); }
.auth-visual { position: relative; overflow: hidden; min-height: 760px; display: flex; flex-direction: column; padding: 42px clamp(42px, 6vw, 88px); color: var(--white); background: linear-gradient(145deg, rgba(5,36,63,.96), rgba(7,95,104,.88)), url('../img/hero-mein-rosapineta.webp') center/cover; }
.brand-light strong, .brand-light small { color: var(--white); }
.brand-light small { opacity: .72; }
.auth-visual-copy { position: relative; z-index: 2; max-width: 610px; margin-top: clamp(70px, 9vh, 120px); }
.auth-visual-copy h1 { margin-bottom: 20px; font-size: clamp(3rem, 5.4vw, 5.3rem); line-height: .96; letter-spacing: -.06em; }
.auth-visual-copy p:not(.eyebrow) { max-width: 570px; color: #d4e7eb; font-size: 1.08rem; line-height: 1.7; }
.auth-image { position: absolute; right: -80px; bottom: -160px; width: min(58%, 540px); opacity: .42; mix-blend-mode: screen; }
.auth-image img { border-radius: 50% 50% 0 0; }
.auth-visual-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.auth-visual-foot span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .8rem; font-weight: 750; }
.auth-panel { display: grid; place-items: center; padding: 48px; background: var(--paper); }
.auth-panel-inner { width: min(100%, 500px); }
.auth-back { display: inline-block; margin-bottom: 30px; color: var(--teal); font-size: .85rem; font-weight: 800; }
.auth-status-note { display: grid; gap: 4px; margin-bottom: 30px; padding: 14px 16px; border: 1px solid #ead9b2; border-radius: 14px; background: #fff8e8; }
.auth-status-note strong { color: #8a5c00; font-size: .78rem; }
.auth-status-note span { color: #806d43; font-size: .75rem; line-height: 1.45; }
.auth-heading h2 { margin-bottom: 10px; color: var(--navy); font-size: clamp(2.25rem, 4vw, 3.15rem); letter-spacing: -.05em; }
.auth-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.62; }
.auth-form { margin-top: 30px; }
.auth-form > label { display: block; margin: 0 0 8px; color: var(--navy); font-size: .79rem; font-weight: 850; }
.input-wrap { display: flex; align-items: center; gap: 11px; min-height: 54px; margin-bottom: 19px; padding: 0 15px; border: 1px solid #cfdfde; border-radius: 15px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: #69b2ad; box-shadow: 0 0 0 4px rgba(11,125,130,.1); }
.input-wrap > span { color: var(--teal); }
.input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.password-toggle { border: 0; background: transparent; color: var(--teal); font-size: .72rem; font-weight: 850; cursor: pointer; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 3px 0 22px; font-size: .78rem; }
.form-row-between a { color: var(--teal); font-weight: 800; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.checkbox input { accent-color: var(--teal); }
.form-message { margin: 13px 0 0; padding: 12px 14px; border-radius: 12px; color: #7b5a16; background: #fff7df; font-size: .76rem; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: #8ca0aa; font-size: .72rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-account-ready{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:14px;margin-top:28px;padding:20px;border:1px solid #b9ded7;border-left:5px solid var(--teal);background:#f1fbf8}.auth-account-ready>span{width:50px;height:50px;display:grid;place-items:center;border-radius:50%;color:#087c55;background:#d9f5e8;font-size:1.4rem}.auth-account-ready strong{color:var(--navy);font-size:1rem}.auth-account-ready p{margin:5px 0;color:var(--muted);font-size:.78rem;line-height:1.5}.auth-account-ready>.button{grid-column:1/-1;margin-top:4px}.auth-ready-logout{grid-column:1/-1;text-align:center;color:var(--teal);font-size:.75rem;font-weight:800}
.register-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 17px; border-radius: 15px; background: #f3f7f5; }
.register-box > div { display: grid; gap: 3px; }
.register-box strong { color: var(--navy); font-size: .82rem; }
.register-box span { color: var(--muted); font-size: .72rem; line-height: 1.4; }

/* Community */
.page-community { min-height: 100vh; background: #f0f5f4; }
.preview-banner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 20px; color: #6f581d; background: #fff1c7; font-size: .74rem; }
.preview-banner strong { padding: 4px 8px; border-radius: 999px; color: #fff; background: #9b7619; text-transform: uppercase; letter-spacing: .08em; }
.preview-banner a { margin-left: 10px; font-weight: 900; text-decoration: underline; }
.community-topbar { position: sticky; z-index: 30; top: 0; min-height: 70px; display: grid; grid-template-columns: 250px minmax(280px, 600px) 1fr; align-items: center; gap: 28px; padding: 0 28px; border-bottom: 1px solid #dbe7e5; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.brand-compact img { width: 40px; height: 40px; border-radius: 12px; }
.community-search { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #d6e3e1; border-radius: 999px; background: #f5f8f7; }
.community-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.community-search small { color: #93a6ae; }
.community-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.community-top-actions > button { width: 39px; height: 39px; border: 1px solid #dce8e6; border-radius: 50%; background: var(--white); cursor: pointer; }
.preview-profile { display: flex; align-items: center; gap: 9px; margin-left: 6px; }
.preview-profile > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--white); background: var(--teal); font-size: .7rem; font-weight: 900; }
.preview-profile div { display: grid; gap: 2px; }
.preview-profile strong { color: var(--navy); font-size: .75rem; }
.preview-profile small { color: var(--muted); font-size: .63rem; }
.community-shell { width: min(1500px, 100%); margin: 0 auto; display: grid; grid-template-columns: 235px minmax(520px, 1fr) 330px; gap: 26px; padding: 28px; }
.community-sidebar, .community-aside { position: sticky; top: 98px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; }
.community-sidebar nav { display: grid; gap: 5px; }
.community-sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 13px; border-radius: 13px; color: #506b79; font-size: .84rem; font-weight: 750; }
.community-sidebar nav a span { width: 23px; text-align: center; color: var(--teal); font-size: 1rem; }
.community-sidebar nav a:hover, .community-sidebar nav a.active { color: var(--teal); background: var(--white); box-shadow: 0 8px 18px rgba(8,47,81,.05); }
.sidebar-divider { height: 1px; margin: 17px 8px; background: #d9e5e3; }
.sidebar-card { margin-top: 24px; padding: 18px; border-radius: 18px; color: var(--white); background: linear-gradient(145deg, var(--teal), var(--navy)); }
.sidebar-card > span { font-size: 1.4rem; }
.sidebar-card strong { display: block; margin: 15px 0 7px; }
.sidebar-card p { margin: 0; color: #d5e7e8; font-size: .72rem; line-height: 1.5; }
.community-main { min-width: 0; }
.dashboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 30px; border-radius: 24px; color: var(--white); background: radial-gradient(circle at 92% 0, rgba(255,210,110,.25), transparent 35%), linear-gradient(135deg, var(--navy), var(--teal)); box-shadow: var(--shadow-small); }
.dashboard-welcome h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.05em; }
.dashboard-welcome p:not(.eyebrow) { max-width: 690px; margin-bottom: 0; color: #d9e9ed; line-height: 1.6; }
.dashboard-welcome .button { flex: 0 0 auto; color: var(--teal); background: var(--white); }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.dashboard-stats article { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 15px; border: 1px solid #dde8e6; border-radius: 17px; background: var(--white); }
.dashboard-stats article > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--teal-soft); }
.dashboard-stats article div { display: grid; gap: 4px; }
.dashboard-stats small { color: var(--muted); font-size: .67rem; }
.dashboard-stats strong { color: var(--navy); font-size: .77rem; }
.composer-card { display: grid; grid-template-columns: 42px 1fr; gap: 11px; padding: 17px; border: 1px solid #dde8e6; border-radius: 19px; background: var(--white); }
.demo-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--white); background: var(--teal); font-size: .7rem; font-weight: 900; }
.demo-avatar.coral { background: var(--coral); }
.demo-avatar.blue { background: #397db4; }
.composer-card > button { border: 0; border-radius: 999px; color: #788c96; background: #eff4f3; text-align: left; padding: 0 18px; cursor: pointer; }
.composer-actions { grid-column: 2; display: flex; gap: 20px; color: #6d828d; font-size: .72rem; font-weight: 750; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 3px 13px; }
.feed-heading h2 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.feed-heading p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.feed-tabs { display: flex; padding: 3px; border-radius: 999px; background: #e3ecea; }
.feed-tabs button { border: 0; padding: 7px 12px; border-radius: 999px; color: #71858e; background: transparent; font-size: .67rem; font-weight: 800; }
.feed-tabs button.active { color: var(--teal); background: var(--white); }
.feed-card { margin-bottom: 15px; padding: 20px; border: 1px solid #dce7e5; border-radius: 21px; background: var(--white); }
.feed-card-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; }
.feed-card-head > div { display: grid; gap: 3px; }
.feed-card-head strong { color: var(--navy); font-size: .84rem; }
.feed-card-head small { color: var(--muted); font-size: .68rem; }
.feed-card-head button { border: 0; background: transparent; color: #8a9ca4; }
.feed-card > p { margin: 16px 0; color: #4e6875; line-height: 1.62; font-size: .86rem; }
.feed-photo-card > img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; }
.feed-card-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e6eeec; }
.feed-card-actions button { border: 0; padding: 7px 10px; border-radius: 999px; color: #607681; background: transparent; font-size: .72rem; cursor: pointer; }
.feed-card-actions button:hover { background: var(--teal-soft); color: var(--teal); }
.community-aside { display: grid; gap: 14px; }
.aside-card { padding: 19px; border: 1px solid #dce7e5; border-radius: 20px; background: var(--white); }
.aside-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aside-title h2 { margin: 0; color: var(--navy); font-size: .9rem; }
.aside-title span { padding: 5px 8px; border-radius: 999px; color: #8b6a18; background: #fff2c8; font-size: .59rem; font-weight: 850; }
.aside-title a { color: var(--teal); font-size: .63rem; font-weight: 850; }
.trip-count { display: flex; align-items: end; justify-content: center; gap: 7px; margin: 23px 0 15px; }
.trip-count strong { color: var(--teal); font-size: 3.8rem; line-height: .82; letter-spacing: -.06em; }
.trip-count span { color: var(--muted); font-size: .77rem; }
.trip-card > p { color: var(--muted); font-size: .72rem; line-height: 1.52; }
.event-list { display: grid; gap: 8px; margin-top: 14px; }
.event-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border-radius: 13px; background: #f3f7f6; }
.event-list span { display: grid; gap: 3px; }
.event-list b { color: var(--navy); font-size: .73rem; }
.event-list small { color: var(--muted); font-size: .61rem; }
.event-list i { color: var(--teal); font-style: normal; }
.safety-card { display: flex; gap: 11px; color: #dbeaec; border: 0; background: var(--navy); }
.safety-card strong { color: var(--white); font-size: .77rem; }
.safety-card p { margin: 5px 0 0; font-size: .66rem; line-height: 1.5; }
.demo-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 340px; padding: 14px 17px; border-radius: 14px; color: var(--white); background: var(--navy); box-shadow: var(--shadow-small); font-size: .78rem; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 36px, 1080px); }
  .site-nav { display: none; position: absolute; top: 70px; right: 18px; min-width: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-small); }
  .site-nav.is-open { display: grid; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: 0; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 520px; }
  .hero-visual > img { height: 520px; }
  .quick-grid, .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .community-shell { grid-template-columns: 205px minmax(500px, 1fr); }
  .community-aside { position: static; grid-column: 2; grid-template-columns: repeat(3, 1fr); max-height: none; overflow: visible; }
  .community-sidebar { top: 98px; }
}

@media (max-width: 900px) {
  .header-actions .language-pill, .header-actions .button-primary { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-copy { max-width: 730px; }
  .hero-visual { min-height: 500px; }
  .hero-float-top { left: 16px; }
  .hero-float-bottom { right: 16px; }
  .split-heading, .community-section, .privacy-grid { grid-template-columns: 1fr; }
  .split-heading { gap: 10px; }
  .community-story { max-width: 720px; }
  .privacy-visual { order: 2; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 480px; }
  .auth-image { width: 300px; bottom: -130px; }
  .auth-panel { padding-block: 70px; }
  .community-topbar { grid-template-columns: 1fr auto; padding: 0 16px; }
  .community-search { display: none; }
  .community-shell { grid-template-columns: 1fr; padding: 18px; }
  .community-sidebar { position: static; display: flex; gap: 8px; max-height: none; overflow-x: auto; }
  .community-sidebar nav { display: flex; }
  .community-sidebar nav a { white-space: nowrap; background: var(--white); }
  .community-sidebar nav a span { display: none; }
  .sidebar-divider, .sidebar-card, .community-sidebar nav:nth-of-type(2) { display: none; }
  .community-aside { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .safety-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 24px, 620px); }
  .header-inner { min-height: 70px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .5rem; }
  .header-actions .button-ghost { display: none; }
  .hero { gap: 38px; padding-block: 42px 62px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-visual, .hero-visual > img { min-height: 390px; height: 390px; }
  .hero-visual > img { border-radius: 28px 28px 70px 28px; }
  .hero-float { padding: 11px 13px; }
  .hero-float-top { top: 14px; }
  .hero-float-bottom { bottom: 18px; }
  .quick-section, .portal-section { padding-block: 68px; }
  .quick-grid, .portal-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 260px; }
  .community-section { padding-block: 76px; }
  .preview-layout { grid-template-columns: 44px 1fr; }
  .preview-side { display: none; }
  .privacy-badge { right: 8px; }
  .privacy-section { padding-block: 70px; }
  .privacy-visual { height: 310px; }
  .final-cta { width: calc(100% - 24px); padding: 32px 24px; margin-bottom: 62px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .auth-visual { min-height: 420px; padding: 30px 24px; }
  .auth-visual-copy { margin-top: 60px; }
  .auth-panel { padding: 48px 20px; }
  .register-box { align-items: flex-start; flex-direction: column; }
  .preview-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .preview-banner a { margin-left: 0; }
  .community-topbar { min-height: 64px; }
  .community-top-actions > button, .preview-profile div { display: none; }
  .community-shell { padding: 12px; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 24px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .composer-card { grid-template-columns: 38px 1fr; }
  .composer-actions { gap: 10px; flex-wrap: wrap; }
  .community-aside { grid-template-columns: 1fr; }
  .safety-card { grid-column: auto; }
  .feed-card-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Desktop portal – visual language derived from the existing app, widened for PC */
.page-community {
  --portal-navy: #12365c;
  --portal-navy-dark: #0b2948;
  --portal-yellow: #ffd51f;
  --portal-blue: #63b8ef;
  min-height: 100vh;
  padding-bottom: 40px;
  color: #173b59;
  background: #edf5fa;
}
.page-community button { font: inherit; }
.page-community .preview-banner {
  min-height: 36px;
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 20px;
  color: #614b02;
  background: #fff3bd;
  font-size: .72rem;
}
.page-community .preview-banner strong { padding: 4px 8px; border-radius: 99px; color: #fff; background: #856400; letter-spacing: .07em; text-transform: uppercase; }
.page-community .preview-banner a { margin-left: 8px; color: #173b59; font-weight: 900; text-decoration: underline; }
.portal-frame { width: min(1440px, calc(100% - 44px)); margin-inline: auto; }
.portal-topbar { position: sticky; z-index: 50; top: 0; padding-bottom: 14px; color: #fff; background: rgba(11,41,72,.97); box-shadow: 0 10px 35px rgba(5,29,54,.18); backdrop-filter: blur(18px); }
.portal-topbar-inner { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; }
.portal-brand img { width: 52px; height: 52px; padding: 3px; border-radius: 15px; object-fit: cover; background: #fff7d8; }
.portal-brand > span { display: grid; line-height: 1; }
.portal-brand strong { color: #fff; font-size: 1.15rem; letter-spacing: -.025em; }
.portal-brand small { margin-top: 7px; color: #d9e7f1; font-size: .56rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-topnav { justify-self: center; display: flex; align-items: center; gap: 4px; }
.portal-topnav a, .portal-topnav button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; color: #d9e6ef; background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.portal-topnav a:hover, .portal-topnav button:hover, .portal-topnav .active { color: #fff; background: rgba(255,255,255,.1); }
.portal-account { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.account-chip, .round-action { border: 1px solid rgba(255,213,31,.78); color: #fff; background: rgba(255,255,255,.05); cursor: pointer; }
.account-chip { min-height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; }
.account-avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; color: var(--portal-navy); background: #d8ecf7; font-size: .66rem; font-weight: 950; }
.account-name { font-size: .7rem; font-weight: 800; }
.round-action { position: relative; min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; }
.round-action span { color: var(--portal-yellow); font-size: 1.08rem; }
.round-action b { font-size: .7rem; }
.round-action i { position: absolute; top: -3px; right: -2px; display: grid; place-items: center; width: 17px; height: 17px; border: 2px solid var(--portal-navy-dark); border-radius: 50%; color: #fff; background: #ef4965; font-size: .57rem; font-style: normal; font-weight: 900; }
.points-action { width: auto; padding: 0 11px; border-radius: 999px; }

.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 24px; padding-block: 18px 34px; }
.portal-primary { min-width: 0; display: grid; gap: 20px; }
.beach-status { position: relative; isolation: isolate; overflow: hidden; padding: 26px; border-radius: 25px; color: #fff; background: linear-gradient(145deg, #173f70, #0f3158); box-shadow: 0 18px 44px rgba(17,53,90,.2); }
.beach-status-sky { position: absolute; z-index: -1; inset: 0 0 auto; height: 122px; opacity: .72; background: linear-gradient(180deg, rgba(69,171,242,.92), rgba(125,206,255,.44) 63%, rgba(35,114,188,.08)), url('../img/discovery/beach-status-day-533.png') center 42%/cover; }
.beach-status-sky::after { content: ""; position: absolute; inset: auto 0 0; height: 55px; background: linear-gradient(transparent, #163d6b); }
.beach-status-head { min-height: 96px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.beach-kicker { margin: 0 0 4px; color: #eff8ff; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.beach-status h1 { margin: 0; color: #fff; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.055em; text-shadow: 0 3px 8px rgba(0,0,0,.45); }
.beach-status h1 span { display: inline-block; padding: 5px 14px 7px; border-radius: 14px; color: #ffe15e; background: linear-gradient(#9c8015,#725c0e); font-family: Georgia, serif; font-weight: 700; letter-spacing: -.04em; }
.beach-status-head > div > small { display: block; margin-top: 8px; color: #e8f4fb; font-size: .66rem; font-weight: 750; }
.beach-flag { min-width: 90px; display: grid; justify-items: center; gap: 6px; }
.beach-flag span { position: relative; width: 52px; height: 32px; margin-top: 5px; background: #f5c61c; box-shadow: 0 5px 14px rgba(0,0,0,.24); transform: skewY(7deg); }
.beach-flag span::before { content: ""; position: absolute; right: 100%; top: -8px; width: 4px; height: 74px; border-radius: 2px; background: #e6eef3; transform: skewY(-7deg); }
.beach-flag small { color: #e7f2f9; font-size: .56rem; font-weight: 850; }
.beach-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.beach-metrics article { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid rgba(153,204,238,.48); border-radius: 12px; background: rgba(8,38,75,.62); }
.metric-icon { width: 30px; color: #79e8ef; font-size: 1.65rem; line-height: 1; text-align: center; }
.beach-metrics article div { display: grid; gap: 3px; }
.beach-metrics small { color: #9fc3dc; font-size: .6rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.beach-metrics strong { color: #fff; font-size: .98rem; line-height: 1.15; }
.beach-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.beach-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; font-size: .78rem; font-weight: 900; cursor: pointer; }
.beach-button-yellow { color: #3f3500; background: var(--portal-yellow); }
.beach-button-light { color: #183b67; background: #f9fbff; }
.beach-button span { margin-left: auto; padding-right: 2px; font-size: 1.35rem; }

.discovery-section { padding: 18px; border-top: 3px solid #6dc4f4; background: #fff; box-shadow: 0 12px 32px rgba(25,65,96,.07); }
.portal-section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 4px 14px; }
.portal-section-title > div { display: flex; align-items: center; gap: 10px; }
.portal-section-title p { margin: 0; color: #103668; font-size: .87rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.section-pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; color: #fff; background: #43a9d9; font-size: .55rem; box-shadow: inset 0 0 0 7px rgba(255,255,255,.22); }
.portal-section-title > a { color: #287ba7; font-size: .67rem; font-weight: 900; }
.discovery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 170px); gap: 5px; }
.discovery-card { position: relative; isolation: isolate; overflow: hidden; min-height: 0; background: #12365c; }
.discovery-card-large { grid-column: 1 / 4; grid-row: 1 / 3; }
.discovery-card:nth-child(2) { grid-column: 4 / 6; grid-row: 1; }
.discovery-card:nth-child(3) { grid-column: 6; grid-row: 1; }
.discovery-card:nth-child(4) { grid-column: 4; grid-row: 2; }
.discovery-card:nth-child(5) { grid-column: 5; grid-row: 2; }
.discovery-card:nth-child(6) { grid-column: 6; grid-row: 2; }
.discovery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.discovery-card::after { content: ""; position: absolute; z-index: 0; inset: 25% 0 0; background: linear-gradient(transparent, rgba(5,24,47,.94)); }
.discovery-card:hover img { transform: scale(1.04); }
.discovery-card > span { position: absolute; z-index: 1; inset: auto 15px 14px; display: grid; gap: 2px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,.8); }
.discovery-card small { color: #e9f4f9; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.discovery-card strong { font-size: clamp(.9rem, 1.4vw, 1.14rem); line-height: 1.05; }
.discovery-card-large strong { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }

.story-section { padding: 24px 26px; color: #fff; background: var(--portal-navy); box-shadow: 0 12px 32px rgba(25,65,96,.1); }
.story-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.story-heading .eyebrow { margin-bottom: 5px; }
.story-heading h2 { margin-bottom: 3px; font-size: 1.35rem; }
.story-heading > div > span { color: #bcd0df; font-size: .63rem; }
.story-add { min-height: 38px; padding: 0 15px; border: 0; border-radius: 10px; color: #322900; background: var(--portal-yellow); font-size: .7rem; font-weight: 950; cursor: pointer; }
.story-row { display: flex; gap: 18px; margin-top: 17px; }
.story-bubble { min-width: 68px; display: grid; justify-items: center; gap: 2px; border: 0; color: #fff; background: transparent; cursor: pointer; }
.story-avatar { position: relative; overflow: hidden; width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 4px; border: 2px solid #77c9f1; border-radius: 50%; background: #eff7fb; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-avatar-user { overflow: visible; color: #fff; background: #2a79a9; font-size: .72rem; font-weight: 950; }
.story-avatar i { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--portal-navy); border-radius: 50%; color: #223100; background: var(--portal-yellow); font-size: .75rem; font-style: normal; }
.story-bubble strong { font-size: .64rem; }
.story-bubble small { color: #a8bed0; font-size: .55rem; }

.community-feed-preview { padding: 25px; border: 1px solid #d7e5ee; background: #fff; box-shadow: 0 12px 32px rgba(25,65,96,.07); }
.feed-preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.feed-preview-heading .eyebrow { margin-bottom: 5px; }
.feed-preview-heading h2 { margin: 0; color: var(--portal-navy); font-size: 1.4rem; }
.feed-preview-heading > button, .portal-feed-card > button { border: 0; color: #276f96; background: #eaf5fb; cursor: pointer; font-weight: 850; }
.feed-preview-heading > button { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: .7rem; }
.portal-feed-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; margin-top: 18px; padding: 16px; border: 1px solid #e0ebf0; border-radius: 14px; background: #f8fbfc; }
.feed-author { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #2a7fa8; font-size: .67rem; font-weight: 950; }
.portal-feed-card > div { display: grid; gap: 3px; }
.portal-feed-card strong { color: #173b59; font-size: .78rem; }
.portal-feed-card small { color: #7e95a6; font-size: .6rem; }
.portal-feed-card p { margin: 7px 0 0; color: #597284; font-size: .73rem; line-height: 1.55; }
.portal-feed-card > button { align-self: start; padding: 6px 8px; border-radius: 8px; }

.developer-strip { min-height: 57px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: #fff; background: linear-gradient(90deg, #ba1845, #e44362); }
.developer-code { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 11px; color: var(--portal-yellow); font-weight: 950; }
.developer-strip > div { display: grid; gap: 2px; }
.developer-strip small { font-size: .55rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.developer-strip strong { font-size: .77rem; }
.developer-date { margin-left: auto; font-size: .61rem; font-weight: 800; }
.developer-strip > button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }

.portal-side { position: sticky; top: 108px; display: grid; gap: 14px; }
.side-welcome, .side-card { padding: 19px; border-radius: 19px; background: #fff; box-shadow: 0 12px 32px rgba(25,65,96,.07); }
.side-welcome { display: grid; grid-template-columns: 50px 1fr; gap: 11px; color: #fff; background: linear-gradient(145deg, var(--portal-navy), #19517d); }
.side-avatar { grid-row: span 2; display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid #fff; border-radius: 50%; color: var(--portal-navy); background: #dceef8; font-size: .68rem; font-weight: 950; }
.side-welcome small { color: #b9d0df; font-size: .62rem; }
.side-welcome h2 { margin: 3px 0 0; font-size: 1.05rem; }
.side-welcome p { grid-column: 1 / -1; margin: 7px 0 0; color: #c7dbe8; font-size: .69rem; line-height: 1.55; }
.side-login { grid-column: 1 / -1; min-height: 38px; display: grid; place-items: center; border-radius: 10px; color: #213800; background: var(--portal-yellow); font-size: .7rem; font-weight: 950; }
.side-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-card-title h3 { margin: 0; color: var(--portal-navy); font-size: .83rem; }
.side-card-title > span { padding: 4px 7px; border-radius: 999px; color: #775d00; background: #fff3bd; font-size: .53rem; font-weight: 900; }
.trip-ring { width: 105px; height: 105px; display: grid; place-content: center; justify-items: center; margin: 20px auto; border: 8px solid #d7edf6; border-top-color: #3d9ac4; border-radius: 50%; color: #176188; }
.trip-ring strong { font-size: 2.4rem; line-height: .85; }
.trip-ring small { margin-top: 8px; color: #7690a0; font-size: .6rem; }
.trip-preview > button { width: 100%; min-height: 38px; border: 0; border-radius: 10px; color: #176188; background: #eaf5fa; font-size: .67rem; font-weight: 900; cursor: pointer; }
.quick-links { display: grid; gap: 8px; }
.quick-links .side-card-title { margin-bottom: 5px; }
.quick-links > a { min-height: 56px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; background: #f3f8fb; }
.quick-links > a > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #176188; background: #dff1f8; }
.quick-links > a > div { display: grid; gap: 2px; }
.quick-links strong { color: #173b59; font-size: .69rem; }
.quick-links small { color: #7b91a0; font-size: .56rem; }
.quick-links i { color: #2e82aa; font-style: normal; font-size: 1.2rem; }
.data-note { display: flex; gap: 11px; color: #d6e5ee; background: var(--portal-navy-dark); }
.data-note > span { color: var(--portal-yellow); font-size: 1.25rem; }
.data-note strong { color: #fff; font-size: .71rem; }
.data-note p { margin: 6px 0 0; font-size: .62rem; line-height: 1.55; }

.portal-dock { position: relative; z-index: 2; width: min(1120px, calc(100% - 44px)); min-height: 70px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: stretch; margin: 0 auto; padding: 0 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; color: #dce9f2; background: #173a61; box-shadow: 0 14px 34px rgba(4,26,48,.3); }
.portal-dock > a, .portal-dock > button { position: relative; display: grid; place-content: center; justify-items: center; gap: 5px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.portal-dock span { font-size: 1.15rem; }
.portal-dock strong { font-size: .57rem; }
.portal-dock .active { color: var(--portal-yellow); }
.portal-dock .active::after { content: ""; position: absolute; bottom: 7px; width: 28px; height: 3px; border-radius: 99px; background: var(--portal-yellow); }
.portal-dock .camera-action span { width: 54px; height: 54px; display: grid; place-items: center; margin-top: -28px; border: 6px solid #31506e; border-radius: 50%; color: #fff; background: #f1f5f8; box-shadow: 0 0 0 4px #e7a7b7; }
.portal-dock .camera-action span::first-letter { color: var(--portal-navy); }
.page-community .demo-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: #fff; background: var(--portal-navy-dark); box-shadow: 0 16px 40px rgba(4,26,48,.28); font-size: .76rem; }

.feed-hub { overflow: hidden; padding: 16px; border: 1px solid #d6e3eb; border-radius: 19px; background: #fff; box-shadow: 0 12px 32px rgba(25,65,96,.07); scroll-margin-top: 180px; }
.feed-composer { display: grid; grid-template-columns: 46px minmax(220px, 1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid #dbe4ea; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(18,54,92,.07); }
.composer-avatar { display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #e2f0f7; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #2a81ab, #12365c); font-size: .67rem; font-weight: 950; }
.composer-prompt { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; color: #687d8b; background: #f0f3f5; text-align: left; cursor: pointer; }
.composer-tools { display: flex; align-items: center; gap: 5px; }
.composer-tools button { min-width: 43px; height: 43px; display: grid; place-content: center; justify-items: center; gap: 1px; border: 0; border-radius: 12px; color: #df244c; background: #fff1f4; cursor: pointer; }
.composer-tools button:nth-child(2) { color: #259d62; background: #ebf8f0; }
.composer-tools button:nth-child(3) { color: #e38400; background: #fff5df; }
.composer-tools span { font-size: 1.1rem; font-weight: 950; }
.composer-tools small { font-size: .48rem; font-weight: 850; }
.feed-hub-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 19px 3px 11px; }
.feed-hub-title .eyebrow { margin-bottom: 4px; }
.feed-hub-title h2 { margin: 0; color: var(--portal-navy); font-size: 1.28rem; }
.feed-hub-title > button { border: 0; color: #277ba4; background: transparent; font-size: .67rem; font-weight: 900; cursor: pointer; }
.story-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(126px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.story-tile { position: relative; overflow: hidden; min-height: 184px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 10px; border: 0; border-radius: 13px; color: #fff; background: #12365c; text-align: left; cursor: pointer; }
.story-tile::after { content: ""; position: absolute; z-index: 0; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,25,47,.96)); }
.story-tile-image { position: absolute; inset: 0; }
.story-tile-image > img { width: 100%; height: 100%; object-fit: cover; }
.story-tile-image > i { position: absolute; z-index: 2; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #3d71ff; border-radius: 50%; color: #12365c; background: #fff; font-size: .55rem; font-style: normal; font-weight: 950; box-shadow: 0 3px 10px rgba(0,0,0,.24); }
.story-tile > strong, .story-tile > small { position: relative; z-index: 1; }
.story-tile > strong { font-size: .7rem; line-height: 1.12; }
.story-tile > small { margin-top: 3px; color: #d4e2eb; font-size: .54rem; }
.story-create .story-tile-image > i { top: auto; bottom: 41px; width: 38px; height: 38px; color: #fff; background: #2f68ef; font-size: 1.05rem; }

.feed-module-stack { display: grid; gap: 14px; margin-top: 14px; }
.feed-latest, .holiday-stories, .countdown-module, .poll-module { border: 1px solid #dce7ed; border-radius: 15px; background: #fff; }
.feed-latest, .holiday-stories, .poll-module { padding: 16px; }
.feed-module-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.feed-module-title > div { display: flex; align-items: center; gap: 8px; }
.feed-module-title > div > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: #2f8fbd; font-size: .7rem; font-weight: 900; }
.feed-module-title h3 { margin: 0; color: var(--portal-navy); font-size: .8rem; }
.feed-module-title > button { border: 0; color: #337fa4; background: transparent; font-size: .6rem; font-weight: 900; cursor: pointer; }
.feed-module-title > small { padding: 4px 7px; border-radius: 99px; color: #755b00; background: #fff2bd; font-size: .5rem; font-weight: 900; }
.feed-list-row { width: 100%; min-height: 56px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; padding: 8px 5px; border: 0; border-top: 1px solid #edf2f5; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.feed-list-avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: #fff; background: #317fb4; font-size: .57rem; font-weight: 950; }
.feed-list-avatar.coral { background: #e16957; }
.feed-list-avatar.green { background: #2f9b78; }
.feed-list-row > span:nth-child(2) { display: grid; gap: 3px; }
.feed-list-row strong { color: #183b59; font-size: .69rem; }
.feed-list-row small { color: #7d92a0; font-size: .55rem; }
.feed-list-row i { color: #3485aa; font-size: 1.1rem; font-style: normal; }
.holiday-story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.holiday-story-grid button { overflow: hidden; padding: 0; border: 0; border-radius: 11px; background: #f3f7f9; text-align: left; cursor: pointer; }
.holiday-story-grid img { width: 100%; height: 105px; object-fit: cover; }
.holiday-story-grid button > span { display: grid; gap: 2px; padding: 9px; }
.holiday-story-grid strong { color: #173b59; font-size: .63rem; }
.holiday-story-grid small { color: #7d92a0; font-size: .51rem; }
.feed-utility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.countdown-module { position: relative; overflow: hidden; min-height: 170px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 20px; color: #fff; background: linear-gradient(120deg, rgba(13,73,98,.98), rgba(40,142,139,.9)), url('../img/discovery/home-discovery-rosolina.png') center/cover; }
.countdown-module small { color: #bde4e4; font-size: .59rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.countdown-module h3 { margin: 7px 0 5px; font-size: 1.05rem; }
.countdown-module h3 strong { color: var(--portal-yellow); font-size: 2.5rem; }
.countdown-module p { max-width: 330px; margin: 0; color: #d0e6e8; font-size: .61rem; line-height: 1.45; }
.countdown-module button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; color: #273400; background: var(--portal-yellow); font-size: .59rem; font-weight: 950; cursor: pointer; }
.poll-module { min-height: 170px; }
.poll-options { display: grid; gap: 7px; }
.poll-options button { min-height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #dae7ed; border-radius: 8px; color: #38566a; background: linear-gradient(90deg,#e9f4fa 34%,#fff 34%); font-size: .58rem; font-weight: 800; cursor: pointer; }
.poll-options button:nth-child(2) { background: linear-gradient(90deg,#edf7ee 27%,#fff 27%); }
.poll-options button:nth-child(3) { background: linear-gradient(90deg,#fff4df 21%,#fff 21%); }

@media (max-width: 1160px) {
  .portal-topnav { display: none; }
  .portal-topbar-inner { grid-template-columns: 1fr auto; }
  .portal-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .discovery-grid { grid-template-rows: repeat(2, 150px); }
}

@media (max-width: 900px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .data-note { grid-column: 1 / -1; }
  .account-name { display: none; }
  .account-chip { padding-right: 4px; }
}

@media (max-width: 680px) {
  .page-community { padding-bottom: 30px; }
  .page-community .preview-banner { align-items: flex-start; flex-direction: column; gap: 3px; }
  .page-community .preview-banner a { margin-left: 0; }
  .portal-frame { width: min(100% - 20px, 660px); }
  .portal-topbar-inner { min-height: 68px; }
  .portal-brand img { width: 44px; height: 44px; }
  .portal-brand strong { font-size: .94rem; }
  .portal-brand small { font-size: .48rem; }
  .portal-account { gap: 5px; }
  .points-action, .account-chip { display: none; }
  .round-action { min-width: 39px; height: 39px; }
  .portal-layout { padding-top: 12px; }
  .beach-status { padding: 17px; border-radius: 18px; }
  .beach-status h1 { font-size: 2rem; }
  .beach-status h1 span { padding: 4px 9px 5px; }
  .beach-flag { display: none; }
  .beach-metrics { grid-template-columns: repeat(2, 1fr); }
  .beach-metrics article { min-height: 67px; padding: 10px; }
  .metric-icon { width: 24px; font-size: 1.3rem; }
  .beach-metrics strong { font-size: .75rem; }
  .beach-actions { grid-template-columns: 1fr; }
  .discovery-section { padding: 10px; }
  .portal-section-title p { font-size: .69rem; letter-spacing: .08em; }
  .portal-section-title > a { display: none; }
  .discovery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px repeat(2, 130px); }
  .discovery-card, .discovery-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .discovery-card-large { grid-column: 1 / -1; grid-row: auto; }
  .feed-hub { padding: 10px; scroll-margin-top: 20px; }
  .feed-composer { grid-template-columns: 39px 1fr; padding: 7px; }
  .composer-avatar { width: 39px; height: 39px; }
  .composer-prompt { min-height: 39px; padding-inline: 13px; font-size: .73rem; }
  .composer-tools { grid-column: 2; justify-content: flex-end; }
  .composer-tools button { width: auto; min-width: 58px; height: 32px; display: flex; align-items: center; gap: 4px; }
  .story-strip { grid-auto-columns: 118px; }
  .story-tile { min-height: 172px; }
  .community-feed-preview { padding: 18px; }
  .feed-preview-heading { align-items: flex-start; flex-direction: column; }
  .portal-feed-card { grid-template-columns: 40px 1fr; }
  .portal-feed-card > button { display: none; }
  .portal-side { grid-template-columns: 1fr; }
  .data-note { grid-column: auto; }
  .developer-date { display: none; }
  .portal-dock { position: relative; top: auto; width: calc(100% - 20px); min-height: 65px; margin-top: 12px; padding: 0 5px; border-radius: 17px; }
  .portal-dock strong { font-size: .49rem; }
  .portal-dock .camera-action span { width: 48px; height: 48px; margin-top: -22px; }
  .holiday-story-grid { grid-template-columns: 1fr 1fr; }
  .feed-utility-grid { grid-template-columns: 1fr; }
  .countdown-module { align-items: flex-start; flex-direction: column; }
  .page-community .demo-toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}
