/*
 * Client Central — the customer counterpart to Employee Central (empc).
 *
 * Deliberately self-contained: no CDN Tailwind and no remote webfonts, so the
 * page renders under a strict `default-src 'self'` CSP and does not break when
 * a third-party CDN is unreachable.
 */

:root {
  --bg-from: #0f172a;
  --bg-to: #1e1b4b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --accent: #60a5fa;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 3rem 1.5rem 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- fixed auth bar ---- */
#auth-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#auth-bar a { color: var(--accent); text-decoration: none; }
#auth-bar a.logout { color: #f87171; }
.auth-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main { max-width: 1200px; margin: 0 auto; padding-top: 2.5rem; }

.page-head { text-align: center; margin-bottom: 3.5rem; }
h1 { font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 700; margin: 0 0 0.75rem; }
.gradient-text {
  background: linear-gradient(to right, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---- signed-out notice ---- */
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.notice h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.notice p { color: var(--muted); margin: 0 0 0.5rem; line-height: 1.6; }
.notice-actions { margin-top: 1.25rem !important; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface-hover); }

/* ---- service cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  background: var(--surface-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.card h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon svg { width: 1.5rem; height: 1.5rem; stroke-linecap: round; stroke-linejoin: round; }
.icon-indigo  { background: rgba(99, 102, 241, 0.2);  color: #818cf8; }
.icon-amber   { background: rgba(245, 158, 11, 0.2);  color: #fbbf24; }
.icon-emerald { background: rgba(16, 185, 129, 0.2);  color: #34d399; }
.icon-sky     { background: rgba(14, 165, 233, 0.2);  color: #38bdf8; }
.icon-violet  { background: rgba(139, 92, 246, 0.2);  color: #a78bfa; }
.icon-rose    { background: rgba(244, 63, 94, 0.2);   color: #fb7185; }
.icon-cyan    { background: rgba(6, 182, 212, 0.2);   color: #22d3ee; }
.icon-lime    { background: rgba(132, 204, 22, 0.2);  color: #a3e635; }

/* ---- help ---- */
.help {
  margin: 3.5rem 0 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.help h2 { margin: 0 0 0.75rem; font-size: 1.5rem; }
.help p { color: var(--muted); line-height: 1.7; margin: 0; max-width: 70ch; }

footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } body { padding-left: 1rem; padding-right: 1rem; } }
