:root {
  --navy: #06111f;
  --navy-2: #0a192a;
  --navy-3: #10263c;
  --sky: #38bdf8;
  --sky-2: #7dd3fc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ec;
  --paper: #f3f7fa;
  --white: #fff;
  --green: #10b981;
  --red: #dc2626;
  --radius: 2rem;
  --shadow: 0 22px 70px rgba(15, 23, 42, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.ui-icon { width: 1.25em; height: 1.25em; flex: none; }
.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; left: 1rem; top: -5rem; z-index: 9999; padding: .8rem 1rem; border-radius: .8rem; background: white; color: var(--ink); box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid rgba(56,189,248,.65); outline-offset: 3px; }

.public-page, .home-page, .auth-page, .journal-page { background: var(--navy); color: white; }
.public-header { position: relative; z-index: 60; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 max(5vw, 1.25rem); border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(6,17,31,.88); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 850; letter-spacing: -.04em; }
.brand > span:last-child { font-size: 1.18rem; }
.brand em { color: var(--sky); font-style: normal; }
.brand-mark { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .8rem; color: #06111f; background: var(--sky); box-shadow: 0 10px 30px rgba(56,189,248,.22); transform: rotate(-7deg); }
.brand-mark .ui-icon { width: 1.25rem; height: 1.25rem; }
.public-header nav { display: flex; align-items: center; gap: 1.55rem; font-size: .92rem; color: #cbd5e1; }
.public-header nav > a:not(.btn):hover { color: white; }
.mobile-menu { display: none; border: 0; color: white; background: transparent; font-size: 1.5rem; }

.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 999px; padding: .65rem 1.15rem; font-weight: 750; line-height: 1.2; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sky); color: #062033; box-shadow: 0 10px 30px rgba(56,189,248,.18); }
.btn-primary:hover { background: #7dd3fc; box-shadow: 0 14px 36px rgba(56,189,248,.26); }
.btn-outline { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: white; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-soft { border-color: #dbe4ec; background: #fff; color: #0f172a; box-shadow: 0 4px 15px rgba(15,23,42,.04); }
.btn-soft:hover { border-color: #bae6fd; background: #f0f9ff; }
.btn-ghost { border-color: transparent; background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(148,163,184,.12); }
.btn-dark-soft { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: white; }
.btn-danger { background: var(--red); color: white; }
.btn-small { min-height: 36px; padding: .5rem .9rem; font-size: .85rem; }
.btn-large { min-height: 50px; padding: .85rem 1.45rem; }
.btn-block { width: 100%; }
.danger { color: var(--red) !important; }
.center { text-align: center; }
.kicker { margin: 0 0 .55rem; color: #0284c7; font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.home-page .kicker, .journal-page .kicker, .auth-page .kicker { color: var(--sky-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(125,211,252,.18); border-radius: 999px; padding: .45rem .75rem; color: var(--sky-2); background: rgba(56,189,248,.08); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.hero { display: grid; min-height: 690px; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(4rem, 8vw, 7rem) max(5vw, 1.25rem); overflow: hidden; background: radial-gradient(circle at 78% 30%, rgba(14,165,233,.18), transparent 33%), linear-gradient(145deg,#06111f,#071a2e 64%,#0c2940); }
.hero-copy { max-width: 650px; }
.hero h1 { margin: 1.5rem 0; color: white; font-size: clamp(3.5rem, 6.6vw, 7rem); line-height: .93; letter-spacing: -.07em; }
.hero h1 em { color: var(--sky); font-style: normal; }
.hero-copy > p { max-width: 610px; margin-bottom: 0; color: #cbd5e1; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.75; }
.hero-actions, .hero-notes, .dashboard-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions { margin-top: 2rem; }
.hero-notes { margin-top: 1.4rem; color: #94a3b8; font-size: .86rem; }
.hero-notes span { display: flex; align-items: center; gap: .45rem; }
.hero-notes .ui-icon { color: #34d399; }
.hero-visual { position: relative; min-height: 520px; }
.hero-visual > img { width: 100%; height: 520px; border-radius: 2.6rem; object-fit: cover; box-shadow: 0 40px 120px rgba(0,0,0,.38); }
.hero-visual::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 2.6rem; content: ""; pointer-events: none; }
.portal-stats { position: absolute; right: -1rem; bottom: -2rem; left: 2rem; padding: 1.2rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1.6rem; background: rgba(6,17,31,.82); box-shadow: 0 28px 70px rgba(0,0,0,.28); backdrop-filter: blur(22px); }
.portal-stats-title { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-stats-title span { color: #94a3b8; font-size: .8rem; }
.portal-stats-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .5rem; }
.portal-stats-grid div { padding: .7rem; border-radius: 1rem; background: rgba(255,255,255,.055); }
.portal-stats-grid strong, .portal-stats-grid span { display: block; }
.portal-stats-grid strong { color: white; font-size: 1.1rem; }
.portal-stats-grid span { margin-top: .25rem; color: #94a3b8; font-size: .68rem; }

.section-heading { max-width: 700px; }
.section-heading.center { margin-inline: auto; }
.section-heading h2, .steps h2, .faq h2 { margin: .45rem 0 1rem; font-size: clamp(2.2rem, 4vw, 4.3rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p { color: #94a3b8; font-size: 1.05rem; line-height: 1.75; }
.preview-section, .features, .steps, .faq, .final-cta { padding: clamp(4.5rem, 8vw, 8rem) max(5vw,1.25rem); }
.preview-section { background: #f4f8fb; color: var(--ink); }
.preview-section .kicker, .features .kicker { color: #0284c7; }
.preview-section .section-heading p { color: var(--muted); }
.dashboard-preview { display: grid; max-width: 1180px; grid-template-columns: 190px 1fr; margin: 3.5rem auto 2rem; overflow: hidden; border: 1px solid #dce5ec; border-radius: 2rem; background: white; box-shadow: 0 32px 90px rgba(15,23,42,.13); }
.preview-sidebar { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1rem; color: #cbd5e1; background: var(--navy); }
.preview-sidebar .brand { margin-bottom: 2rem; color: white; }
.preview-sidebar > span:not(.brand) { display: flex; align-items: center; gap: .55rem; padding: .75rem; border-radius: .8rem; font-size: .82rem; }
.preview-sidebar .active { color: white; background: rgba(56,189,248,.15); }
.preview-main { min-width: 0; padding: 1.2rem; background: #f3f7fa; }
.mini-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: .7rem; }
.mini-stats div { padding: .9rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: white; }
.mini-stats small, .mini-stats strong { display: block; }
.mini-stats small { color: #64748b; font-size: .68rem; }
.mini-stats strong { margin-top: .35rem; font-size: 1.12rem; }
.preview-panels { display: grid; grid-template-columns: 1fr 230px; gap: .8rem; margin-top: .8rem; }
.preview-map { min-width: 0; overflow: hidden; border-radius: 1.2rem; }
.preview-map .globe-stage { height: 330px; }
.preview-summary { padding: 1.2rem; border-radius: 1.2rem; color: white; background: linear-gradient(150deg,#071525,#123a55); }
.preview-summary > strong { display: block; margin-top: 1.2rem; color: #7dd3fc; font-size: 2.5rem; }
.preview-summary > p { color: #cbd5e1; }
.preview-summary div { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.preview-summary b, .preview-summary small { display: block; }
.preview-summary small { margin-top: .3rem; color: #94a3b8; }
.preview-badges { display: flex; gap: .45rem; margin-top: .8rem; overflow: hidden; }
.preview-badges span { flex: none; padding: .55rem .75rem; border: 1px solid #fde68a; border-radius: 999px; color: #92400e; background: #fffbeb; font-size: .72rem; }

.features { color: white; background: var(--navy); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 3rem; }
.feature-grid article, .journal-features article { padding: 1.7rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.7rem; background: rgba(255,255,255,.035); }
.feature-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 1rem; color: var(--sky); background: rgba(56,189,248,.1); }
.feature-grid h3, .journal-features h2 { margin: 1.2rem 0 .65rem; font-size: 1.3rem; }
.feature-grid p, .journal-features p { margin: 0; color: #94a3b8; line-height: 1.7; }
.steps { color: var(--ink); background: white; }
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.5rem; }
.step-grid article { position: relative; padding: 2rem; border: 1px solid #e2e8f0; border-radius: 1.6rem; background: #f8fafc; }
.step-grid article > b { position: absolute; right: 1.2rem; top: 1rem; color: #dbeafe; font-size: 3.4rem; letter-spacing: -.08em; }
.step-grid article > span { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 1rem; color: #0369a1; background: #e0f2fe; }
.step-grid h3 { margin: 1.3rem 0 .6rem; }
.step-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.faq { color: white; background: #071525; }
.faq-grid { display: grid; max-width: 1080px; grid-template-columns: repeat(2,1fr); gap: 1rem; margin: 3rem auto 0; }
.faq-grid article { position: relative; padding: 1.6rem 1.6rem 1.6rem 4rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.5rem; background: rgba(255,255,255,.035); }
.faq-grid article > span { position: absolute; left: 1.3rem; top: 1.45rem; display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 50%; color: var(--sky-2); background: rgba(56,189,248,.12); font-weight: 900; }
.faq-grid h3 { margin-bottom: .6rem; }
.faq-grid p { margin: 0; color: #94a3b8; line-height: 1.7; }
.final-cta { text-align: center; color: white; background: radial-gradient(circle at 50% 20%,rgba(56,189,248,.16),transparent 45%),var(--navy); }
.final-cta > span, .final-cta > .ui-icon { display: inline-grid; width: 3.5rem; height: 3.5rem; place-items: center; color: var(--sky); }
.final-cta h2 { margin: 1rem 0; font-size: clamp(2.3rem,4vw,4rem); }
.final-cta p { max-width: 600px; margin: 0 auto 1.8rem; color: #94a3b8; line-height: 1.75; }
.footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 3.5rem max(5vw,1.25rem) 1.5rem; border-top: 1px solid rgba(255,255,255,.09); color: #94a3b8; background: #050d17; }
.footer .brand { color: white; }
.footer-brand > p { margin: 1rem 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 1rem 1.3rem; max-width: 620px; font-size: .85rem; }
.footer nav a:hover, .footer-link:hover { color: white; }
.footer-link { padding: 0; border: 0; color: inherit; background: none; }
.social-links { display: flex; gap: .6rem; }
.social-links a { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: white; }
.copyright { grid-column: 1/-1; margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; }

/* Wierne proporcje i powierzchnie publicznej strony z wersji ChatGPT v17. */
.home-page main { overflow: hidden; background: var(--navy); }
.home-page .public-header { min-height: 80px; padding-inline: max(calc((100vw - 1280px)/2 + 2rem),1.25rem); }
.home-page .brand { gap: .75rem; letter-spacing: .16em; }
.home-page .brand-mark { width: 2.5rem; height: 2.5rem; border-radius: 1rem; }
.home-page .hero { width: min(100%,1280px); min-height: 680px; margin-inline: auto; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 2rem; padding: 2rem 2rem 3rem; overflow: visible; background: transparent; }
.home-page .hero-copy { max-width: 42rem; }
.home-page .eyebrow { margin-bottom: 1.75rem; padding: .5rem 1rem; font-size: .875rem; letter-spacing: 0; text-transform: none; }
.home-page .hero h1 { margin: 0; font-size: clamp(3rem,5vw,4.5rem); line-height: .98; letter-spacing: -.055em; }
.home-page .hero h1 em { color: var(--sky-2); }
.home-page .hero-copy > p { max-width: 36rem; margin-top: 1.75rem; font-size: 1.125rem; line-height: 2rem; }
.home-page .hero-actions { margin-top: 2.25rem; }
.home-page .hero-notes { margin-top: 2rem; gap: 1.5rem; font-size: .875rem; }
.home-page .hero-visual { height: 610px; min-height: 610px; }
.home-page .hero-visual::before { position:absolute; inset:-2.5rem; z-index:-1; content:""; border-radius:50%; background:rgba(56,189,248,.1); filter:blur(55px); }
.home-page .hero-visual > img { height:100%; border-radius:2.25rem; }
.home-page .hero-visual::after { border-radius:2.25rem; background:linear-gradient(to top,#06111f 0%,rgba(6,17,31,.1) 48%,transparent 75%); }
.home-page .portal-stats { z-index:2; right:1.5rem; bottom:1.5rem; left:1.5rem; padding:1.25rem; border-radius:1.5rem; }
.home-page .portal-stats-grid div { padding:.75rem; border-radius:1rem; }
.home-page .preview-section { position:relative; border-top:1px solid rgba(255,255,255,.1); color:white; background:var(--navy); }
.home-page .preview-section::before { position:absolute; top:0; left:50%; width:min(80vw,900px); height:18rem; content:""; transform:translateX(-50%); background:rgba(56,189,248,.1); filter:blur(120px); pointer-events:none; }
.home-page .preview-section > * { position:relative; }
.home-page .preview-section .kicker { color:var(--sky-2); }
.home-page .preview-section .section-heading { max-width:48rem; }
.home-page .preview-section .section-heading p { color:#94a3b8; font-size:1.125rem; line-height:2rem; }
.dashboard-preview,.wrapped-preview { max-width:1180px; margin:3.5rem auto 2rem; overflow:hidden; border:1px solid rgba(255,255,255,.15); border-radius:2rem; box-shadow:0 30px 90px rgba(0,0,0,.35); }
.dashboard-preview { display:block; background:#f4f7fa; }
.preview-browserbar { display:flex; align-items:center; gap:.45rem; min-height:43px; padding:.75rem 1.25rem; border-bottom:1px solid #e2e8f0; color:#94a3b8; background:white; }
.preview-browserbar i { width:.625rem; height:.625rem; border-radius:50%; background:#fb7185; }
.preview-browserbar i:nth-child(2) { background:#fcd34d; }
.preview-browserbar i:nth-child(3) { background:#34d399; }
.preview-browserbar span { margin-left:auto; font-size:.75rem; font-style:normal; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.preview-browserbar.dark { border-color:rgba(255,255,255,.1); color:#94a3b8; background:#071525; }
.dashboard-preview .preview-main { padding:1.5rem; }
.dashboard-preview .mini-stats { grid-template-columns:repeat(4,1fr); gap:.75rem; }
.dashboard-preview .mini-stats div { padding:1rem; color:#0f172a; }
.dashboard-preview .mini-stats small { color:#64748b; }
.dashboard-preview .mini-stats strong { color:#0f172a; }
.dashboard-preview .preview-map { margin-top:1rem; border-radius:1.5rem; }
.dashboard-preview .preview-map .globe-stage { height:430px; }
.preview-caption { padding:1.25rem 1.5rem; border-top:1px solid #e2e8f0; color:#0f172a; background:white; }
.home-page .preview-caption .kicker { color:#0284c7; }
.preview-caption h3 { margin:.5rem 0; color:#0f172a; font-size:1.25rem; }
.preview-caption p { margin:0; color:#64748b; font-size:.875rem; }
.wrapped-preview { display:block; background:#071525; }
.wrapped-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.5rem 2rem; border-bottom:1px solid rgba(255,255,255,.1); }
.wrapped-head .kicker { margin:0; color:var(--sky-2); }
.wrapped-head h3 { margin:.5rem 0 0; color:white; font-size:1.875rem; letter-spacing:-.025em; }
.year-pill { padding:.55rem .8rem; border:1px solid rgba(255,255,255,.15); border-radius:.75rem; color:white; background:rgba(255,255,255,.1); font-weight:700; }
.wrapped-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; padding:1.5rem; }
.wrapped-cards article { display:flex; min-height:224px; flex-direction:column; align-items:flex-start; padding:1.5rem; border-radius:1.75rem; color:white; }
.wrapped-cards .violet { background:linear-gradient(145deg,#7c3aed,#db2777); }
.wrapped-cards .blue { background:linear-gradient(145deg,#0284c7,#06b6d4); }
.wrapped-cards .green { background:linear-gradient(145deg,#059669,#84cc16); }
.wrapped-cards .orange { background:linear-gradient(145deg,#f97316,#eab308); }
.wrapped-cards .ui-icon { width:1.75rem; height:1.75rem; }
.wrapped-cards strong { display:block; margin-top:auto; color:white; font-size:clamp(2rem,4vw,3.75rem); line-height:1; letter-spacing:-.06em; }
.wrapped-cards .orange strong { font-size:clamp(1.5rem,2.5vw,2.25rem); letter-spacing:-.04em; }
.wrapped-cards span { margin-top:.6rem; color:rgba(255,255,255,.88); font-size:1rem; font-weight:600; line-height:1.35; }
.wrapped-cards small { margin-top:.5rem; color:rgba(255,255,255,.72); line-height:1.35; }
.wrapped-details-preview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; padding:0 1.5rem 1.5rem; }
.wrapped-details-preview article { padding:1.25rem; border:1px solid rgba(255,255,255,.1); border-radius:1rem; color:white; background:rgba(255,255,255,.05); }
.wrapped-details-preview article > span { display:block; margin-bottom:1rem; color:var(--sky-2); font-size:1.25rem; }
.wrapped-details-preview small,.wrapped-details-preview strong { display:block; }
.wrapped-details-preview small { color:#94a3b8; font-size:.875rem; }
.wrapped-details-preview strong { margin:.35rem 0; color:white; font-size:1.15rem; }
.feature-cta { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; margin-top:2.5rem; padding:2rem; border:1px solid rgba(125,211,252,.15); border-radius:1.5rem; background:rgba(56,189,248,.07); }
.feature-cta strong { font-size:1.25rem; }
.feature-cta p { margin:.5rem 0 0; color:#94a3b8; }
.home-page .preview-section { padding-top:5rem; padding-bottom:3rem; }
.home-page .preview-section > .center:last-child { margin:1.5rem 0 0; }
.home-page .dashboard-preview { margin-top:2.75rem; margin-bottom:1.5rem; }
.home-page .dashboard-preview .preview-map .globe-stage { height:350px; }
.home-page .wrapped-preview { margin-top:2.5rem; margin-bottom:1.5rem; }
.home-page .wrapped-head { padding:1.15rem 1.5rem; }
.home-page .wrapped-head h3 { font-size:1.65rem; }
.home-page .wrapped-cards { gap:.65rem; padding:1rem 1.25rem; }
.home-page .wrapped-cards article { min-height:185px; padding:1.2rem; border-radius:1.4rem; }
.home-page .wrapped-cards strong { font-size:clamp(2rem,3.2vw,3rem); }
.home-page .wrapped-cards .orange strong { font-size:clamp(1.45rem,2.2vw,2rem); }
.home-page .wrapped-details-preview { gap:.65rem; padding:0 1.25rem 1.25rem; }
.home-page .wrapped-details-preview article { padding:1rem; }
.home-page .features { padding-top:4rem; padding-bottom:5rem; }
.home-page .features .section-heading, .home-page .steps .section-heading { margin-inline:auto; text-align:center; }
.home-page .feature-grid { gap:.85rem; margin-top:2.25rem; }
.home-page .feature-grid article { padding:1.4rem; border-radius:1.4rem; }
.home-page .feature-grid h3 { margin-top:1rem; }
.home-page .feature-grid p { line-height:1.6; }
.home-page .feature-cta { margin-top:1.75rem; padding:1.5rem; }
.home-page .steps { padding-top:5rem; padding-bottom:5rem; background:linear-gradient(180deg,#f4f8fb 0,#fff 5rem); }
.home-page .step-grid { margin-top:2rem; }
.home-page .step-grid article { padding:1.6rem; }
.home-page .faq { padding-top:5rem; padding-bottom:5rem; }
.home-page .faq-grid { margin-top:2.5rem; }
.home-page .final-cta { padding-top:5rem; padding-bottom:5rem; }
.home-page .footer { padding-top:2.25rem; padding-bottom:1.25rem; }
.home-page .footer-brand > p { margin:.75rem 0; }
.home-page .copyright { margin-top:.75rem; }

.auth-wrap { min-height: calc(100vh - 78px); padding: clamp(2rem,5vw,5rem) max(5vw,1.25rem); }
.auth-split { display: grid; max-width: 1200px; grid-template-columns: 1fr minmax(390px,.82fr); align-items: center; gap: clamp(2rem,7vw,7rem); margin: auto; }
.auth-story h1 { margin: 1.5rem 0; font-size: clamp(3rem,5vw,5.7rem); line-height: .95; letter-spacing: -.06em; }
.auth-story > p { max-width: 580px; color: #94a3b8; font-size: 1.1rem; line-height: 1.8; }
.auth-benefits { display: grid; gap: .75rem; margin-top: 2rem; }
.auth-benefits span { display: flex; align-items: center; gap: .75rem; color: #cbd5e1; }
.auth-benefits .ui-icon { color: var(--sky); }
.auth-card { width: 100%; max-width: 560px; margin: auto; padding: clamp(1.5rem,4vw,2.6rem); border: 1px solid #dce5ec; border-radius: 2rem; color: var(--ink); background: white; box-shadow: 0 35px 100px rgba(0,0,0,.27); }
.auth-card h1, .auth-card h2 { margin: .45rem 0 .7rem; font-size: 2.2rem; letter-spacing: -.04em; }
.auth-card > p:not(.kicker,.auth-foot) { color: var(--muted); line-height: 1.65; }
.auth-icon { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; margin-bottom: 1.3rem; border-radius: 1.2rem; color: #0369a1; background: #e0f2fe; font-weight: 900; }
.auth-foot { margin: 1.2rem 0 0; color: var(--muted); text-align: center; font-size: .9rem; }
.auth-foot a, .form-stack a, .form-grid a { color: #0284c7; font-weight: 700; }

.form-stack { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-stack label:not(.check,.switch-row), .form-grid label:not(.check,.switch-row), .route-fields label { display: grid; gap: .45rem; color: #334155; font-size: .85rem; font-weight: 720; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #cbd5e1; border-radius: .85rem; padding: .72rem .85rem; color: var(--ink); background: white; outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.14); }
label small, .form-stack > small { color: #94a3b8; font-weight: 450; line-height: 1.45; }
.span-2 { grid-column: span 2; }
.check { display: flex !important; align-items: flex-start; gap: .65rem; color: #475569; font-size: .86rem; line-height: 1.5; }
.check input { width: 1.05rem; height: 1.05rem; min-height: 0; margin-top: .2rem; accent-color: #0284c7; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.password-rules { display: flex; flex-wrap: wrap; gap: .45rem; }
.password-rules span { padding: .4rem .65rem; border-radius: 999px; color: #64748b; background: #f1f5f9; font-size: .75rem; }
.password-rules span.valid { color: #047857; background: #d1fae5; }

.install-page { min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 50% 0,rgba(56,189,248,.2),transparent 35%),var(--navy); }
.install-wrap { display: grid; min-height: 100vh; place-items: center; padding: 2rem 1rem; }
.install-card { width: min(760px,100%); padding: clamp(1.5rem,4vw,2.6rem); border-radius: 2rem; background: white; box-shadow: 0 35px 110px rgba(0,0,0,.38); }
.install-card .brand { margin-bottom: 2rem; color: var(--ink); }
.install-card h1 { margin: .5rem 0 1rem; font-size: clamp(2.2rem,5vw,3.7rem); letter-spacing: -.05em; }
.install-card h2 { margin: 1rem 0 0; font-size: 1rem; }
.install-card > p, .install-success p { color: var(--muted); line-height: 1.7; }
.requirements { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; margin: 1.2rem 0; }
.requirements span { padding: .65rem .75rem; border-radius: .75rem; font-size: .78rem; }
.requirements .ok { color: #047857; background: #d1fae5; }
.requirements .bad { color: #b91c1c; background: #fee2e2; }
.form-error { margin: 1rem 0; padding: .8rem; border-radius: .8rem; color: #b91c1c; background: #fee2e2; }
.install-success { text-align: center; }
.install-success > span { display: grid; width: 4rem; height: 4rem; place-items: center; margin: auto; border-radius: 50%; color: white; background: #10b981; font-size: 2rem; }

.app-page { background: #eef3f7; }
.app-layout { display: grid; min-height: 100vh; grid-template-columns: 260px minmax(0,1fr); }
.app-sidebar { position: sticky; z-index: 80; top: 0; height: 100vh; color: #cbd5e1; background: var(--navy); }
.sidebar-inner { display: flex; height: 100%; flex-direction: column; padding: 1.25rem; }
.app-sidebar .brand { margin: .35rem .5rem 2.1rem; color: white; }
.app-sidebar nav { display: grid; gap: .35rem; }
.app-sidebar nav a { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: .85rem; font-size: .88rem; }
.app-sidebar nav a:hover { color: white; background: rgba(255,255,255,.06); }
.app-sidebar nav a.active { color: white; background: rgba(56,189,248,.14); }
.sidebar-user { display: grid; grid-template-columns: 40px minmax(0,1fr) 30px; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user > span, .top-profile > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #0c4a6e; background: #bae6fd; font-weight: 850; }
.sidebar-user img, .top-profile img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: white; font-size: .8rem; }
.sidebar-user small { margin-top: .2rem; color: #64748b; font-size: .67rem; }
.sidebar-user form button { border: 0; color: #94a3b8; background: none; }
.app-main { min-width: 0; }
.app-top { position: sticky; z-index: 50; top: 0; display: flex; min-height: 78px; align-items: center; gap: 1rem; padding: .9rem clamp(1rem,3vw,2rem); border-bottom: 1px solid #dce5ec; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.app-top > div { min-width: 0; }
.app-top h1 { margin: 0; font-size: 1.25rem; }
.app-top p { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; }
.top-profile { display: flex; align-items: center; gap: .55rem; margin-left: auto; font-size: .82rem; }
.top-profile > span, .top-profile img { width: 34px; height: 34px; }
.sidebar-toggle { display: none; border: 0; background: transparent; font-size: 1.35rem; }
.app-content { width: 100%; max-width: 1500px; margin: auto; padding: clamp(1rem,3vw,2rem); }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin: .5rem 0 1.4rem; }
.dashboard-head h2 { margin: 0 0 .55rem; font-size: clamp(1.8rem,3vw,2.8rem); letter-spacing: -.04em; }
.dashboard-head p:last-child { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.stat-grid-five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.stat-grid article { display: grid; min-width: 0; grid-template-columns: 42px 1fr; gap: .05rem .75rem; align-items: center; padding: 1.05rem; border: 1px solid #dde6ed; border-radius: 1.35rem; background: white; box-shadow: 0 6px 25px rgba(15,23,42,.035); }
.stat-grid article > span { display: grid; width: 42px; height: 42px; grid-row: span 2; place-items: center; border-radius: 1rem; color: #0284c7; background: #e0f2fe; }
.stat-grid small { color: var(--muted); }
.stat-grid strong { overflow: hidden; font-size: clamp(1rem,1.4vw,1.35rem); text-overflow: ellipsis; white-space: nowrap; }
.panel, .admin-panel, .achievements-panel { border: 1px solid #dce5ec; border-radius: var(--radius); background: white; box-shadow: 0 7px 28px rgba(15,23,42,.04); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,.75fr); gap: 1rem; margin-top: 1rem; }
.map-panel, .passport-panel, .history-panel, .public-map { padding: 1.15rem; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-title h2, .panel-title h3 { margin: .1rem 0 0; font-size: 1.35rem; }
.panel-title p { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
.map-help { color: var(--muted); font-size: .72rem; }
.globe-stage { position: relative; height: clamp(330px,38vw,500px); overflow: hidden; border-radius: 1.45rem; background: radial-gradient(circle at 50% 45%,rgba(30,166,229,.17),transparent 55%),#061522; }
.globe-canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.globe-canvas:active { cursor: grabbing; }
.globe-controls { position: absolute; z-index: 5; right: .8rem; top: .8rem; display: flex; gap: .4rem; }
.globe-controls button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: .7rem; color: white; background: rgba(0,0,0,.3); backdrop-filter: blur(10px); }
.globe-label { position: absolute; z-index: 4; left: .8rem; top: .85rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .4rem .7rem; color: #cbd5e1; background: rgba(0,0,0,.25); font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.globe-empty { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .8rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; color: #cbd5e1; background: rgba(6,21,34,.78); font-size: .8rem; }
.map-legend { display: flex; justify-content: space-between; margin-top: .8rem; color: var(--muted); font-size: .72rem; }
.map-legend i { display: inline-block; width: 22px; height: 2px; margin-right: .4rem; vertical-align: middle; background: var(--sky); }
.passport-summary { display: flex; align-items: flex-end; gap: .7rem; padding: 1rem; border-radius: 1.3rem; color: white; background: linear-gradient(140deg,#075985,#0ea5e9); }
.passport-summary strong { font-size: 3.5rem; line-height: .8; }
.passport-summary span { max-width: 100px; font-size: .8rem; }
.flag-cloud { display: flex; min-height: 72px; flex-wrap: wrap; align-content: flex-start; gap: .45rem; margin: 1rem 0; }
.flag-cloud span { display: grid; width: 38px; height: 32px; place-items: center; border: 1px solid #e2e8f0; border-radius: .7rem; background: #f8fafc; font-size: 1.25rem; }
.flag-cloud p { color: var(--muted); font-size: .82rem; }
.continent-list { display: grid; gap: .65rem; }
.continent-list > div > span { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .7rem; }
.continent-list small { color: var(--muted); }
progress { width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; background: #e2e8f0; }
progress::-webkit-progress-bar { background: #e2e8f0; }
progress::-webkit-progress-value { border-radius: 999px; background: #0ea5e9; }
progress::-moz-progress-bar { border-radius: 999px; background: #0ea5e9; }
.history-panel { margin-top: 1rem; }
.flight-list { display: grid; gap: .65rem; }
.flight-row { display: grid; grid-template-columns: 42px minmax(150px,1fr) minmax(180px,1.3fr) minmax(120px,.65fr) auto; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid #e2e8f0; border-radius: 1.15rem; }
.flight-row:hover { border-color: #bae6fd; background: #f8fcff; }
.flight-row > div > strong, .flight-row > div > small { display: block; }
.flight-row small { margin-top: .22rem; color: var(--muted); font-size: .7rem; }
.flight-plane { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 1rem; color: #0284c7; background: #e0f2fe; }
.row-actions, .admin-actions, .admin-actions form { display: flex; align-items: center; gap: .3rem; }
.row-actions button, .icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: .7rem; color: #64748b; background: transparent; }
.row-actions button:hover, .icon-button:hover { color: #0369a1; background: #e0f2fe; }
.row-actions button:last-child:hover, .icon-button.danger:hover { color: #b91c1c; background: #fee2e2; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.pagination button { border: 1px solid #dbe4ec; border-radius: 999px; padding: .55rem .9rem; background: white; }
.pagination button:disabled { cursor: default; opacity: .4; }
.pagination span { color: var(--muted); font-size: .8rem; }
.empty { display: grid; min-height: 150px; place-items: center; align-content: center; gap: .45rem; padding: 1.5rem; color: var(--muted); text-align: center; }
.empty > span, .empty > .ui-icon { width: 2rem; height: 2rem; color: #94a3b8; }
.empty p { margin: 0; }
.empty.compact { min-height: 120px; }

.achievements-panel { margin-top: 1rem; overflow: hidden; }
.achievement-head { display: grid; grid-template-columns: 52px 1fr minmax(190px,240px); gap: 1rem; align-items: center; padding: 1.4rem; border-bottom: 1px solid #e2e8f0; background: linear-gradient(120deg,#fffbeb,#fff,#f5f3ff); }
.achievement-head h3 { margin: .1rem 0 .35rem; font-size: 1.45rem; }
.achievement-head p:last-child { margin: 0; color: var(--muted); font-size: .82rem; }
.achievement-overall { padding: .85rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: rgba(255,255,255,.8); }
.achievement-overall span { display: flex; justify-content: space-between; margin-bottom: .55rem; font-size: .78rem; }
.achievement-overall small { display: block; margin-top: .45rem; color: var(--muted); font-size: .67rem; }
.achievement-overall progress::-webkit-progress-value { background: #f59e0b; }
.achievement-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: .35rem; margin: 1rem 1rem 0; padding: .3rem; border-radius: .9rem; background: #f1f5f9; }
.achievement-tabs button { border: 0; border-radius: .65rem; padding: .6rem; color: #64748b; background: transparent; font-size: .78rem; font-weight: 700; }
.achievement-tabs button[aria-selected="true"] { color: #0f172a; background: white; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.achievement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 1rem; }
.achievement-card { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: .75rem; align-items: start; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 1.2rem; }
.achievement-card.done { border-color: #fde68a; background: linear-gradient(145deg,#fffbeb,#fff); }
.achievement-card.locked { color: #64748b; background: #f1f5f9; filter: grayscale(1); opacity: .68; }
.achievement-symbol { display: grid; width: 44px; height: 44px; place-items: center; border-radius: .9rem; color: white; background: #f59e0b; }
.locked .achievement-symbol { color: #64748b; background: #cbd5e1; }
.achievement-card div > strong, .achievement-card div > small { display: block; }
.achievement-card div > strong { margin: .45rem 0 .25rem; font-size: .87rem; }
.achievement-card div > small { color: var(--muted); font-size: .67rem; }
.achievement-card progress { margin-top: .65rem; }
.achievement-card progress::-webkit-progress-value { background: #f59e0b; }
.tier { display: inline-block; border: 1px solid #fcd34d; border-radius: 999px; padding: .18rem .42rem; color: #92400e; background: #fffbeb; font-size: .58rem; font-weight: 800; }
.achievement-card > button { border: 0; color: #b45309; background: none; }

.wrapped-panel { margin-top: 1rem; overflow: hidden; border-radius: var(--radius); color: white; background: #071525; box-shadow: var(--shadow); }
.wrapped-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.7rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.wrapped-panel h3 { margin: .15rem 0 0; font-size: 1.8rem; }
.wrapped-panel header > div:last-child { display: flex; gap: .6rem; }
.year-picker select { width: auto; min-height: 42px; border-color: rgba(255,255,255,.15); color: white; background: rgba(255,255,255,.08); }
.year-picker option { color: var(--ink); }
.wrapped-primary { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; padding: 1.4rem; }
.wrapped-primary article, .wrapped-details article { padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.1rem; background: rgba(255,255,255,.045); }
.wrapped-primary article > span { color: var(--sky-2); }
.wrapped-primary small, .wrapped-primary strong, .wrapped-details small, .wrapped-details strong, .wrapped-details span { display: block; }
.wrapped-primary small { margin: .8rem 0 .25rem; color: #94a3b8; }
.wrapped-primary strong { font-size: 1.2rem; }
.wrapped-details { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; padding: 0 1.4rem 1.4rem; }
.wrapped-details small { color: #94a3b8; }
.wrapped-details strong { margin-top: .55rem; font-size: 1.05rem; }
.wrapped-details span { margin-top: .2rem; color: #94a3b8; font-size: .72rem; }
.wrapped-badges { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }
.wrapped-badges h4 { margin: .2rem 0 .35rem; font-size: 1.35rem; }
.wrapped-badges p:last-child { margin: 0; color: #94a3b8; font-size: .78rem; }
.wrapped-badges > b { align-self: start; border-radius: 999px; padding: .45rem .7rem; background: rgba(255,255,255,.09); font-size: .72rem; }
.milestone-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; padding: 0 1.4rem 1.4rem; }
.milestone-grid article { display: flex; gap: .7rem; padding: .85rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: rgba(255,255,255,.045); }
.milestone-grid article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: .8rem; color: #451a03; background: #fbbf24; }
.milestone-grid strong, .milestone-grid small { display: block; }
.milestone-grid strong { font-size: .8rem; }
.milestone-grid small { margin-top: .25rem; color: #94a3b8; font-size: .65rem; }
.wrapped-panel .empty { color: #94a3b8; }
.wrapped-panel .empty strong { color: white; }

.reel-preview { position: relative; display: grid; grid-template-columns: 1fr minmax(280px,360px); gap: 3rem; align-items: center; margin-top: 1rem; padding: clamp(1.3rem,4vw,2.5rem); overflow: hidden; border-radius: var(--radius); color: white; background: #050816; box-shadow: var(--shadow); }
.reel-copy h3 { margin: 1.2rem 0; font-size: clamp(2.2rem,4vw,4rem); letter-spacing: -.05em; }
.reel-copy > p { max-width: 660px; color: #cbd5e1; line-height: 1.75; }
.bonus-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(232,121,249,.25); border-radius: 999px; padding: .45rem .7rem; color: #f5d0fe; background: rgba(217,70,239,.1); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.reel-features { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin: 1.4rem 0; }
.reel-features div { padding: .85rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: rgba(255,255,255,.045); }
.reel-features strong, .reel-features span { display: block; }
.reel-features strong { font-size: .8rem; }
.reel-features span, .reel-copy > small { margin-top: .25rem; color: #64748b; font-size: .68rem; }
.reel-device { position: relative; width: 100%; aspect-ratio: 9/16; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 2rem; box-shadow: 0 30px 100px rgba(124,58,237,.3); }
.reel-progress { position: absolute; z-index: 5; top: .8rem; right: .8rem; left: .8rem; display: flex; gap: .25rem; }
.reel-progress i { height: 3px; flex: 1; border-radius: 999px; background: rgba(255,255,255,.25); }
.reel-progress i.active, .reel-progress i.done { background: white; }
.reel-slides, .reel-slide { position: absolute; inset: 0; }
.reel-slide { display: flex; flex-direction: column; justify-content: space-between; padding: 2.8rem 1.5rem 1.5rem; }
.reel-slide > b { font-size: .68rem; letter-spacing: .18em; }
.reel-slide div > strong, .reel-slide div > span { display: block; }
.reel-slide div > strong { font-size: clamp(2.5rem,4vw,4.8rem); line-height: .9; letter-spacing: -.07em; }
.reel-slide div > span { margin-top: 1rem; font-size: 1.15rem; font-weight: 800; }
.reel-slide div > p { margin-top: 1rem; font-weight: 700; }
.reel-slide > small { color: rgba(255,255,255,.7); }
.reel-intro { background: radial-gradient(circle at 20% 15%,#38bdf8 0,transparent 35%),linear-gradient(145deg,#111827,#312e81 55%,#7c3aed); }
.reel-flights { background: linear-gradient(155deg,#06b6d4,#0284c7 52%,#172554); }
.reel-distance { color: #3b1d08; background: linear-gradient(145deg,#f97316,#eab308 55%,#fde047); }
.reel-world { color: #052e24; background: linear-gradient(145deg,#059669,#22c55e 58%,#a3e635); }
.reel-finale { background: radial-gradient(circle at 80% 20%,#fb7185 0,transparent 32%),linear-gradient(145deg,#7c3aed,#db2777 55%,#f97316); }
.reel-controls { position: absolute; z-index: 6; right: .8rem; bottom: .8rem; left: .8rem; display: flex; justify-content: space-between; }
.reel-controls button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: rgba(0,0,0,.22); }
.reel-status { position: absolute; right: 2.5rem; bottom: .55rem; color: #64748b; font-size: .65rem; }
.export-bar { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.2rem; border: 1px solid #dce5ec; border-radius: 1.5rem; background: white; }
.export-bar > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 1rem; color: #047857; background: #d1fae5; }
.export-bar strong, .export-bar p { display: block; }
.export-bar p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.export-bar > div:last-child { display: flex; gap: .5rem; }

dialog { border: 0; }
dialog::backdrop { background: rgba(2,6,23,.74); backdrop-filter: blur(6px); }
.flight-dialog, .admin-user-dialog { width: min(920px,calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border-radius: 1.8rem; background: transparent; }
.dialog-card { position: relative; max-height: calc(100vh - 2rem); overflow: auto; padding: clamp(1.2rem,3vw,2rem); border-radius: 1.8rem; color: var(--ink); background: white; }
.dialog-close { position: absolute; z-index: 5; right: 1rem; top: 1rem; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; color: #64748b; background: #f1f5f9; font-size: 1.2rem; }
.dialog-heading { padding-right: 3rem; }
.dialog-heading h2 { margin: .2rem 0 .55rem; font-size: 2rem; letter-spacing: -.04em; }
.dialog-heading > p:last-child { color: var(--muted); }
.scanner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; margin: 1.3rem 0; padding: 1rem; border: 1px dashed #7dd3fc; border-radius: 1.2rem; background: #f0f9ff; }
.scanner-copy { display: flex; align-items: center; gap: .7rem; }
.scanner-copy > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: .8rem; color: #0369a1; background: #e0f2fe; }
.scanner-copy strong, .scanner-copy small { display: block; }
.scanner-copy small { margin-top: .25rem; color: var(--muted); font-size: .7rem; }
.scanner-preview { grid-column: 1/-1; max-height: 180px; overflow: hidden; border-radius: .9rem; }
.scanner-preview img { width: 100%; max-height: 180px; object-fit: contain; background: #dceaf4; }
.ocr-status { grid-column: 1/-1; display: flex; align-items: center; gap: .7rem; }
.ocr-status span { flex: none; color: #0369a1; font-size: .72rem; }
.route-fields { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; gap: .8rem; }
.route-fields fieldset, .trip-type { min-width: 0; margin: 0; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 1.2rem; }
.route-fields legend, .trip-type legend { padding: 0 .4rem; color: #0369a1; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.route-fields fieldset { display: grid; gap: .8rem; }
.route-arrow { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #0369a1; background: #e0f2fe; font-size: 1.25rem; }
.stopovers { display: grid; gap: .7rem; margin-top: .8rem; }
.stopover-row { display: grid; grid-template-columns: 1fr 1fr 36px; align-items: end; gap: .7rem; padding: .8rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #f8fafc; }
.stopover-row > button { width: 36px; height: 42px; border: 0; border-radius: .7rem; color: #b91c1c; background: #fee2e2; }
.trip-type { display: flex; gap: 1.2rem; margin: 1rem 0; }
.trip-type label { display: flex; align-items: center; gap: .45rem; font-size: .85rem; }
.trip-type input { width: auto; min-height: 0; accent-color: #0284c7; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.smart-select { position: relative; }
.smart-select > button { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: .6rem; border: 1px solid #cbd5e1; border-radius: .85rem; padding: .72rem .85rem; color: var(--ink); background: white; text-align: left; }
.smart-select > button::after { color: #64748b; content: "⌄"; }
.smart-select > button.placeholder { color: #94a3b8; }
.smart-select-popover { position: absolute; z-index: 30; right: 0; left: 0; top: calc(100% + .35rem); padding: .45rem; border: 1px solid #dbe4ec; border-radius: 1rem; background: white; box-shadow: 0 20px 50px rgba(15,23,42,.18); }
.smart-select-popover input { margin-bottom: .35rem; }
.smart-select-results { max-height: 230px; overflow: auto; }
.smart-select-results button { display: block; width: 100%; border: 0; border-radius: .65rem; padding: .65rem .7rem; color: #334155; background: transparent; text-align: left; font-size: .8rem; }
.smart-select-results button:hover, .smart-select-results button.active { color: #075985; background: #e0f2fe; }
.smart-select-empty { padding: .8rem; color: #94a3b8; text-align: center; font-size: .75rem; }
.select-enhanced { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }

.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.profile-grid > .panel { padding: 1.35rem; }
.profile-card { display: flex; grid-column: 1/-1; align-items: center; gap: 1.2rem; background: linear-gradient(120deg,#fff,#f0f9ff); }
.profile-card h2 { margin: .2rem 0 .4rem; font-size: 2rem; }
.profile-card p { color: var(--muted); }
.profile-avatar, .public-avatar { display: grid; width: 96px; height: 96px; flex: none; place-items: center; overflow: hidden; border-radius: 1.8rem; color: #075985; background: #bae6fd; font-size: 2rem; font-weight: 850; }
.profile-avatar img, .public-avatar img { width: 100%; height: 100%; object-fit: cover; }
.status-pill { display: inline-flex; border-radius: 999px; padding: .35rem .6rem; color: #475569; background: #e2e8f0; font-size: .68rem; font-weight: 750; }
.status-pill.public { color: #047857; background: #d1fae5; }
.status-pill.blocked { color: #b91c1c; background: #fee2e2; }
.status-pill.new { color: #075985; background: #e0f2fe; }
.copy-field { display: flex; gap: .5rem; }
.copy-field input { min-width: 0; }
.inline-form { margin-top: 1rem; }
.data-card { display: grid; grid-column: 1/-1; grid-template-columns: 52px 1fr auto; align-items: center; gap: 1rem; }
.data-card h3 { margin: .2rem 0 .3rem; }
.data-card p { margin: 0; color: var(--muted); }
.data-card > div:last-child { display: flex; gap: .5rem; }
.danger-zone { grid-column: 1/-1; border-color: #fecaca; }

.admin-stats { margin-bottom: 1rem; }
.admin-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; padding: .35rem; border: 1px solid #dce5ec; border-radius: 1rem; background: white; }
.admin-tabs button { flex: none; border: 0; border-radius: .75rem; padding: .65rem .85rem; color: #64748b; background: transparent; font-size: .8rem; font-weight: 750; }
.admin-tabs button.active { color: #075985; background: #e0f2fe; }
.admin-panel { padding: 1.25rem; }
.admin-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.admin-columns > .panel { padding: 1.25rem; }
.admin-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem .65rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; font-size: .78rem; }
th { color: #64748b; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { margin-top: .2rem; color: #94a3b8; font-size: .65rem; }
.search-form, .row-form { display: flex; align-items: center; gap: .5rem; }
.search-form input { min-width: 250px; }
.row-form select { width: auto; min-height: 38px; }
.self-label { color: #94a3b8; font-size: .7rem; }
.message-list { display: grid; gap: .7rem; }
.message-list > article { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 1rem; }
.message-list > article > div:first-child { display: flex; justify-content: space-between; gap: .5rem; }
.message-list small { display: block; margin-top: .35rem; color: var(--muted); }
.message-list p { color: #475569; line-height: 1.65; }
.message-list .row-form { margin-top: .8rem; }
.admin-panel hr { margin: 1.4rem 0; border: 0; border-top: 1px solid #e2e8f0; }
.error-list { display: grid; gap: .6rem; }
.error-list article { padding: .8rem; border-radius: .8rem; background: #fff7ed; }
.error-list strong, .error-list small { display: block; }
.error-list small { margin-top: .3rem; color: #9a3412; }
.admin-user-dialog { width: min(680px,calc(100vw - 2rem)); }

.public-profile { background: var(--paper); }
.profile-hero { padding: clamp(3rem,6vw,6rem) max(5vw,1.25rem); color: white; background: radial-gradient(circle at 80% 20%,rgba(56,189,248,.18),transparent 35%),var(--navy); }
.public-profile-lead { display: flex; max-width: 1200px; align-items: center; gap: 1.2rem; margin: auto; }
.public-profile-lead h1 { margin: .2rem 0 .4rem; font-size: clamp(2.6rem,5vw,5rem); }
.public-profile-lead p { color: #94a3b8; }
.public-profile-lead .btn { margin-top: .7rem; }
.public-stat-grid { display: grid; max-width: 1200px; grid-template-columns: repeat(6,1fr); gap: .7rem; margin: 2rem auto 0; }
.public-stat-grid article { padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.1rem; background: rgba(255,255,255,.045); }
.public-stat-grid small, .public-stat-grid strong { display: block; }
.public-stat-grid small { color: #94a3b8; }
.public-stat-grid strong { margin-top: .55rem; font-size: 1.1rem; }
.public-map, .public-flights { max-width: 1200px; margin: 1.2rem auto; }
.public-flights { padding: 1.25rem; border-radius: var(--radius); background: white; }
.public-flight-list { display: grid; gap: .6rem; }
.public-flight-list article { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid #e2e8f0; border-radius: 1rem; }
.public-flight-list article > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: .8rem; color: #0284c7; background: #e0f2fe; }
.public-flight-list strong, .public-flight-list small { display: block; }
.public-flight-list small { margin-top: .2rem; color: var(--muted); }
.public-journey-grid { display:grid; max-width:1200px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; margin:1.2rem auto; }
.public-collection-card { padding:1.5rem; border:1px solid #dce8f1; border-radius:var(--radius); background:#fff; box-shadow:0 18px 50px rgba(15,23,42,.06); }
.collection-heading { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.9rem; margin-bottom:1.25rem; }
.collection-heading h2 { margin:.2rem 0 0; font-size:clamp(1.4rem,2.5vw,2rem); }
.collection-heading > strong { padding:.55rem .75rem; border-radius:999px; color:#0369a1; background:#e0f2fe; }
.public-country-cloud { display:flex; flex-wrap:wrap; gap:.55rem; min-height:4rem; margin-bottom:1.3rem; }
.public-country-cloud > span { padding:.55rem .75rem; border:1px solid #e2e8f0; border-radius:999px; color:#334155; background:#f8fafc; font-size:.85rem; font-weight:700; }
.public-achievement-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.public-achievement-grid > div { display:grid; grid-template-columns:32px 1fr; column-gap:.65rem; padding:.75rem; border:1px solid #dbeafe; border-radius:1rem; background:linear-gradient(145deg,#f0f9ff,#fff); }
.public-achievement-grid > div > span { grid-row:1/3; display:grid; width:32px; height:32px; place-items:center; border-radius:.7rem; color:#0369a1; background:#bae6fd; }
.public-achievement-grid small, .public-achievement-grid b { display:block; }
.public-achievement-grid small { color:#0284c7; font-size:.65rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.public-achievement-grid b { margin-top:.15rem; color:#1e293b; font-size:.85rem; }
.public-profile-cta { max-width:1200px; margin:1.2rem auto 4rem; padding:clamp(2.5rem,6vw,5rem) 1.5rem; border-radius:2rem; text-align:center; color:#fff; background:radial-gradient(circle at 50% 0,rgba(56,189,248,.28),transparent 38%),var(--navy); }
.public-profile-cta .feature-icon { margin:0 auto 1rem; }
.public-profile-cta h2 { margin:.45rem 0 .8rem; font-size:clamp(2.2rem,4vw,4rem); }
.public-profile-cta p:not(.kicker) { max-width:610px; margin:0 auto 1.5rem; color:#94a3b8; line-height:1.7; }
.locked-profile-note { display:flex; align-items:flex-start; gap:.45rem; padding:.8rem; border-radius:.8rem; color:#475569; background:#f1f5f9; line-height:1.45; }
.locked-profile-note svg { flex:0 0 auto; width:1rem; margin-top:.1rem; }
.form-grid .register-identity { display:grid; grid-template-rows:auto minmax(46px,auto) 1.2rem; align-content:start; }

.content-page, .legal-page { min-height: 70vh; padding: clamp(3rem,7vw,7rem) max(5vw,1.25rem); }
.page-intro { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.page-intro h1 { margin: .4rem 0 1rem; font-size: clamp(2.7rem,5vw,5rem); }
.page-intro p { color: #94a3b8; font-size: 1.05rem; }
.contact-grid { display: grid; max-width: 1050px; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin: auto; }
.contact-grid > .panel, .contact-grid aside .panel { padding: 1.4rem; color: var(--ink); }
.contact-grid aside { display: grid; gap: 1rem; }
.contact-grid h2 { margin: 1rem 0 .5rem; }
.contact-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.safe-card { background: #ecfdf5 !important; }
.legal-card { max-width: 850px; margin: auto; padding: clamp(1.5rem,5vw,3.5rem); border-radius: 2rem; color: var(--ink); background: white; box-shadow: var(--shadow); }
.legal-icon { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border-radius: 1.1rem; color: #0369a1; background: #e0f2fe; }
.legal-card h1 { margin: .5rem 0 1rem; font-size: clamp(2.5rem,5vw,4.7rem); letter-spacing: -.05em; }
.legal-lead { color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.legal-sections { display: grid; gap: 2rem; margin-top: 3rem; }
.legal-sections section { padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.legal-sections h2 { margin-bottom: .7rem; font-size: 1.25rem; }
.legal-sections p { margin: 0; color: #475569; line-height: 1.8; }

.journal-hero { padding: clamp(4rem,8vw,8rem) max(5vw,1.25rem); }
.journal-hero > * { max-width: 1050px; }
.journal-hero h1 { margin: 1rem 0 1.5rem; font-size: clamp(3.5rem,7vw,7rem); line-height: .95; letter-spacing: -.065em; }
.journal-hero > p:not(.kicker) { max-width: 700px; color: #cbd5e1; font-size: 1.1rem; line-height: 1.8; }
.journal-hero > div { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.journal-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; padding: clamp(4rem,7vw,7rem) max(5vw,1.25rem); border-block: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.journal-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,7vw,7rem); padding: clamp(4rem,7vw,7rem) max(5vw,1.25rem); }
.journal-benefits h2, .journal-posts h2 { margin: .5rem 0 1rem; font-size: clamp(2.3rem,4vw,4rem); }
.journal-benefits p { color: #94a3b8; line-height: 1.8; }
.journal-benefits > div:last-child { display: grid; gap: .65rem; }
.journal-benefits > div:last-child span { display: flex; align-items: center; gap: .6rem; padding: .9rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; color: #e2e8f0; }
.journal-benefits .ui-icon { color: #34d399; }
.journal-posts { padding: clamp(4rem,7vw,7rem) max(5vw,1.25rem); border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.5rem; }
.post-grid article { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.5rem; background: var(--navy-2); }
.post-grid article > span { display: flex; align-items: center; gap: .4rem; color: #64748b; font-size: .75rem; }
.post-grid h3 { margin: 1.1rem 0 .7rem; font-size: 1.5rem; }
.post-grid p { flex: 1; color: #94a3b8; line-height: 1.7; }
.post-grid a { margin-top: .7rem; color: var(--sky-2); font-weight: 750; }
.article-page { background: var(--paper); }
.blog-article { max-width: 800px; margin: auto; padding: clamp(3rem,7vw,7rem) 1.25rem; }
.blog-article h1 { margin: .7rem 0 1.2rem; font-size: clamp(2.8rem,6vw,5.6rem); line-height: 1; letter-spacing: -.055em; }
.article-meta { display: flex; gap: 1.2rem; color: var(--muted); font-size: .82rem; }
.article-meta span { display: flex; align-items: center; gap: .35rem; }
.article-intro { margin: 2rem 0 3rem; color: #334155; font-size: 1.25rem; line-height: 1.8; }
.article-sections { display: grid; gap: 3rem; }
.article-sections h2 { margin-bottom: 1rem; font-size: 2rem; letter-spacing: -.035em; }
.article-sections p { color: #475569; font-size: 1.05rem; line-height: 1.85; }
.article-sections ul { display: grid; gap: .7rem; margin: 1.2rem 0 0; padding: 1.3rem; border: 1px solid #dbe4ec; border-radius: 1.4rem; background: white; list-style: none; }
.article-sections li { display: flex; gap: .7rem; color: #334155; line-height: 1.6; }
.article-sections li > span { width: 8px; height: 8px; flex: none; margin-top: .55rem; border-radius: 50%; background: #0ea5e9; }
.blog-article aside { margin-top: 3rem; padding: 1.6rem; border-radius: 1.5rem; color: white; background: var(--navy); }
.blog-article aside p { color: #cbd5e1; line-height: 1.7; }

.cookie-banner { position: fixed; z-index: 200; right: 1rem; bottom: 1rem; left: 1rem; display: flex; max-width: 1000px; align-items: center; justify-content: space-between; gap: 1rem; margin: auto; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1.3rem; color: white; background: rgba(6,17,31,.94); box-shadow: 0 25px 80px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.cookie-banner p { margin: .25rem 0 0; color: #94a3b8; font-size: .78rem; }
.cookie-actions { display: flex; flex: none; gap: .5rem; }
.cookie-dialog { width: min(520px,calc(100vw - 2rem)); padding: 0; border-radius: 1.5rem; }
.cookie-dialog form { position: relative; padding: 1.5rem; }
.cookie-dialog h2 { margin-bottom: .4rem; }
.cookie-dialog > form > p { color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid #e2e8f0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: .2rem; color: var(--muted); }
.switch-row input { width: 1.2rem; min-height: 0; accent-color: #0284c7; }
.flash { position: fixed; z-index: 500; right: 1rem; top: 1rem; display: flex; max-width: min(440px,calc(100vw - 2rem)); align-items: flex-start; gap: 1rem; padding: .9rem 1rem; border-radius: 1rem; color: white; box-shadow: 0 18px 60px rgba(15,23,42,.25); }
.flash-success { background: #047857; }
.flash-error { background: #b91c1c; }
.flash button { margin-left: auto; border: 0; color: white; background: transparent; font-size: 1.1rem; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .portal-stats-grid { grid-template-columns: repeat(3,1fr); }
  .stat-grid-five { grid-template-columns: repeat(3,1fr); }
  .achievement-grid { grid-template-columns: repeat(2,1fr); }
  .public-stat-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  .public-header { min-height: 70px; }
  .mobile-menu { display: block; }
  .public-header nav { position: absolute; right: 1rem; top: calc(100% + .5rem); display: none; min-width: 250px; flex-direction: column; align-items: stretch; gap: .25rem; padding: .8rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: #071525; box-shadow: 0 25px 60px rgba(0,0,0,.35); }
  .public-header nav.open { display: flex; }
  .public-header nav a { padding: .65rem .7rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .hero-visual > img { height: 440px; }
  .portal-stats { right: 1rem; left: 1rem; }
  .feature-grid, .step-grid, .post-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-preview { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px,85vw); transform: translateX(-105%); transition: transform .2s ease; }
  .app-sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(2,6,23,.65); }
  .sidebar-toggle { display: block; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-grid-five { grid-template-columns: repeat(2,1fr); }
  .flight-row { grid-template-columns: 42px 1fr auto; }
  .flight-row > div:nth-of-type(2) { grid-column: 2; }
  .flight-row > div:nth-of-type(3) { grid-column: 2; }
  .row-actions { grid-column: 3; grid-row: 1/4; flex-direction: column; }
  .wrapped-primary, .wrapped-details { grid-template-columns: repeat(2,1fr); }
  .milestone-grid { grid-template-columns: repeat(2,1fr); }
  .reel-preview { grid-template-columns: 1fr; }
  .reel-device { max-width: 350px; margin: auto; }
  .reel-status { position: static; grid-column: 1/-1; text-align: center; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-story { max-width: 700px; margin: auto; text-align: center; }
  .auth-benefits { display: inline-grid; text-align: left; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid > .panel, .profile-card, .data-card, .danger-zone { grid-column: auto; }
  .admin-columns, .contact-grid, .journal-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .hero { min-height: auto; padding-top: 3.5rem; }
  .hero h1 { font-size: 3.4rem; }
  .hero-visual { min-height: 340px; }
  .hero-visual > img { height: 340px; border-radius: 1.7rem; }
  .portal-stats { position: relative; right: auto; bottom: auto; left: auto; margin: -4.5rem .6rem 0; }
  .portal-stats-grid { grid-template-columns: repeat(2,1fr); }
  .preview-section, .features, .steps, .faq, .final-cta { padding-block: 4rem; }
  .feature-grid, .step-grid, .faq-grid, .journal-features, .post-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2,1fr); }
  .preview-panels { grid-template-columns: 1fr; }
  .preview-summary { display: none; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .auth-wrap { padding-inline: 1rem; }
  .auth-story h1 { font-size: 3.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .top-profile b { display: none; }
  .app-content { padding: .8rem; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions .btn { flex: 1; }
  .stat-grid, .stat-grid-five { grid-template-columns: 1fr 1fr; }
  .stat-grid article { grid-template-columns: 34px 1fr; padding: .8rem; }
  .stat-grid article > span { width: 34px; height: 34px; }
  .stat-grid strong { font-size: .9rem; }
  .globe-stage { height: 340px; }
  .globe-label { display: none; }
  .panel-title { align-items: flex-start; }
  .flight-row { grid-template-columns: 34px 1fr auto; }
  .flight-plane { width: 34px; height: 34px; }
  .achievement-head { grid-template-columns: 46px 1fr; }
  .achievement-overall { grid-column: 1/-1; }
  .achievement-tabs { grid-template-columns: repeat(2,1fr); }
  .achievement-grid, .wrapped-primary, .wrapped-details, .milestone-grid { grid-template-columns: 1fr; }
  .wrapped-panel > header { align-items: flex-start; flex-direction: column; }
  .wrapped-panel header > div:last-child { width: 100%; }
  .wrapped-panel header .btn { flex: 1; }
  .reel-features { grid-template-columns: 1fr; }
  .export-bar, .data-card { grid-template-columns: 1fr; }
  .export-bar > div:last-child, .data-card > div:last-child { width: 100%; }
  .export-bar .btn, .data-card .btn { flex: 1; }
  .route-fields { grid-template-columns: 1fr; }
  .route-arrow { margin: auto; transform: rotate(90deg); }
  .stopover-row { grid-template-columns: 1fr 36px; }
  .stopover-row label { grid-column: 1; }
  .stopover-row > button { grid-column: 2; grid-row: 1/3; align-self: center; }
  .trip-type { flex-direction: column; }
  .profile-card { align-items: flex-start; flex-direction: column; }
  .public-profile-lead { align-items: flex-start; flex-direction: column; }
  .public-stat-grid { grid-template-columns: repeat(2,1fr); }
  .public-map, .public-flights { margin-inline: .75rem; }
  .public-flight-list article { grid-template-columns: 36px 1fr; }
  .public-flight-list article > b { grid-column: 2; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-actions .btn { flex: 1; }
  .search-form { width: 100%; }
  .search-form input { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .public-journey-grid { grid-template-columns:1fr; margin-inline:1.25rem; }
  .home-page .hero { grid-template-columns:1fr; padding-inline:max(2rem,5vw); }
  .home-page .hero-copy { max-width:46rem; }
  .home-page .hero-visual { height:560px; min-height:560px; }
}

@media (max-width: 650px) {
  .home-page .hero { padding:3.5rem 1.25rem 4rem; }
  .home-page .hero h1 { font-size:clamp(3rem,15vw,3.75rem); }
  .home-page .hero-visual { height:430px; min-height:430px; }
  .home-page .hero-visual > img { height:100%; }
  .home-page .portal-stats { position:absolute; right:.75rem; bottom:.75rem; left:.75rem; margin:0; padding:1rem; }
  .home-page .portal-stats-title { display:block; }
  .home-page .portal-stats-title span { display:block; margin-top:.2rem; }
  .home-page .portal-stats-grid { grid-template-columns:repeat(2,1fr); }
  .home-page .portal-stats-grid div:nth-child(3) { display:none; }
  .preview-browserbar { padding-inline:1rem; }
  .preview-browserbar span { max-width:70%; text-align:right; font-size:.62rem; }
  .dashboard-preview .preview-main { padding:.75rem; }
  .dashboard-preview .mini-stats { grid-template-columns:repeat(2,1fr); }
  .dashboard-preview .preview-map .globe-stage { height:340px; }
  .wrapped-head { align-items:flex-start; padding:1.25rem; }
  .wrapped-head h3 { font-size:1.5rem; }
  .wrapped-cards,.wrapped-details-preview { grid-template-columns:1fr; padding:1rem; }
  .wrapped-details-preview { padding-top:0; }
  .wrapped-cards article { min-height:190px; }
  .feature-cta { align-items:stretch; flex-direction:column; }
}
