/* Apex Moto — βασικό στυλ */
:root {
  --accent: #FF6600; --on-accent: #141414; --accent-text: #FF7A1F;
  --route: #E21B2C;
  --radius: 14px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-mode="dark"] {
  --bg: #0B0B0D; --surface: #17171A; --surface2: #26262B;
  --text: #F3F3F5; --muted: #A3A3AD; --line: #33333A; --danger: #FF6168;
  color-scheme: dark;
}
:root[data-mode="light"] {
  --bg: #EEEEF1; --surface: #FFFFFF; --surface2: #E4E4E9;
  --text: #141416; --muted: #5A5A64; --line: #D3D3DA; --danger: #B81A25;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); }
/* Οι φωτογραφίες δεν αποθηκεύονται με παρατεταμένο πάτημα (iPhone/Android) ούτε σέρνονται */
img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* Λογότυπο */
/* Λογότυπο Apex Moto */
.logo-img { display: block; width: min(300px, 78vw); height: auto; margin: 0 auto; border-radius: 18px; }
.logo-word { display: block; height: 24px; width: auto; }
:root[data-mode="light"] .logo-word { filter: brightness(0); }
.logo { font-family: "Roboto Condensed", Inter, sans-serif; font-style: italic; font-weight: 800; letter-spacing: -0.5px; line-height: 1; margin: 0; }
.logo .moto { color: var(--accent-text); }
.logo.big { font-size: 52px; }
.logo.small { font-size: 28px; }

/* Πάνω μπάρα */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 18px; background: var(--bg); }
.topbar h1 { font-size: 17px; margin: 0; }

/* Κάτω μπάρα */
.bottomnav { position: sticky; bottom: 0; margin-top: auto; display: flex; justify-content: space-around; align-items: center; height: 72px; padding: 0 8px env(safe-area-inset-bottom) 8px; background: var(--surface); border-top: 1px solid var(--line); }
.bottomnav a { width: 60px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 10px; font-weight: 600; }
.bottomnav a.active { color: var(--accent-text); }
.bottomnav a.plus { width: 54px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.bottomnav svg { width: 24px; height: 24px; }

main { flex: 1; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Κάρτες */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { font-size: 17px; margin: 0; }
.card p { margin: 0; line-height: 1.5; color: var(--muted); font-size: 14px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }

/* Φόρμες */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.field input, .field select { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

.btn { height: 50px; border-radius: 14px; border: none; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 18px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.secondary { background: var(--surface2); color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent-text); height: 44px; font-size: 14px; font-weight: 600; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.msg.error { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--text); border: 1px solid var(--danger); }
.msg.ok { background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid var(--accent); }

/* Οθόνη σύνδεσης */
.auth { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px 20px; }
.auth .hero { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.auth .hero p { margin: 0; color: var(--muted); }
.route-art { width: 160px; height: 70px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface2); border-radius: 12px; padding: 4px; }
.tabs button { height: 40px; border: none; border-radius: 9px; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); }
form { display: flex; flex-direction: column; gap: 14px; }

/* Προφίλ */
.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); flex-shrink: 0; }
.profile-head h2 { margin: 0; font-size: 20px; }
.profile-head .handle { color: var(--muted); font-size: 14px; }
.profile-top { position: relative; display: flex; flex-direction: column; gap: 14px; }
.profile-top.has-cover { margin: -8px -16px 0; padding: 130px 16px 0; }
.cover { position: absolute; left: 0; right: 0; top: 0; height: 230px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; opacity: .6; display: block; }
.cover-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg) 100%); }
.profile-top > .profile-head, .profile-top > .row { position: relative; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn.small { height: 44px; font-size: 14px; font-weight: 600; padding: 0 10px; }
.bike { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bike:first-of-type { border-top: none; }
.bike-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--surface2); }
.bike-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.bike-thumb.empty svg { width: 24px; height: 24px; }
.bike-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bike-info strong { font-size: 15px; }
.bike-info span { color: var(--muted); font-size: 13px; }
.bike-actions { display: flex; flex-direction: column; align-items: flex-end; }
.bike-actions .btn { height: 36px; padding: 0 6px; }

.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.swatch { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font-size: 14px; font-weight: 600; }
.swatch .dot { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.swatch[aria-pressed="true"] { border: 2px solid var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 4px; font-size: 15px; font-weight: 600; }
.toggle input { width: 48px; height: 28px; accent-color: var(--accent); }

.soon { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.soon h2 { margin: 0; }
.soon p { margin: 0; color: var(--muted); line-height: 1.5; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.steps .done { color: var(--text); }
.center { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Feed */
.feed, .stack { display: flex; flex-direction: column; gap: 12px; }
.center-text { text-align: center; }
.link-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; border: none; box-shadow: none; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 14px; }
.post-head a { text-decoration: none; }
.post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.name { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.time { color: var(--muted); font-size: 12px; }
.post-photo { width: 100%; max-height: 560px; object-fit: cover; display: block; background: var(--surface2); }
.post-body { margin: 0; padding: 12px 14px 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 4px; padding: 4px 6px; }
.act { height: 44px; min-width: 44px; padding: 0 10px; border: none; background: transparent; color: var(--text); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.act svg { width: 22px; height: 22px; }
.act.on { color: var(--accent-text); }
.act.on svg { fill: currentColor; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; flex-shrink: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.comments { border-top: 1px solid var(--line); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.comments[hidden], .preview[hidden] { display: none; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { flex-direction: row; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; }
.field textarea { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1.45; resize: vertical; }
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.preview { display: flex; flex-direction: column; gap: 6px; }
.preview img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; position: relative; }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stats strong { font-size: 18px; }
.stats span { font-size: 12px; color: var(--muted); }
.profile-top > .btn, .profile-top > .stats { position: relative; }

/* Βόλτες */
.badge { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--on-accent); background: var(--accent); border-radius: 6px; padding: 4px 8px; margin-right: 6px; }
.post.ride .post-head { padding-right: 8px; }
.ride-body { display: flex; flex-direction: column; gap: 14px; padding: 2px 14px 14px; }
.ride-top { display: flex; gap: 14px; align-items: flex-start; }
.date-tile { width: 58px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.date-tile .wd { width: 100%; text-align: center; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; padding: 3px 0; }
.date-tile .dn { font-size: 24px; font-weight: 700; padding-top: 4px; line-height: 1.1; }
.date-tile .mo { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.ride-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.ride-title h2 { margin: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.ride-title p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 3px 9px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; border: 3px solid var(--accent); background: var(--surface); flex-shrink: 0; position: relative; }
.timeline .start .dot { background: var(--accent); }
.timeline .end .dot { border-color: var(--route); background: var(--route); }
.timeline .stop { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.timeline .stop strong { font-size: 14px; overflow-wrap: anywhere; }
.timeline .stop .label { font-size: 11px; }
.stop-time { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 14px; }
.going { display: flex; align-items: center; gap: 10px; }
.faces { display: flex; }
.faces .avatar.sm { width: 30px; height: 30px; font-size: 11px; border: 2px solid var(--surface); margin-left: -9px; }
.faces .avatar.sm:first-child { margin-left: 0; }
.btn.outline { background: transparent; color: var(--accent-text); border: 2px solid var(--accent); }
.expiry { display: flex; align-items: center; gap: 6px; }
.expiry svg { width: 14px; height: 14px; flex-shrink: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head a { font-size: 13px; font-weight: 600; text-decoration: none; }
.timeline.edit .stop-row { display: flex; gap: 6px; align-items: center; }
.timeline.edit input[type="text"] { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.timeline.edit input[type="time"] { width: 104px; height: 44px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 700; }
.timeline.edit .dot { margin-top: 30px; background: var(--bg); }
.timeline.edit .start .dot { background: var(--accent); }
.timeline.edit .end .dot { background: var(--route); }
.timeline.edit li:not(:last-child)::before { top: 46px; }
.add-time { border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 0 10px; }
.add-time svg { width: 15px; height: 15px; }
.btn.dashed { border: 1.5px dashed var(--accent-text); border-radius: 10px; }
.btn.dashed[hidden] { display: none; }
.choice3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.choice { min-height: 60px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 6px 4px; }
.choice strong { font-size: 14px; }
.choice span { font-size: 11px; color: var(--muted); text-align: center; }
.choice[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice[aria-checked="true"] span { color: var(--on-accent); }
.choice-list { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.choice-row { min-height: 54px; padding: 8px 14px; border: none; border-top: 1px solid var(--line); background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.choice-row:first-child { border-top: none; }
.choice-row > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.choice-row strong { font-size: 14px; }
.choice-row span span { font-size: 12px; color: var(--muted); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); flex-shrink: 0; position: relative; }
.choice-row[aria-checked="true"] .radio { border-color: var(--accent); }
.choice-row[aria-checked="true"] .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }

/* Χάρτης και διαδρομές */
.tabs.three { grid-template-columns: 1fr 1fr 1fr; }
.map-wrap { margin: 0 -16px; }
.map { width: 100%; height: 56vh; min-height: 340px; background: var(--surface2); }
.map.draw { height: 50vh; cursor: crosshair; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.chipbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-btn.light { color: #fff; background: rgba(0,0,0,.45); border-radius: 50%; }

/* ----- Θέματα ----- */
/* Βασικά θέματα: έντονα περιγράμματα (λευκά στο σκούρο, μαύρα στο ανοιχτό) */
:root[data-outline][data-mode="dark"] { --line: rgba(255, 255, 255, .78); }
:root[data-outline][data-mode="light"] { --line: #141416; --bg: #F4F4F6; }
:root[data-outline] .card, :root[data-outline] .post, :root[data-outline] .route-item, :root[data-outline] .swatch, :root[data-outline] .chipbtn,
:root[data-outline] .choice, :root[data-outline] .field input, :root[data-outline] .field select, :root[data-outline] .field textarea { border-width: 1.5px; }
:root[data-outline] .bike, :root[data-outline] .comments, :root[data-outline] .choice-row { border-top-color: color-mix(in srgb, var(--line) 30%, transparent); }
:root[data-outline] .timeline li:not(:last-child)::before { background: color-mix(in srgb, var(--line) 40%, transparent); }
:root[data-outline] .tabs { border: 1.5px solid var(--line); background: transparent; }
:root[data-outline] .tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
:root[data-outline] .btn.secondary { background: transparent; border: 1.5px solid var(--line); }
:root[data-outline] .avatar { box-shadow: 0 0 0 2px var(--line); }

/* Χρωματιστά θέματα: εικόνα πίσω από όλη την εφαρμογή και ημιδιάφανες επιφάνειες */
:root[data-art] { --surface: rgba(18, 18, 21, .62); --surface2: rgba(60, 60, 68, .6); --line: rgba(255, 255, 255, .16); --muted: #C4C4CC; }
:root[data-art] body { background: transparent; }
:root[data-art] body::before { content: ""; position: fixed; inset: 0; z-index: -2; background-image: var(--art); background-size: cover; background-position: center; }
/* Σε φαρδιές οθόνες (υπολογιστής) δείξε το πάνω μέρος, εκεί που είναι το όνομα της μάρκας. */
@media (min-aspect-ratio: 1/1) { :root[data-art] body::before { background-position: center 22%; } }
:root[data-art] body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 13, .38) 0%, rgba(11, 11, 13, .55) 45%, rgba(11, 11, 13, .76) 100%); }
:root[data-art] .topbar { background: rgba(11, 11, 13, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root[data-art] .card, :root[data-art] .post, :root[data-art] .bottomnav, :root[data-art] .tabs, :root[data-art] .route-item, :root[data-art] .choice-list { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:root[data-art] .bottomnav { background: rgba(14, 14, 17, .72); }
:root[data-art] .cover-fade { background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 13, .35) 60%, rgba(11, 11, 13, .6) 100%); }
:root[data-art] .cover { border-radius: 0 0 18px 18px; }
:root[data-art] .tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
:root[data-art] .field input, :root[data-art] .field select, :root[data-art] .field textarea, :root[data-art] .comment-form input { background: rgba(11, 11, 13, .55); }
:root[data-art] .label, :root[data-art] .hint { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

.swatch .dot.pic { width: 34px; height: 34px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid; }
.swatch.art { height: 60px; }
.bio { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.btn.back { align-self: flex-start; padding: 0 4px; }

/* ----- Φάση 7: αναζήτηση, λίστες ατόμων, stories ----- */
.top-actions { display: flex; align-items: center; gap: 2px; margin: -8px -8px -8px 0; }
.top-icon { color: var(--text); position: relative; text-decoration: none; }
.top-icon svg { width: 22px; height: 22px; }
.top-icon.active { color: var(--accent-text); }
.bell-badge { position: absolute; top: 3px; left: 25px; min-width: 14px; height: 15px; padding: 0 4px; border-radius: 9px; background: var(--route); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.bell-badge[hidden] { display: none; }

.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 80vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-bottom: none; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
:root[data-art] .sheet { background: rgba(18, 18, 21, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 6px 18px; }
.sheet-head h2 { margin: 0; font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px; }

.user-list { display: flex; flex-direction: column; }
.user-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); text-decoration: none; color: var(--text); }
.user-row:first-child { border-top: none; }
.user-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.user-row-text strong { font-size: 15px; overflow-wrap: anywhere; }
.user-row-text span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.search-field { flex-direction: row; align-items: center; position: relative; }
.search-field svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input { flex: 1; padding-left: 44px; }

.like-group { display: flex; align-items: center; }
.like-group .act:first-child { padding-right: 4px; }
.act.count { padding-left: 4px; min-width: 32px; }

.going-btn { display: flex; align-items: center; gap: 10px; border: none; background: transparent; padding: 4px 0; cursor: pointer; text-align: left; }
.going-btn > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.going-btn strong { font-size: 13px; color: var(--accent-text); }
.going-count { display: flex; color: var(--muted); }
.going-count svg { width: 20px; height: 20px; }

.hint.block { display: block; font-weight: 400; }
label.toggle { gap: 12px; height: auto; min-height: 52px; }
label.toggle > span { display: flex; flex-direction: column; gap: 2px; }

/* Stories */
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; flex-shrink: 0; }
.story-ring { position: relative; width: 68px; height: 68px; border-radius: 50%; border: none; padding: 3px; cursor: pointer; background: var(--line); display: flex; align-items: center; justify-content: center; }
.story-ring.unseen { background: conic-gradient(from 200deg, var(--accent), var(--route), var(--accent)); }
.story-ring.none { background: transparent; border: 2px dashed var(--line); }
.story-ring .avatar.sm { width: 100%; height: 100%; border: 3px solid var(--bg); font-size: 18px; }
:root[data-art] .story-ring .avatar.sm { border-color: rgba(11, 11, 13, .9); }
.story-add { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.story-add svg { width: 14px; height: 14px; }
.story-name { font-size: 11px; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.story { position: fixed; inset: 0; z-index: 55; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; }
.story-img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.story-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 10px 30px; background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent); z-index: 2; max-width: 560px; margin: 0 auto; }
.story-bars { display: flex; gap: 4px; }
.story-bars .bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.story-bars .fill { display: block; height: 100%; width: 0; background: #fff; }
.story-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.story-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.story-user { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-width: 0; }
.story-user .avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.story-user strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-time { font-size: 12px; opacity: .8; white-space: nowrap; }
.story-actions { display: flex; }
.story-nav { position: absolute; top: 90px; bottom: 90px; border: none; background: transparent; cursor: pointer; z-index: 1; }
.story-nav.prev { left: 0; width: 33%; }
.story-nav.next { right: 0; width: 67%; }
.story-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); font-size: 16px; line-height: 1.45; text-align: center; overflow-wrap: anywhere; z-index: 2; pointer-events: none; }
.story-caption[hidden] { display: none; }
.story-preview img { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 14px; background: #000; display: block; }
.story-form input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }

/* ----- Φάση 8: θέματα μαρκών, γκαράζ, προβολές στα stories ----- */
.swatch-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.swatch-colors { display: flex; height: 5px; width: 54px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.swatch-colors i { flex: 1; }
.field select:disabled { opacity: .55; }
.field select[hidden], .field input[hidden] { display: none; }
.field select + input { margin-top: 8px; }
.story-views { position: absolute; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: none; background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.story-views svg { width: 20px; height: 20px; }
.story-views[hidden] { display: none; }
.story-caption { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.swatch-text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ----- Φάση 9: ιδιωτικό προφίλ, ειδοποιήσεις, σχόλια σε βόλτες/διαδρομές ----- */
.label svg { width: 13px; height: 13px; vertical-align: -2px; }
.lock-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; vertical-align: 1px; }
.lock-chip svg { width: 12px; height: 12px; }
.lock-card { align-items: center; text-align: center; padding: 26px 18px; }
.lock-icon { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text); }
.lock-icon svg { width: 24px; height: 24px; }

.avatar-slot { flex-shrink: 0; }
.profile-story { border: none; padding: 3px; border-radius: 50%; cursor: pointer; display: block; background: var(--line); }
.profile-story.unseen { background: conic-gradient(from 200deg, var(--accent), var(--route), var(--accent)); }
.profile-story .avatar { box-shadow: none; border: 3px solid var(--bg); }

.act-label { font-weight: 500; color: var(--muted); font-size: 13px; }
.post.ride .post-actions { border-top: 1px solid var(--line); }
:root[data-outline] .post.ride .post-actions { border-top-color: color-mix(in srgb, var(--line) 30%, transparent); }

.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.notif.unread { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.notif > a { text-decoration: none; }
.notif-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; display: block; }
.notif-text .notif-quote { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.notif-text .time { display: block; margin-top: 2px; }
.notif-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.notif-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.notif-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
:root[data-art] .notif { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ----- Φάση 10: ενιαίο feed, λίστες ακολούθων ----- */
.stat-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; border: none; background: transparent; color: var(--text); cursor: pointer; padding: 0; font: inherit; }
.stat-btn strong { font-size: 18px; }
.stat-btn span { font-size: 12px; color: var(--muted); }
.user-row-wrap { display: flex; align-items: center; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.user-row-wrap:first-child { border-top: none; }
.user-row-wrap .user-row { flex: 1; min-width: 0; border-top: none; }
.user-row-wrap .btn { height: 36px; padding: 0 12px; font-size: 13px; flex-shrink: 0; }
.route-sketch-btn { display: block; width: 100%; border: none; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--surface2) 70%, #2a3a2a); }
.route-sketch { display: block; width: 100%; height: auto; max-height: 220px; }
.route-title { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.post-body.flush { padding: 0; }
.post.route-post .post-actions { border-top: 1px solid var(--line); }
:root[data-outline] .post.route-post .post-actions { border-top-color: color-mix(in srgb, var(--line) 30%, transparent); }
.post.route-post .ride-body { padding-top: 12px; gap: 10px; }

/* Λίστα διαδρομών (χωρίς χάρτη) */
.route-items { display: flex; flex-direction: column; gap: 10px; }
.route-item { display: flex; gap: 12px; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; }
.route-item:active { transform: scale(.99); }
.route-thumb { flex: 0 0 112px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; background: color-mix(in srgb, var(--surface2) 70%, #2a3a2a); }
.route-thumb .route-sketch { max-height: none; }
.route-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.route-name { font-size: 15px; overflow-wrap: anywhere; }
.route-by { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags.small { gap: 4px; }
.tags.small .chip { font-size: 11px; padding: 2px 7px; }
.route-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: auto; }
.route-count svg { width: 14px; height: 14px; }
/* Σελίδα μίας διαδρομής */
.back-link { display: inline-block; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.route-sketch-box { background: color-mix(in srgb, var(--surface2) 70%, #2a3a2a); }
.open-in { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.open-in .row .btn { flex: 1; }
.open-in .hint { margin: 0; }

/* Story: σταθερό κάθετο πλαίσιο 9:16 σε κάθε οθόνη. Οι οριζόντιες φωτογραφίες χωράνε μέσα (με μαύρο πάνω/κάτω). */
.story { background: rgba(0, 0, 0, .92); }
.story-frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); background: #000; overflow: hidden; }
@media (min-width: 600px) { .story-frame { height: min(calc(100dvh - 40px), calc(100vw * 16 / 9)); width: min(100vw, calc((100dvh - 40px) * 9 / 16)); border-radius: 14px; } }
.story-frame .story-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.story-frame .story-top { max-width: none; }

/* Διακόπτης στις ρυθμίσεις */
.switch-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch-row .hint { margin: 0; }
