/* RAW LOGIC. REAL SYSTEMS. | Created by Christos Fragoulis */
:root {
  color-scheme: dark;
  --navy: #071d31;
  --navy-deep: #041321;
  --panel: #0d2a42;
  --panel-light: #12344f;
  --line: rgba(151, 199, 221, .22);
  --text: #f1f8fc;
  --muted: #afc6d4;
  --cyan: #46d3df;
  --cyan-light: #9af3ef;
  --error: #ffb6b4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 760px 580px at 89% 9%, rgba(25, 128, 163, .24), transparent 70%),
    radial-gradient(ellipse 520px 430px at 0% 74%, rgba(17, 99, 130, .17), transparent 75%),
    linear-gradient(145deg, #06192c 0%, var(--navy) 53%, var(--navy-deep) 100%);
  color: var(--text);
  font: 16px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 10;
  padding: 12px 18px;
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.page-shell { width: min(100% - 64px, 1280px); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.product-mark { display: inline-flex; align-items: center; min-height: 52px; }
.product-mark img { display: block; width: 164px; max-height: 60px; object-fit: contain; object-position: left center; }
.product-name {
  border-left: 1px solid rgba(154, 243, 239, .28);
  padding-left: 22px;
  color: var(--cyan-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .27em;
}
.topbar-note { margin-left: auto; color: var(--muted); font-size: .87rem; }
main { flex: 1; }
.local-notice {
  margin: 20px 0 -17px;
  min-height: 1px;
  color: var(--cyan-light);
  font-size: .83rem;
  font-weight: 700;
}
.local-notice:empty { display: none; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 490px);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
  padding: clamp(64px, 8vw, 118px) 0 58px;
}
.intro { padding-top: 48px; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--cyan-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
h1 {
  margin: 27px 0 26px;
  max-width: 780px;
  font-size: clamp(3.2rem, 5.4vw, 5.7rem);
  line-height: 1.06;
  letter-spacing: -.062em;
  font-weight: 770;
}
h1 span { color: var(--cyan-light); }
.lead { max-width: 560px; margin: 0; color: #c9dce7; font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.75; }
.intro-rail { display: flex; align-items: center; width: min(100%, 330px); margin-top: 68px; }
.rail-node {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border: 1px solid rgba(154, 243, 239, .45);
  border-radius: 50%;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 800;
}
.rail-node.active { background: var(--cyan); border-color: var(--cyan); color: var(--navy-deep); box-shadow: 0 0 24px rgba(70, 211, 223, .29); }
.rail-line { height: 1px; flex: 1; background: rgba(154, 243, 239, .33); }
.rail-caption { margin: 15px 0 0; color: var(--muted); font-size: .81rem; letter-spacing: .04em; }
.rail-caption span { margin: 0 7px; color: var(--cyan); }
.access-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 3vw, 37px);
  background: linear-gradient(150deg, rgba(21, 59, 84, .97), rgba(9, 37, 58, .97));
  border: 1px solid rgba(142, 210, 227, .29);
  border-radius: 24px;
  box-shadow: 0 28px 65px rgba(0, 9, 20, .29), inset 0 1px rgba(255, 255, 255, .07);
}
.access-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 190px;
  height: 190px;
  transform: translate(30%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 209, 219, .13), transparent 72%);
  pointer-events: none;
}
.card-heading { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.access-card h2 { margin: 10px 0 0; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.17; letter-spacing: -.03em; }
.card-ornament { color: rgba(181, 225, 236, .42); font-size: .69rem; font-weight: 700; white-space: nowrap; letter-spacing: .12em; }
.access-card > p:not(.status) { color: var(--muted); margin: 18px 0 0; font-size: .9rem; line-height: 1.63; }
.status { min-height: 23px; margin: 20px 0 2px; color: var(--cyan-light); font-size: .84rem; }
.status.error { color: var(--error); }
.fatal-error { margin: 18px 0 0; padding: 15px 17px; border: 1px solid rgba(255, 182, 180, .45); border-radius: 11px; background: rgba(125, 35, 39, .23); color: #ffe1e0; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 27px 0 11px; }
.list-heading h3 { margin: 0; font-size: .94rem; }
.refresh-button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--cyan-light); font-size: .82rem; font-weight: 700; cursor: pointer; }
.refresh-button:hover { text-decoration: underline; }
.connection-list { display: grid; gap: 10px; }
.connection-card {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 27, 44, .54);
}
.connection-monogram { display: grid; place-items: center; height: 43px; width: 43px; border-radius: 11px; background: rgba(70, 211, 223, .12); color: var(--cyan-light); font-weight: 800; }
.connection-summary { min-width: 0; }
.connection-summary strong, .connection-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-summary strong { font-size: .87rem; }
.connection-summary small { margin-top: 1px; color: var(--muted); font-size: .73rem; }
.current-account { color: var(--cyan-light); overflow-wrap: anywhere; font-size: .85rem; }
.account-connections { margin-top: 24px; }
.account-connections h3 { font-size: .94rem; }
.account-note { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 8px 0 2px; }
.account-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.account-button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--cyan-light); font: inherit; font-size: .78rem; cursor: pointer; }
.account-button:hover { background: rgba(70, 211, 223, .13); }
.account-button.primary { background: var(--cyan-light); color: #06192c; font-weight: 700; }
.account-button:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 3px; }
.account-button:disabled, .refresh-button:disabled { opacity: .55; cursor: wait; }
.account-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #102e43; color: var(--text); box-shadow: 0 24px 80px #0009; }
.account-dialog::backdrop { background: #00101dcc; }
.account-dialog h2 { margin: 0 0 15px; font-size: 1.35rem; }
.account-dialog p { overflow-wrap: anywhere; line-height: 1.6; }
.account-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.open-link { display: grid; place-items: center; min-height: 44px; padding: 0 13px; border: 1px solid rgba(154, 243, 239, .5); border-radius: 9px; color: var(--cyan-light); font-size: .78rem; font-weight: 700; text-decoration: none; }
.open-link:hover { background: rgba(70, 211, 223, .13); }
.empty-state { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .84rem; }
.divider { display: flex; align-items: center; gap: 13px; margin: 29px 0 19px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.access-card label { display: block; margin: 18px 0 7px; font-size: .85rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
.access-card select, .access-card input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgba(170, 218, 230, .39);
  border-radius: 10px;
  background: rgba(5, 23, 39, .74);
  color: var(--text);
  outline: none;
}
.access-card select:focus, .access-card input:focus { border-color: var(--cyan-light); box-shadow: 0 0 0 3px rgba(70, 211, 223, .15); }
.access-card select:disabled { opacity: .58; }
.access-card option { color: #06192c; background: #f1f8fc; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.google-button { min-height: 44px; margin-top: 22px; }
.fixture-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--cyan-light); }
.mobile-help { max-width: 670px; margin: 3px 0 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mobile-help summary { min-height: 54px; display: flex; align-items: center; cursor: pointer; color: var(--cyan-light); font-weight: 700; }
.mobile-help summary::after { content: "+"; margin-left: auto; font-size: 1.35rem; font-weight: 400; }
.mobile-help[open] summary::after { content: "−"; }
.mobile-help-content { padding: 0 0 15px; color: var(--muted); font-size: .86rem; }
.mobile-help-content p { margin: 10px 0; }
.mobile-help-content strong { color: var(--text); }
.no-script { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.footer { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.creator { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; text-decoration: none; }
.creator img { display: block; object-fit: contain; }
.creator strong, .creator small { display: block; }
.creator strong { color: var(--text); font-size: .69rem; letter-spacing: .04em; }
.creator small { color: var(--muted); font-size: .67rem; }
.creator:hover strong, .creator:hover small { color: var(--cyan-light); }

@media (max-width: 930px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; padding-top: 60px; }
  .intro { padding-top: 0; }
  h1 { max-width: 780px; }
  .intro-rail { margin-top: 34px; }
  .access-card { max-width: 640px; }
}
@media (max-width: 600px) {
  .page-shell { width: min(100% - 32px, 1280px); }
  .topbar { min-height: 82px; gap: 13px; }
  .product-mark img { width: 127px; height: 47px; }
  .product-name { padding-left: 13px; font-size: .6rem; letter-spacing: .18em; }
  .topbar-note { display: none; }
  .intro-grid { padding: 47px 0 29px; gap: 34px; }
  h1 { margin: 19px 0; font-size: clamp(2.8rem, 12vw, 4.3rem); }
  .lead { font-size: .98rem; }
  .intro-rail { margin-top: 30px; }
  .access-card { padding: 24px 19px; border-radius: 18px; }
  .card-ornament { display: none; }
  .connection-card { grid-template-columns: 40px minmax(0, 1fr); }
  .connection-monogram { width: 40px; height: 40px; }
  .open-link { grid-column: 1 / -1; width: 100%; }
  .footer { min-height: 105px; align-items: start; flex-direction: column; justify-content: center; gap: 8px; padding: 15px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; column-gap: 12px; row-gap: 4px; padding: 10px 0; }
  .product-name { letter-spacing: .06em; }
  .one-role-switch { margin-left: 0; }
}

/* Platform flow: permanent role badge (Πελάτης · Επιχείρηση · Διαχειριστής ONE). */
.one-role-badge { display: inline-flex; align-items: center; padding: 3px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; }
.one-role-badge[hidden], .one-role-switch[hidden] { display: none; }
.one-role-switch { margin-left: 10px; font-size: .82rem; font-weight: 600; }

/* Platform flow: the name of the signed-in side next to its role badge. */
.one-role-name { display: inline-block; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; font-weight: 500; }
