/* ==========================================================================
   Galaxy login pages                                        (CAD 09-Oct-2026)

   One look for every page from Sign In up to the Navigator:
     index.php (Sign In), main.php + mainheader.php + navmenu.php (frame of the pages
     after Sign In), changepwd.php, subscrlist.php, companylist.php, thought-birthday.php.
   UI only - the pages keep their PHP, forms, fields, ids, names and scripts.
   Colours come from the theme chosen with the theme button (jsr/gx-login.js), using the
   Navigator's themes; the values below are the default "Sky Blue" (faint light blue).
   Loaded only by the login pages, after Bootstrap and css/nscpl-galaxy.css.
   ========================================================================== */

:root {
  --gl-ink: #0b1d2a;        /* text */
  --gl-deep: #0369a1;       /* dark: headers, strong text */
  --gl-main: #0284c7;       /* main: buttons, focus, links */
  --gl-muted: #8fb0c4;      /* muted: icons, borders */
  --gl-accent: #3aa9e0;     /* highlight */
  --gl-tint: #d6effc;       /* hover / selected */
  --gl-soft: #e0eaf0;       /* soft lines and fills */
  --gl-page: #f0f9ff;       /* page background */
  --gl-surface: #f9fdff;    /* fields and panels */
  --gl-line: #c8d9e3;       /* field borders */
  --gl-ink-rgb: 11, 29, 42;
  --gl-deep-rgb: 3, 105, 161;
  --gl-main-rgb: 2, 132, 199;
  --gl-accent-rgb: 58, 169, 224;
  --gl-danger: #c62f3b;
  --gl-ok: #12805c;
  --gl-radius: 14px;
  --gl-font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- page */

.gl-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--gl-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gl-ink);
  background: var(--gl-page);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.gl-page *, .gl-page *::before, .gl-page *::after { box-sizing: border-box; }

/* Soft light in the theme's colours behind every page, with a faint dot grid */
.gl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vmax 58vmax at 100% -5%, rgba(var(--gl-main-rgb), .16), transparent 62%),
    radial-gradient(48vmax 48vmax at -8% 105%, rgba(var(--gl-accent-rgb), .14), transparent 60%),
    linear-gradient(180deg, var(--gl-surface) 0%, var(--gl-page) 100%);
}
.gl-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--gl-deep-rgb), .08) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

/* ---------------------------------------------------------------- Galaxy logo
   The round logo (infinity with arrows) sits on a white disc inside a ring in the
   theme's own colours, with a slow orbit light - part of every theme, on every page. */

.gl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: inherit;
  text-decoration: none;
}
.gl-logo {
  --gl-logo-size: 56px;
  --gl-ring: 4px;
  position: relative;
  isolation: isolate;
  flex: none;
  display: block;
  width: var(--gl-logo-size);
  height: var(--gl-logo-size);
  padding: var(--gl-ring);
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gl-main), var(--gl-accent), var(--gl-deep), var(--gl-main));
  box-shadow:
    0 0 0 6px rgba(var(--gl-main-rgb), .10),
    0 14px 30px -14px rgba(var(--gl-deep-rgb), .65);
}
.gl-logo::before {               /* white disc: the logo never mixes with the page colour */
  content: "";
  position: absolute;
  inset: var(--gl-ring);
  border-radius: 50%;
  background: #fff;
  z-index: -1;
}
.gl-logo::after {                /* orbit light, like the arrows of the logo */
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(var(--gl-accent-rgb), .55) 84%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: gl-spin 7s linear infinite;
  z-index: -2;
}
.gl-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: 50%;
  object-fit: contain;
}
.gl-logo--sm { --gl-logo-size: 44px; --gl-ring: 3px; }
.gl-logo--lg { --gl-logo-size: 96px; --gl-ring: 5px; }

/* ---------------------------------------------------------------- theme button and panel */

.gl-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--gl-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gl-deep);
  font-family: var(--gl-font);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px -14px rgba(var(--gl-deep-rgb), .6);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.gl-theme-btn:hover { border-color: var(--gl-main); box-shadow: 0 10px 26px -14px rgba(var(--gl-deep-rgb), .75); }
.gl-theme-btn:active { transform: translateY(1px); }
.gl-theme-btn:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .4); outline-offset: 2px; }
.gl-theme-btn[aria-expanded="true"] { border-color: var(--gl-main); }
.gl-ico { width: 18px; height: 18px; flex: none; }
.gl-theme-dots { display: inline-flex; }
.gl-theme-dots i {
  width: 11px;
  height: 11px;
  margin-left: -4px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(var(--gl-ink-rgb), .1);
}
.gl-theme-dots i:first-child { margin-left: 0; }
.gl-theme-float {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 1000;
}

.gl-theme-panel {
  position: fixed;
  z-index: 100002;
  top: 64px;
  right: 14px;
  width: min(440px, calc(100vw - 28px));
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--gl-font);
  color: var(--gl-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 18px;
  box-shadow: 0 30px 70px -24px rgba(var(--gl-ink-rgb), .5);
  animation: gl-pop .18s ease-out;
}
.gl-theme-panel[hidden] { display: none; }
.gl-theme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--gl-soft);
}
.gl-theme-head strong { display: block; font-size: 1rem; }
.gl-theme-head span { display: block; font-size: .8rem; color: rgba(var(--gl-ink-rgb), .62); }
.gl-theme-x {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--gl-page);
  color: var(--gl-deep);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gl-theme-x:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .4); outline-offset: 2px; }
.gl-theme-body { overflow: auto; overscroll-behavior: contain; padding: 4px 18px 18px; }
.gl-th {
  margin: 14px 0 8px;
  font-family: var(--gl-font);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(var(--gl-ink-rgb), .55);
}
.gl-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gl-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid var(--gl-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--gl-ink);
  font-family: var(--gl-font);
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.gl-tile:hover { border-color: var(--gl-muted); }
.gl-tile[aria-pressed="true"] { border-color: var(--gl-main); box-shadow: 0 0 0 3px rgba(var(--gl-main-rgb), .2); }
.gl-tile:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .4); outline-offset: 2px; }
.gl-tprev { position: relative; display: block; height: 54px; border-radius: 8px; overflow: hidden; }
.gl-tbar { display: block; height: 12px; }
.gl-tcard {
  position: absolute;
  inset: 18px 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  border-radius: 5px;
  background: #fff;
}
.gl-tcard > span:first-child { height: 6px; border-radius: 3px; }
.gl-tbtns { display: flex; gap: 4px; }
.gl-tbtns i { width: 18px; height: 7px; border-radius: 4px; }
.gl-tname { font-size: .75rem; font-weight: 500; line-height: 1.25; }
.gl-tname em {
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: .62rem;
  font-weight: 600;
  color: var(--gl-deep);
  background: rgba(var(--gl-main-rgb), .12);
}

/* ---------------------------------------------------------------- buttons and fields */

.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--gl-radius);
  font-family: var(--gl-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gl-main) 0%, var(--gl-deep) 100%);
  box-shadow: 0 14px 28px -14px rgba(var(--gl-deep-rgb), .85);
  transition: filter .15s, box-shadow .15s, transform .12s;
}
.gl-btn:hover { filter: brightness(1.07); box-shadow: 0 18px 32px -14px rgba(var(--gl-deep-rgb), .9); color: #fff; }
.gl-btn:active { transform: translateY(1px); }
.gl-btn:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .45); outline-offset: 3px; }
.gl-btn[disabled] { opacity: .6; cursor: not-allowed; filter: none; }
.gl-btn--block { width: 100%; }
.gl-btn--ghost {
  color: var(--gl-deep);
  background: #fff;
  border: 1.5px solid var(--gl-line);
  box-shadow: none;
}
.gl-btn--ghost:hover { color: var(--gl-deep); border-color: var(--gl-main); background: var(--gl-surface); box-shadow: none; }

.gl-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(var(--gl-ink-rgb), .78);
}
.gl-label .required-icon { color: var(--gl-danger); font-size: 8px; }

.gl-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  border: 1.5px solid var(--gl-line);
  border-radius: var(--gl-radius);
  background: var(--gl-surface);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.gl-field:hover { border-color: var(--gl-muted); }
.gl-field:focus-within {
  border-color: var(--gl-main);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--gl-main-rgb), .15);
}
.gl-fi { flex: none; width: 46px; display: grid; place-items: center; color: var(--gl-muted); }
.gl-fi svg { width: 18px; height: 18px; stroke: currentColor; }
.gl-fi .fa, .gl-fi .fa-solid { font-size: 15px; }
.gl-field:focus-within .gl-fi { color: var(--gl-main); }
.gl-field input,
.gl-field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--gl-font);
  font-size: 16px;          /* 16px keeps phones from zooming into the field */
  color: var(--gl-ink);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.gl-field input::placeholder { color: rgba(var(--gl-ink-rgb), .42); }
.gl-field select { padding-right: 42px; cursor: pointer; text-overflow: ellipsis; }
.gl-field select.placeholder-selected { color: rgba(var(--gl-ink-rgb), .42); }
.gl-chev { position: absolute; right: 16px; pointer-events: none; color: var(--gl-muted); display: grid; }
.gl-chev svg { width: 14px; height: 14px; stroke: currentColor; }
.gl-show,
.gl-eye {
  flex: none;
  height: 34px;
  margin-right: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font-family: var(--gl-font);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gl-deep);
  background: rgba(var(--gl-main-rgb), .1);
  cursor: pointer;
}
.gl-eye { display: grid; place-items: center; width: 38px; padding: 0; }
.gl-show:hover, .gl-eye:hover { background: rgba(var(--gl-main-rgb), .18); }
.gl-show:focus-visible, .gl-eye:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .4); outline-offset: 1px; }

/* ---------------------------------------------------------------- Sign In (index.php)
   One card in the middle of the page: company images with the Why Galaxy? texts on the
   left, the Galaxy logo with the company and the sign in form on the right. Calm: the
   only movement is the fade to the next image and text (every 4 s) and hover feedback. */

.gl-si { overflow-x: hidden; }
.gl-si .gl-logo::after { display: none; }          /* no orbit light on this page */

.gl-si-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(var(--gl-main-rgb), .12), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(var(--gl-accent-rgb), .10), transparent 70%),
    linear-gradient(180deg, var(--gl-surface) 0%, var(--gl-page) 100%);
}
.gl-si-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--gl-deep-rgb), .07) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 35%, #000 100%);
}

.gl-si-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.gl-si-card {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  width: min(1040px, 100%);
  min-height: min(620px, calc(100vh - 64px));
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(var(--gl-deep-rgb), .06),
    0 40px 80px -42px rgba(var(--gl-deep-rgb), .5);
  animation: gl-rise .5s ease-out both;
}

/* left: the Why Galaxy? text at the top, the company images under it as the pages of a book.
   Each picture is shown whole (never cropped); the space around it is a soft, blurred copy of
   the same picture in the theme colour. On every text change the picture turns away like a
   book page and the next one is underneath (jsr/gx-signin.js). */
.gl-si-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--gl-deep);
}
.gl-si-blurs { position: absolute; inset: 0; z-index: 0; }
.gl-si-blur {
  position: absolute;
  inset: -40px;
  background-position: center;
  background-size: cover;
  filter: blur(26px) saturate(1.15);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.gl-si-blur.is-cur { opacity: 1; }
.gl-si-visual::after {          /* theme colour over the blurred picture; the text below always reads well */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(var(--gl-ink-rgb), .9) 0%, rgba(var(--gl-deep-rgb), .6) 42%, rgba(var(--gl-deep-rgb), .45) 100%);
  pointer-events: none;
}
.gl-si-book {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  margin: 10px 38px 38px;
}
.gl-si-img {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.gl-si-img.is-cur, .gl-si-img.is-turning { opacity: 1; visibility: visible; }
.gl-si-img.is-cur { z-index: 1; }
.gl-si-img.is-turning { z-index: 2; }
.gl-si-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px 14px 14px 6px;             /* bound at the left, like a page */
  background: #fff;
  box-shadow:
    5px 5px 0 -1px rgba(255, 255, 255, .55),     /* page edges of the book */
    10px 10px 0 -2px rgba(255, 255, 255, .28),
    0 24px 44px -18px rgba(0, 0, 0, .65);
  transform-origin: left center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.gl-si-img.is-turning img { animation: gl-page-turn 1.15s cubic-bezier(.45, .05, .35, 1) forwards; box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .65); }
.gl-si-img.is-entering img { animation: gl-page-under 1.15s ease-out; }
.gl-si-caption {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  order: -1;
  padding: 38px 44px 14px;
  color: #fff;
}
.gl-si-rotator { display: grid; }                   /* all texts in one cell: as tall as the longest */
.gl-si-rotator .gl-slide {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
}
.gl-si-rotator .gl-slide.active { opacity: 1; visibility: visible; transition: opacity .5s ease .25s, visibility 0s .25s; }
.gl-si-rotator h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--gl-font);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.gl-si-rotator h1::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gl-accent); }
.gl-si-rotator h2 {
  margin: 0;
  max-width: 30ch;
  font-family: var(--gl-font);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.gl-si-dots { display: flex; gap: 6px; }
.gl-si-dot {
  width: 7px;
  height: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .45);
  transition: width .3s ease, background-color .3s ease;
}
.gl-si-dot.is-on { width: 24px; background: #fff; }

/* right: the Galaxy logo with the company, and the form */
.gl-si-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px 30px;
  background: #fff;
}
.gl-si-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 56px;                          /* room for the theme button in the corner */
  margin-bottom: 34px;
}
.gl-si-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gl-si-brand .gl-logo { --gl-logo-size: 60px; padding: 0; background: none; box-shadow: none; }   /* logo only, no ring around it */
.gl-si-brand .gl-logo::before { display: none; }
.gl-si-brand .gl-logo img { padding: 0; }
.gl-si-brand-name {
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gl-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.gl-si-brand-name:hover { color: var(--gl-main); text-decoration: underline; text-underline-offset: 3px; }
.gl-si-tools { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; }
.gl-si-tools .gl-theme-lbl { display: none; }
.gl-si-tools .gl-theme-btn { height: 38px; padding: 0 12px 0 10px; box-shadow: none; }
.gl-si-title {
  margin: 0 0 22px;
  font-family: var(--gl-font);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gl-ink);
}
.gl-si-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gl-main), var(--gl-accent));
}
.gl-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.gl-form .gl-btn { margin-top: 8px; }
.gl-powered { margin: 28px 0 0; text-align: center; font-size: .78rem; line-height: 1.6; color: rgba(var(--gl-ink-rgb), .6); }
.gl-powered strong { color: var(--gl-deep); font-weight: 600; }
.gl-powered sup { font-size: 8px; line-height: 0; }
.gl-powered a { color: var(--gl-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* database list: the page's own <select> stays (hidden) and is submitted; a styled, sorted list
   with a search box is shown instead of the browser's plain list (jsr/gx-signin.js) */
.gl-field.gl-has-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.gl-pick-btn {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 42px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--gl-font);
  font-size: 16px;
  color: var(--gl-ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.gl-pick-btn.is-placeholder { color: rgba(var(--gl-ink-rgb), .42); }
.gl-pick-list {
  position: fixed;
  z-index: 100003;
  display: flex;
  flex-direction: column;
  padding: 8px;
  font-family: var(--gl-font);
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 16px;
  box-shadow: 0 26px 54px -22px rgba(var(--gl-ink-rgb), .5);
  animation: gl-pop .14s ease-out;
}
.gl-pick-search { position: relative; flex: none; margin-bottom: 6px; }
.gl-pick-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--gl-muted);
  pointer-events: none;
}
.gl-pick-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--gl-soft);
  border-radius: 10px;
  outline: 0;
  background: var(--gl-surface);
  font-family: var(--gl-font);
  font-size: 14px;
  color: var(--gl-ink);
}
.gl-pick-search input:focus { border-color: var(--gl-main); box-shadow: 0 0 0 3px rgba(var(--gl-main-rgb), .14); background: #fff; }
.gl-pick-opts {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0 2px 0 0;
  list-style: none;
}
.gl-pick-opts::-webkit-scrollbar { width: 8px; }
.gl-pick-opts::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--gl-line); }
.gl-pick-opt {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gl-ink);
  cursor: pointer;
}
.gl-pick-opt.is-active { background: var(--gl-page); }
.gl-pick-opt[aria-selected="true"] { color: var(--gl-deep); font-weight: 700; background: rgba(var(--gl-main-rgb), .09); }
.gl-pick-opt svg { flex: none; width: 16px; height: 16px; color: var(--gl-main); }
.gl-pick-empty { padding: 12px; font-size: 13px; color: rgba(var(--gl-ink-rgb), .55); }

/* fields filled in by the browser (saved user / password) keep the look of the field */
.gl-si .gl-field input:-webkit-autofill,
.gl-si .gl-field input:-webkit-autofill:hover,
.gl-si .gl-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--gl-ink);
  caret-color: var(--gl-ink);
  transition: background-color 600000s 0s, color 600000s 0s;
}

@media (max-width: 860px) {
  .gl-si-wrap { place-items: start center; padding: 24px 16px; }
  .gl-si-card { grid-template-columns: 1fr; width: min(520px, 100%); min-height: 0; }
  .gl-si-form { order: -1; }
  .gl-si-visual { min-height: 360px; }
  .gl-si-book { margin: 8px 26px 26px; }
  .gl-si-caption { padding: 24px 26px 10px; gap: 14px; }
  .gl-si-rotator h2 { font-size: 1.15rem; }
}
@media (max-width: 575.98px) {
  .gl-si-wrap { padding: 14px 12px; }
  .gl-si-card { border-radius: 22px; }
  .gl-si-form { padding: 26px 22px 22px; }
  .gl-si-top { margin-bottom: 26px; }
  .gl-si-brand .gl-logo { --gl-logo-size: 52px; }
  .gl-si-brand-name { font-size: .98rem; }
  .gl-si-title { font-size: 1.6rem; margin-bottom: 18px; }
  .gl-si-visual { min-height: 330px; }
  .gl-si-book { margin: 6px 20px 22px; }
}

/* login error messages (showToast in index.php) */
#toast-container {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}
#toast-container .toast {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--gl-line);
  border-left: 4px solid var(--gl-danger);
  border-radius: 14px;
  background: #fff;
  font-family: var(--gl-font);
  box-shadow: 0 20px 44px -22px rgba(var(--gl-ink-rgb), .55);
  pointer-events: all;
  animation: gl-toast-in .35s cubic-bezier(.22, 1, .36, 1) forwards;
}
#toast-container .toast.hiding { animation: gl-toast-out .3s ease forwards; }
#toast-container .toast-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fde4e4;
}
#toast-container .toast-body { flex: 1; min-width: 0; }
#toast-container .toast-title { margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--gl-danger); }
#toast-container .toast-msg { font-size: 13px; line-height: 1.5; color: rgba(var(--gl-ink-rgb), .75); }
#toast-container .toast-close {
  flex: none;
  padding: 0 2px;
  border: 0;
  background: none;
  color: rgba(var(--gl-ink-rgb), .45);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
#toast-container .toast-close:hover { color: var(--gl-ink); }
#toast-container .toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--gl-danger);
  animation: gl-toast-progress 10s linear forwards;
}

/* ---------------------------------------------------------------- pages after Sign In: top bar (navmenu.php) */

.gl-top.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  gap: 12px;
  min-height: 68px;
  padding: 10px clamp(14px, 3vw, 28px);
  font-family: var(--gl-font);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--gl-soft);
  box-shadow: 0 10px 30px -26px rgba(var(--gl-deep-rgb), .6);
}
.gl-top .gl-brand { order: 0; }
.gl-top-cust { order: 1; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 0; }
.gl-cust-logo { height: 34px; width: auto; max-width: 110px; object-fit: contain; flex: none; }
.gl-top-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gl-deep);
  text-decoration: none;
}
.gl-top-name:hover { color: var(--gl-main); }
.gl-top .navbar-collapse { order: 2; flex-grow: 0; }
.gl-top-tools { order: 3; display: flex; align-items: center; }
.gl-top .navbar-toggler { order: 4; }
.gl-top-user { display: flex; align-items: center; gap: 6px; }
.gl-top-user .gl-link {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gl-deep);
  text-decoration: none;
  white-space: nowrap;
}
.gl-top-user .gl-link:hover { background: rgba(var(--gl-main-rgb), .09); color: var(--gl-deep); }
.gl-top-user .gl-link:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .4); outline-offset: 1px; }
.gl-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gl-page);
  border: 1px solid var(--gl-soft);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gl-ink);
  white-space: nowrap;
}
.gl-user-photo {
  margin-right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(var(--gl-main-rgb), .3);
}
.gl-top .navbar-toggler {
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.gl-top .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--gl-main-rgb), .3); }
.gl-burger, .gl-burger::before, .gl-burger::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--gl-deep);
}
.gl-burger { position: relative; }
.gl-burger::before, .gl-burger::after { content: ""; position: absolute; left: 0; }
.gl-burger::before { top: -6px; }
.gl-burger::after { top: 6px; }

/* ---------------------------------------------------------------- page body (main.php) */

.gl-main {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px) clamp(14px, 3vw, 28px) 110px;
  animation: gl-rise .4s ease-out backwards;   /* not kept after it ends: fixed buttons inside (Proceed) stay fixed to the screen */
}
.gl-narrow { width: min(520px, 100%); margin: 0 auto; }
.gl-card {
  background: #fff;
  border: 1px solid rgba(var(--gl-deep-rgb), .07);
  border-radius: 24px;
  padding: clamp(20px, 3.4vw, 34px);
  box-shadow: 0 30px 64px -42px rgba(var(--gl-deep-rgb), .55);
}
.gl-heading { margin: 0 0 22px; text-align: center; }
.gl-heading h3 {
  margin: 0;
  font-family: var(--gl-font);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--gl-ink);
}
.gl-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gl-main), var(--gl-accent));
}

/* Bootstrap alerts shown by these pages (errors, success) */
.gl-page .alert {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 12px 44px 12px 16px;
  border-radius: 14px;
  font-family: var(--gl-font);
  font-size: .9rem;
  box-shadow: 0 16px 34px -26px rgba(var(--gl-ink-rgb), .6);
}
.gl-page .alert-danger { color: #8f1d27; background: #fdecee; border: 1px solid #f6c9ce; }
.gl-page .alert-success { color: #0d5c42; background: #e6f6ef; border: 1px solid #bfe6d4; }
.gl-main .alert { width: 100%; margin: 0 0 16px; }

/* ---------------------------------------------------------------- change password (changepwd.php) */

.gl-pwd .gl-heading { margin-bottom: 18px; }
.gl-pwd .gl-heading h3 { letter-spacing: .04em; }
.gl-pwd-form { display: flex; flex-direction: column; gap: 16px; }
.gl-pwd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.gl-pwd-actions .gl-btn { flex: 1 1 160px; }
.gl-pwd .pwdrule {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .8rem;
  font-style: normal;
  line-height: 1.55;
  color: rgba(var(--gl-ink-rgb), .72);
  background: var(--gl-page);
  border: 1px dashed var(--gl-line);
}

/* ---------------------------------------------------------------- subscriptions (subscrlist.php)
   Each card has its own colour (8 colours, repeating): full border, soft tint, icon and date. */

.gl-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.gl-sub {
  --c: #2563eb;  --c-tint: #eff4ff;  --c-line: #bfd3fb;  --c-deep: #1e40af;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1.5px solid var(--c-line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--c-tint) 0%, #fff 72%);
  box-shadow: 0 20px 40px -34px rgba(var(--gl-ink-rgb), .55);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gl-sub:nth-child(8n+2) { --c: #059669; --c-tint: #ecfdf5; --c-line: #a7f3d0; --c-deep: #065f46; }
.gl-sub:nth-child(8n+3) { --c: #d97706; --c-tint: #fffbeb; --c-line: #fcd9a0; --c-deep: #92400e; }
.gl-sub:nth-child(8n+4) { --c: #7c3aed; --c-tint: #f5f3ff; --c-line: #d9ccfb; --c-deep: #5b21b6; }
.gl-sub:nth-child(8n+5) { --c: #e11d48; --c-tint: #fff1f3; --c-line: #fecdd3; --c-deep: #9f1239; }
.gl-sub:nth-child(8n+6) { --c: #0891b2; --c-tint: #ecfeff; --c-line: #a5f3fc; --c-deep: #155e75; }
.gl-sub:nth-child(8n+7) { --c: #c026d3; --c-tint: #fdf4ff; --c-line: #f5d0fe; --c-deep: #86198f; }
.gl-sub:nth-child(8n+8) { --c: #65a30d; --c-tint: #f7fee7; --c-line: #d9f99d; --c-deep: #3f6212; }
.gl-sub:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 26px 48px -32px rgba(var(--gl-ink-rgb), .6); }
.gl-sub form { margin: 0; }
.gl-sub-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gl-ink);
  text-align: left;
  cursor: pointer;
}
.gl-sub-btn:focus-visible { outline: 3px solid var(--c-line); outline-offset: 4px; border-radius: 10px; }
.gl-sub-btn h5 { margin: 0; font-family: var(--gl-font); font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--gl-ink); }
.gl-sub:hover .gl-sub-btn h5 { color: var(--c-deep); }
.gl-sub-ico {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--c) 0%, var(--c-deep) 100%);
  box-shadow: 0 10px 18px -10px var(--c);
}
.gl-sub-ico svg { width: 22px; height: 22px; stroke: currentColor; }
.gl-sub-meta { display: flex; flex-direction: column; gap: 4px; margin-top: auto; font-size: .84rem; color: rgba(var(--gl-ink-rgb), .66); }
.gl-sub-meta span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--c-line); }
.gl-sub-meta span:first-child { border-top: 0; padding-top: 0; }
.gl-sub-meta b { font-weight: 700; color: var(--c-deep); }
.gl-sub-meta .gl-sub-stat {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #475569;
  background: #e2e8f0;
}
.gl-sub-meta .gl-sub-stat--active { color: #047857; background: #d1fae5; }
.gl-sub-meta .gl-sub-stat--trial { color: #b45309; background: #fef3c7; }

/* ---------------------------------------------------------------- companies (companylist.php) */

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.bcard.company-card {
  --accent: var(--gl-main);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 20px;
  border: 1.5px solid var(--gl-soft);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 22px 44px -36px rgba(var(--gl-deep-rgb), .6);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bcard.company-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 28px 52px -34px rgba(var(--gl-deep-rgb), .75); }
.bcard.company-card:focus-visible { outline: 3px solid rgba(var(--gl-main-rgb), .45); outline-offset: 3px; }
.bcard.company-card .logo-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gl-surface), #fff);
  border: 1px solid var(--gl-soft);
}
.bcard.company-card .logo-frame img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.bcard.company-card .logo-frame .logo-fallback {
  display: none;
  width: 34%;
  height: 34%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}
.bcard.company-card .card-text { width: 100%; }
.bcard.company-card .comp-name { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--gl-ink); }
.bcard.company-card::after {     /* accent line of the company's colour setting */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  transform: translateX(-50%);
}
.bcard.company-card.theme-blue { --accent: var(--gl-main); }
.bcard.company-card.theme-rose { --accent: #c97b63; }
.bcard.company-card.theme-sage { --accent: #7c8b5e; }
.bcard.company-card.theme-gold { --accent: #bb8438; }

/* ---------------------------------------------------------------- thought of the day and birthdays (thought-birthday.php)
   Thought of the day on the left, today's birthdays on the right. When there are no birthdays
   (or no thought), the one that is there stands alone in the centre. */

.gl-thot {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 2.6vw, 32px);
  align-items: start;
}
.gl-thot > div:only-of-type { grid-column: 1 / -1; justify-self: center; width: min(860px, 100%); }
/* with birthdays: use the width of the screen (with padding), the thought about a third, the birthdays the rest */
.gl-main:has(> .gl-thot > .bday-wrap) { width: 100%; max-width: 1800px; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
.gl-thot:has(> .totd-wrap):has(> .bday-wrap) { grid-template-columns: minmax(340px, .58fr) minmax(0, 1.42fr); }

/* thought of the day: a panel like the birthdays panel - heading row (icon + title), the quote card under it */
.totd-wrap {
  position: sticky;
  top: 92px;
  margin: 0;
  padding: 22px clamp(14px, 2vw, 24px) 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(var(--gl-deep-rgb), .07);
  box-shadow: 0 30px 64px -44px rgba(var(--gl-deep-rgb), .55);
  animation: gl-rise .6s ease .1s both;
}
.gl-thot > .totd-wrap:only-of-type { position: relative; top: 0; margin-top: 3vh; }
.totd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.totd-halo { position: relative; flex: none; width: 40px; height: 40px; }
.totd-halo .ring { display: none; }
.totd-halo .core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gl-accent), var(--gl-deep));
  box-shadow: 0 10px 18px -10px rgba(var(--gl-deep-rgb), .7);
}
.totd-halo .core svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.totd-eyebrow {
  margin: 0;
  font-family: var(--gl-font);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--gl-ink);
}
.totd-card {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 50px clamp(22px, 3vw, 40px) 44px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--gl-deep) 0%, var(--gl-main) 60%, var(--gl-accent) 130%);
  box-shadow: 0 22px 40px -30px rgba(var(--gl-deep-rgb), .9);
}
.gl-thot > .totd-wrap:only-of-type .totd-card { min-height: 240px; padding: 50px clamp(24px, 5vw, 64px) 44px; }
.totd-card::before,
.totd-card::after {               /* large opening and closing quote marks */
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 255, 255, .17);
  pointer-events: none;
}
.totd-card::before { content: "\201C"; top: 4px; left: 18px; }
.totd-card::after { content: "\201D"; right: 18px; bottom: -44px; }
.totd-card-surface { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 20px; }
.totd-card-surface .blob { position: absolute; border-radius: 50%; filter: blur(40px); }
.totd-card-surface .blob-a { width: 260px; height: 260px; left: -70px; top: -80px; background: radial-gradient(circle, rgba(255, 255, 255, .32), transparent 70%); animation: gl-blob-a 14s ease-in-out infinite; }
.totd-card-surface .blob-b { width: 300px; height: 300px; right: -100px; bottom: -110px; background: radial-gradient(circle, rgba(var(--gl-ink-rgb), .32), transparent 70%); animation: gl-blob-b 18s ease-in-out infinite; }
.totd-card-surface .blob-c { width: 340px; height: 220px; left: 10%; top: 6%; background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent 65%); filter: blur(50px); animation: gl-blob-c 22s ease-in-out infinite; }
.totd-content { position: relative; z-index: 1; width: 100%; }
.totd-msg-wrap { position: relative; padding: 0 4px; }
.totd-msg-line { position: relative; margin: 0 0 22px; }
.totd-msg { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 500; line-height: 1.55; color: #fff; }
.totd-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -.15em;
  background: #fff;
  animation: gl-blink .9s steps(2) infinite;
}
.totd-underline { width: 48px; height: 3px; margin: 0 auto; border-radius: 3px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .35)); }

/* today's birthdays */
.bday-wrap {
  position: relative;
  padding: 22px clamp(14px, 2vw, 24px) 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(var(--gl-deep-rgb), .07);
  box-shadow: 0 30px 64px -44px rgba(var(--gl-deep-rgb), .55);
  animation: gl-rise .6s ease .2s both;
}
.bday-heading { position: relative; margin: 0 0 16px; text-align: center; }
.bday-heading .bday-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gl-accent), var(--gl-deep));
  box-shadow: 0 10px 20px -8px rgba(var(--gl-deep-rgb), .6);
}
.bday-heading .bday-icon svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bday-heading h3 { margin: 0; font-family: var(--gl-font); font-weight: 700; color: var(--gl-ink); }
.bday-heading.personal h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--gl-deep); }
.bday-heading .bday-underline { width: 44px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--gl-main), var(--gl-accent)); }

/* the user's own birthday, at the top of the birthdays */
.bday-me { padding-bottom: 20px; text-align: center; }
.bday-me:not(:last-child) { margin-bottom: 18px; border-bottom: 1px dashed var(--gl-line); }

/* everybody else's birthday: title with a cake, then small cards */
.bday-heading.group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}
.bday-heading.group::before {     /* cake */
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8'/%3E%3Cpath d='M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1'/%3E%3Cpath d='M2 21h20'/%3E%3Cpath d='M7 8v3M12 8v3M17 8v3'/%3E%3Cpath d='M7 4h.01M12 4h.01M17 4h.01'/%3E%3C/svg%3E") center / 20px no-repeat,
    linear-gradient(135deg, var(--gl-accent), var(--gl-deep));
  box-shadow: 0 10px 18px -10px rgba(var(--gl-deep-rgb), .7);
}
.bday-heading.group h3 { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.35; }
.bday-heading.group .bday-underline { display: none; }

.bcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}
.bcard {
  --bg-light: var(--gl-surface);
  --bg-dark: var(--gl-tint);
  --accent: var(--gl-main);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 14px;
  border: 1.5px solid var(--gl-soft);
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 18px;
  background: linear-gradient(170deg, var(--bg-light) 0%, #fff 55%, var(--bg-light) 100%);
  box-shadow: 0 14px 28px -22px rgba(var(--gl-ink-rgb), .5);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .2s;
}
.bcard:hover { z-index: 10; transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 22px 36px -22px rgba(var(--gl-ink-rgb), .55); }
.bcard::before {                  /* small cake badge in the card's colour */
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8'/%3E%3Cpath d='M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1'/%3E%3Cpath d='M2 21h20'/%3E%3Cpath d='M7 8v3M12 8v3M17 8v3'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--accent);
  opacity: .9;
}
.bcard .photo-frame {
  width: 64px;
  height: 64px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
}
.bcard .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.bcard .card-text { width: 100%; margin-top: 12px; text-align: center; }
.bcard .card-text .emp_name { margin: 0 0 4px; font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--gl-ink); }
.bcard .card-text .emp_dept { margin: 0 0 3px; font-size: .68rem; font-weight: 700; line-height: 1.35; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.bcard .card-text .emp_code { margin: 0; font-size: .7rem; color: rgba(var(--gl-ink-rgb), .55); }
.bcard.theme-rose { --bg-light: #fbf1ea; --bg-dark: #f5e2d6; --accent: #c2704f; }
.bcard.theme-blue { --bg-light: #edf3f9; --bg-dark: #dbe7ef; --accent: #3f74a8; }
.bcard.theme-gold { --bg-light: #fbf2e1; --bg-dark: #f3e0bd; --accent: #b07a2f; }
.bcard.theme-lavender { --bg-light: #f3eefa; --bg-dark: #e6daf0; --accent: #8160a8; }
.bcard.theme-sage { --bg-light: #f2f6ea; --bg-dark: #e8ecda; --accent: #5f7a3e; }
.bcard.theme-pink { --bg-light: #fcf0f3; --bg-dark: #f7dee3; --accent: #c2577a; }
.bcard-featured { max-width: 250px; margin: 40px auto 0; padding: 20px 14px 16px; }
.bcard-featured::before { display: none; }
.bcard-featured .photo-frame { width: 92px; height: 92px; }
.bcard-featured .card-text .emp_name { font-size: 1rem; }
.bcard-featured .card-text .emp_dept { font-size: .74rem; }
.bcard-featured .card-text .emp_code { font-size: .76rem; }

/* balloons of the user's own birthday card (released once, by JS adding .released) */
.bday-balloons { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bday-balloon {
  position: absolute;
  top: -18px;
  width: 34px;
  height: 46px;
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
  will-change: transform, opacity;
}
.bday-balloon svg { display: block; width: 100%; height: 100%; }
.bday-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 60px;
  background: rgba(90, 90, 90, .5);
  transform: translateX(-50%);
}
.balloon-left-1 { left: 18px; animation: gl-bob-l 3.6s ease-in-out infinite; }
.balloon-left-2 { left: 45px; top: -28px; animation: gl-bob-l 4s ease-in-out infinite .3s; }
.balloon-left-3 { left: 72px; top: -15px; animation: gl-bob-l 3.2s ease-in-out infinite .6s; }
.balloon-right-1 { right: 18px; animation: gl-bob-r 3.8s ease-in-out infinite; }
.balloon-right-2 { right: 45px; top: -28px; animation: gl-bob-r 3.4s ease-in-out infinite .3s; }
.balloon-right-3 { right: 72px; top: -15px; animation: gl-bob-r 4.2s ease-in-out infinite .6s; }
.bcard-featured.released .balloon-left-1 { animation: gl-rel-l1 4s ease-out forwards; }
.bcard-featured.released .balloon-left-2 { animation: gl-rel-l2 4.3s ease-out forwards; }
.bcard-featured.released .balloon-left-3 { animation: gl-rel-l3 3.8s ease-out forwards; }
.bcard-featured.released .balloon-right-1 { animation: gl-rel-r1 4s ease-out forwards; }
.bcard-featured.released .balloon-right-2 { animation: gl-rel-r2 4.2s ease-out forwards; }
.bcard-featured.released .balloon-right-3 { animation: gl-rel-r3 3.9s ease-out forwards; }
.bcard-featured.released .bday-balloon::after { animation: gl-string 4s ease-out forwards; }

/* "Proceed" button (its fabric effect is drawn by initFabricButton in thought-birthday.php) */
.proceed-float .my-explore-btn { color: #fff; }
@media (max-width: 768px) {
  /* the effect needs 40px around the button: keep that inside the screen, so phones do not zoom out */
  .gl-page .proceed-float { right: max(40px, env(safe-area-inset-right)); }
}

/* ---------------------------------------------------------------- tablets and phones */

@media (max-width: 991.98px) {
  .gl-thot { grid-template-columns: 1fr; }
  .totd-wrap { position: relative; top: 0; }
  .totd-card { min-height: 0; }
  .gl-top .navbar-collapse { order: 5; flex-basis: 100%; flex-grow: 1; }
  .gl-top-user {
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gl-soft);
  }
  .gl-user { margin-left: auto; }
}

@media (max-width: 575.98px) {
  .gl-page { font-size: 14px; }
  .gl-logo--lg { --gl-logo-size: 80px; }
  .gl-top.navbar { min-height: 60px; gap: 8px; }
  .gl-logo--sm { --gl-logo-size: 38px; }
  .gl-cust-logo { height: 28px; }
  .gl-theme-btn { padding: 0 11px; }
  .gl-theme-lbl { display: none; }
  .gl-main { padding-bottom: 120px; }
  .gl-subs, .company-grid { grid-template-columns: 1fr; }
  .bcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .totd-card { padding: 46px 20px 40px; }
  .bday-balloon { width: 28px; height: 38px; }

  .gl-theme-panel {                 /* bottom sheet */
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: gl-sheet .22s ease-out;
  }
  .gl-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gl-theme-open body::after {      /* dim the page behind the sheet; a tap on it closes the sheet */
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(var(--gl-ink-rgb), .3);
  }
}

/* ---------------------------------------------------------------- motion */

@keyframes gl-spin { to { transform: rotate(360deg); } }
@keyframes gl-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes gl-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gl-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gl-marquee { to { transform: translateX(-50%); } }
@keyframes gl-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gl-toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes gl-toast-progress { from { width: 100%; } to { width: 0; } }
@keyframes gl-ring { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes gl-blink { 50% { opacity: 0; } }
@keyframes gl-blob-a { 0%, 100% { transform: translate(-10%, -10%) scale(1); } 50% { transform: translate(8%, 12%) scale(1.15); } }
@keyframes gl-blob-b { 0%, 100% { transform: translate(8%, 10%) scale(1); } 50% { transform: translate(-12%, -8%) scale(1.2); } }
@keyframes gl-blob-c { 0%, 100% { transform: translate(0, 0) rotate(0) scale(1); } 50% { transform: translate(-6%, 8%) rotate(20deg) scale(1.1); } }
@keyframes gl-bob-l { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-6px); } }
@keyframes gl-bob-r { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
@keyframes gl-rel-l1 { 0% { transform: rotate(-8deg) translate(0, 0); opacity: 1; } 60% { transform: rotate(-28deg) translate(-80px, -260px); opacity: 1; } 100% { transform: rotate(-40deg) translate(-140px, -520px); opacity: 0; } }
@keyframes gl-rel-l2 { 0% { transform: rotate(-5deg) translate(0, 0); opacity: 1; } 100% { transform: rotate(-32deg) translate(-180px, -560px); opacity: 0; } }
@keyframes gl-rel-l3 { 0% { transform: rotate(-10deg) translate(0, 0); opacity: 1; } 100% { transform: rotate(-20deg) translate(-90px, -600px); opacity: 0; } }
@keyframes gl-rel-r1 { 0% { transform: rotate(8deg) translate(0, 0); opacity: 1; } 60% { transform: rotate(28deg) translate(80px, -260px); opacity: 1; } 100% { transform: rotate(40deg) translate(140px, -520px); opacity: 0; } }
@keyframes gl-rel-r2 { 0% { transform: rotate(6deg) translate(0, 0); opacity: 1; } 100% { transform: rotate(32deg) translate(180px, -560px); opacity: 0; } }
@keyframes gl-rel-r3 { 0% { transform: rotate(10deg) translate(0, 0); opacity: 1; } 100% { transform: rotate(20deg) translate(90px, -600px); opacity: 0; } }
@keyframes gl-string { 0% { height: 60px; opacity: .6; } 100% { height: 180px; opacity: 0; } }
@keyframes gl-page-turn { 0% { transform: perspective(1600px) rotateY(0); filter: brightness(1); } 50% { filter: brightness(.72); } 100% { transform: perspective(1600px) rotateY(-180deg); filter: brightness(.5); } }
@keyframes gl-page-under { from { filter: brightness(.7); } to { filter: brightness(1); } }

@media (prefers-reduced-motion: reduce) {
  .gl-page *, .gl-page *::before, .gl-page *::after,
  .gl-logo::after, .gl-theme-panel {
    animation: none !important;
    transition: none !important;
  }
  .totd-cursor { display: none; }
}
