/* FM Saves — ένα απλό stylesheet, χωρίς build. */
:root {
  --bg: #f5f6f8; --fg: #1a1d23; --muted: #5d6877; --card: #ffffff; --line: #dde2e8;
  --accent-fg: #ffffff; --ok: #1f8a4c; --err: #c0392b; --code: #eef0f4;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e7eaee; --muted: #9aa6b2; --ok: #4cc38a; --err: #ff6b5b; --code: #1f232c; }
}
/* Παλέτες του site (data-palette στο <html>). Τα χρώματα των ομάδων στις κάρτες είναι ξεχωριστά.
   --brand = κύριο χρώμα (κουμπιά, μπάρα) · --accent = links/εικονίδια (διαβάσιμο στο θέμα) · --logo1/2 = σήμα */
:root[data-palette="a"] {   /* Matchday: navy + κόκκινο */
  --brand: #e8174a; --brand-fg: #ffffff; --brand-soft: #ff4d73; --accent: #d6123f;
  --bar1: #172a45; --bar2: #0f1c30; --rule: #e8174a; --logo1: #ff4d73; --logo2: #c3103b; --glow: rgba(232, 23, 74, .45);
}
:root[data-palette="d"] {   /* Night match: σκούρο navy + κυανό, χρυσή γραμμή */
  --brand: #00c2d1; --brand-fg: #071016; --brand-soft: #3fe0ec; --accent: #0b7f8c;
  --bar1: #10233a; --bar2: #0b1626; --rule: linear-gradient(90deg, #00c2d1, #f0c445); --logo1: #22d3e0; --logo2: #0b8a99; --glow: rgba(0, 194, 209, .4);
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="a"] { --bg: #0e1420; --card: #152033; --line: #22324a; --accent: #ff5a7e; --accent-fg: #ffffff; }
  :root[data-palette="d"] { --bg: #0d1117; --card: #141b24; --line: #243041; --accent: #3fe0ec; --accent-fg: #071016; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
/* Μπάρα: πάντα σκούρα (και στο ανοιχτό θέμα), ρίγες γρασιδιού, γραμμή μωβ → χρυσό */
header.top { position: relative; color: #e7eaee;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 72px, transparent 72px 144px), linear-gradient(180deg, var(--bar1), var(--bar2)); }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--rule); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 17px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 3px 10px var(--glow)); }
.wordmark { display: block; color: #fff; line-height: 0; }
.wordmark svg { height: 22px; width: auto; }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 0; background: none;
            color: #c9d1da; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.active { background: color-mix(in srgb, var(--brand) 18%, transparent); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.nav-link .ico { width: 18px; height: 18px; }
.mini-avatar { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
               background: var(--brand); color: var(--brand-fg); }
.nav-cta { margin-left: 6px; padding: 8px 16px; border-radius: 99px; background: var(--brand); color: var(--brand-fg); font-weight: 700;
           font-size: 14px; text-decoration: none; box-shadow: 0 4px 14px var(--glow); }
.nav-cta:hover { background: var(--brand-soft); }
@media (max-width: 600px) { .nav-label { display: none; } .wordmark svg { height: 18px; } }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.narrow { max-width: 420px; margin: 0 auto; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit;
}
button, .btn { display: inline-block; background: var(--brand); color: var(--brand-fg); border: 0; border-radius: 8px;
  padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; }
button.danger { background: none; color: var(--err); border: 1px solid var(--err); padding: 5px 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.errors { color: var(--err); margin: 8px 0; padding-left: 18px; }
.flash { border-left: 4px solid var(--ok); padding: 10px 12px; background: var(--card); margin-bottom: 18px; }
code, .token { font-family: ui-monospace, Consolas, monospace; background: var(--code); padding: 2px 6px; border-radius: 6px; }
.token { display: block; padding: 10px; word-break: break-all; margin: 8px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 600; }
/* Λωρίδα με τα χρώματα της ομάδας (από το save): φόντο = κύριο, κείμενο = χρώμα κειμένου, γραμμή = δευτερεύον */
.band { margin: -18px -18px 12px; padding: 12px 18px; border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--line); }
.band.colored { background: var(--c1); color: var(--ct); border-bottom: 5px solid var(--c2); }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.trophies { margin: 8px 0 0; padding-left: 18px; }
.tablewrap { overflow-x: auto; }
h2 { font-size: 16px; margin: 0 0 12px; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- Σελίδα καριέρας (και κοινά: πλακίδια, chips, εικονίδια) ---------- */
/* --club: χρώμα της ομάδας που διαβάζεται στο τρέχον θέμα (ClubColors::accentStyle) */
:root { --tile: var(--card); --gold: #b8860b; --teal: #0e8a8a; --silver: #6b7785; --bronze: #a0602d; }
.career, .clubbed { --club: var(--club-l, var(--accent)); }
@media (prefers-color-scheme: dark) {
  :root { --gold: #f0c445; --teal: #3cc6c6; --silver: #b8c2cc; --bronze: #d99258; }
  .career, .clubbed { --club: var(--club-d, var(--accent)); }
}
.crumbs { margin: 0 0 10px; font-size: 14px; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ico.big { width: 34px; height: 34px; }

.hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px;
        border-radius: 14px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.hero.colored { background: linear-gradient(120deg, var(--c1) 60%, color-mix(in srgb, var(--c1) 90%, #000) 100%);
                color: var(--ct); border: 0; border-bottom: 6px solid var(--c2); }
.hero h1 { margin: 2px 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.hero .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.hero .hero-sub { opacity: .85; font-size: 14px; }
.hero-count { text-align: center; line-height: 1; min-width: 84px; }
.hero-count b { display: block; font-size: 40px; font-weight: 800; margin-top: 4px; }
.hero-count span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
        background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.chip .ico { color: var(--club); width: 16px; height: 16px; }

h2.section { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
@media (min-width: 560px) { .tile.wide { grid-column: span 2; } }
.tile-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; text-transform: uppercase;
             letter-spacing: .05em; color: var(--muted); }
.tile-head .ico { color: var(--club); }
.tile .v { font-size: 30px; font-weight: 800; line-height: 1.15; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 6px 0 2px; }
.tile .v.small-v { font-size: 20px; }
.tile .v.nowrap-v { font-size: 24px; white-space: nowrap; }
.tiles.cabinet, .tiles.tenures { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile .v.name { font-size: 18px; }
.tile .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.wdl { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 10px 0 2px; background: var(--line); }
.wdl .w { background: var(--ok); } .wdl .d { background: var(--silver); } .wdl .l { background: var(--err); }
.strip { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: 10px; padding: 10px 16px;
         border-radius: 12px; border: 1px dashed var(--line); font-size: 14px; }

.kind-league { --kind: var(--club); } .kind-continental { --kind: var(--gold); } .kind-international { --kind: var(--teal); }
.kind-cup { --kind: var(--silver); } .kind-super { --kind: var(--bronze); }
.tile.trophy { display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--kind); }
.trophy-ico { width: 38px; height: 38px; color: var(--kind); }
.tile.trophy .v { margin-top: 0; font-size: 26px; }
.tile.trophy .name { font-weight: 600; font-size: 14px; line-height: 1.3; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 76px 170px 1fr; gap: 6px 12px; align-items: start; line-height: 26px;
               position: relative; padding: 9px 0 9px 14px; border-bottom: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 16px; width: 12px; height: 12px; border-radius: 50%;
                       background: var(--bg); border: 2px solid var(--line); }
.timeline li.won::before { background: var(--club); border-color: var(--club); }
.timeline .season { font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline .club-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline li.quiet .season, .timeline li.quiet .club-name { color: var(--muted); font-weight: 600; }
.wins { display: flex; flex-wrap: wrap; gap: 6px; }
.win { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 99px; font-size: 13px;
       background: color-mix(in srgb, var(--kind) 14%, transparent); border: 1px solid color-mix(in srgb, var(--kind) 45%, transparent); }
.win .ico { color: var(--kind); width: 15px; height: 15px; }
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 70px 1fr; }
  .timeline .wins { grid-column: 1 / -1; }
  .hero h1 { font-size: 26px; }
}

/* ---------- Κάρτες save (προφίλ + dashboard) ---------- */
.saves { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.save { display: flex; flex-direction: column; margin-bottom: 0; border-radius: 14px; overflow: hidden; }
.save .band { display: block; position: relative; padding: 14px 18px 12px; color: var(--fg); text-decoration: none; }
.save .band.colored { color: var(--ct); }
.save .band:hover .club { text-decoration: underline; }
.save .band .club { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; padding-right: 76px; }
.band-eyebrow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.band .tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
             text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px;
             background: color-mix(in srgb, currentColor 16%, transparent); }
.band .tag .ico { width: 13px; height: 13px; }
.save-sub { font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.save-sub .ico { width: 15px; height: 15px; color: var(--club); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0 4px; }
.mini span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mini b { color: var(--fg); font-size: 15px; font-variant-numeric: tabular-nums; }
.mini .ico { color: var(--club); }
.save .wins { margin-top: 12px; }
.win.more { --kind: var(--muted); color: var(--muted); }
.save-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
             margin-top: auto; padding-top: 14px; }
.save-foot .ico { width: 15px; height: 15px; }
.save.featured { border-color: var(--club); box-shadow: 0 0 0 1px var(--club); }
@media (min-width: 640px) { .save.featured { grid-column: span 2; } .save.featured .mini { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 28px; } }

/* ---------- Κεφαλίδα χρήστη ---------- */
.user-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.user-hero h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.user-hero .status { margin-left: auto; }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; font-weight: 800;
          background: var(--club); color: var(--bg); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; border: 1px solid var(--line); }
.status.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.tiles.totals { margin-bottom: 8px; }
.tile .v small { text-transform: none; }
.tile.visibility.on .tile-head .ico { color: var(--ok); }
.tile.visibility form { margin-top: 4px; }
.card.empty { text-align: center; padding: 34px 18px; }
.card.empty .ico { color: var(--muted); }
.card.notice { border-color: var(--ok); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 28px; align-items: start; }
h2.section.first { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.badge-preview { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.devices { list-style: none; margin: 14px 0 0; padding: 0; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.devices li > div { flex: 1; min-width: 0; }
.devices li > .ico { color: var(--muted); width: 22px; height: 22px; }
button .ico { width: 15px; height: 15px; vertical-align: -2px; }

/* Σύνδεση του app (device flow) */
.connect h1 { font-size: 22px; display: flex; align-items: center; gap: 8px; margin-top: 0; }
.user-code { font-family: ui-monospace, Consolas, monospace; font-size: 30px; font-weight: 700; letter-spacing: 3px;
  text-align: center; background: var(--code); border-radius: 10px; padding: 14px; margin: 6px 0 14px; }

/* Αρχική σελίδα και /download */
.btn.big { padding: 12px 20px; font-size: 16px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px var(--glow); }
.btn.big .ico { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.landing-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 18px 0 30px; }
.landing-hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0 14px; }
.landing-hero .hl { color: var(--brand); }
.landing-hero .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.landing-hero .lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.cta-row { gap: 12px; margin-bottom: 10px; }
.lh-visual { position: relative; min-height: 230px; }
.mock-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.18); transform: rotate(-2deg); }
.mock-band { background: linear-gradient(120deg, #1d1d1d, #3a3a3a); color: #fff; padding: 14px 16px 12px; border-bottom: 3px solid var(--brand); }
.mock-band span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.mock-band b { font-size: 22px; }
.mock-body { padding: 14px 16px 18px; }
.mock-stats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.mock-stats span { display: inline-flex; align-items: center; gap: 6px; }
.mock-stats b { color: var(--fg); }
.mock-stats .ico { width: 16px; height: 16px; color: var(--brand); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mock-chips i { font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--code); }
.mock-badge { position: absolute; right: -6px; bottom: -14px; display: flex; gap: 10px; align-items: center; padding: 10px 14px;
  border-radius: 12px; color: #fff; background: linear-gradient(180deg, var(--bar1), var(--bar2)); box-shadow: 0 12px 28px rgba(0,0,0,.3);
  border-bottom: 3px solid var(--brand); transform: rotate(2deg); }
.mock-badge svg { width: 34px; height: 34px; }
.mock-badge b { display: block; font-size: 15px; }
.mock-badge span { font-size: 12px; opacity: .8; }
h2.lp-section { margin: 30px 0 14px; font-size: 20px; }
.steps, .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.step, .feature { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step h3, .feature h3 { margin: 10px 0 4px; font-size: 16px; }
.step p, .feature p { margin: 0; font-size: 14px; }
.step > .ico, .feature > .ico { width: 26px; height: 26px; color: var(--brand); }
.step .n { position: absolute; top: 14px; right: 16px; font-size: 28px; font-weight: 800; color: var(--line); }
.privacy-card { margin-top: 26px; }
.privacy-card h2 { display: flex; align-items: center; gap: 8px; }
.privacy-card h2 .ico { width: 20px; height: 20px; color: var(--ok); }
.privacy-card ul { padding-left: 18px; margin: 0 0 10px; }
.final-cta { text-align: center; padding: 26px 0 6px; }
.final-cta h2 { font-size: 24px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.dl h2 { display: flex; align-items: center; gap: 8px; }
.dl h2 .ico { width: 22px; height: 22px; color: var(--brand); }
.dl ol { padding-left: 18px; margin: 16px 0 0; }
.small { font-size: 13px; }
@media (max-width: 760px) {
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 34px; }
  .lh-visual { margin: 6px 8px 20px; }
}
