/* NovaMeet — modern glassmorphism design system (light-first, self-contained).
   Palette: primary #2563EB, accent #F97316. Font: Poppins if present, else system. */

:root {
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-050: #eff4ff;
  --accent: #f97316;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .09);
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --warn: #b45309;
  --warn-bg: #fffbeb;

  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #ffffff;
  --glass-border: rgba(255, 255, 255, .6);

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 4px 12px -6px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px -20px rgba(37, 99, 235, .28), 0 8px 24px -12px rgba(15, 23, 42, .16);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(38rem 38rem at 12% -8%, rgba(37, 99, 235, .16), transparent 60%),
    radial-gradient(32rem 32rem at 108% 8%, rgba(249, 115, 22, .14), transparent 55%),
    radial-gradient(40rem 40rem at 50% 120%, rgba(59, 130, 246, .12), transparent 60%),
    linear-gradient(180deg, #f6f8fe 0%, #eef2fb 100%);
  background-attachment: fixed;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.wrap.narrow { max-width: 560px; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.15rem; margin: 0 0 16px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0 0 12px; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--primary); margin: 0 0 10px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Glass card ---------- */
.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-bottom: 20px;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 560px) { .card { padding: 20px; } }

/* ---------- Hero (landing) ---------- */
.hero { text-align: center; }
.avatar-ring {
  width: 116px; height: 116px; margin: 4px auto 18px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 210deg, var(--primary), #60a5fa, var(--accent), var(--primary));
  box-shadow: var(--shadow-lg);
}
.avatar-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; display: block;
}
.hero .status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  background: var(--surface-solid); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

/* ---------- Meeting-type list ---------- */
.types { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.type {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.type:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .4); text-decoration: none; }
.type .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--primary);
  background: var(--primary-050); border: 1px solid rgba(37, 99, 235, .12);
}
.type .ic svg { width: 22px; height: 22px; }
.type .body { flex: 1; min-width: 0; }
.type .title { font-weight: 600; color: var(--ink); }
.type .sub { font-size: .85rem; color: var(--muted); }
.type .go { color: var(--muted); display: grid; place-items: center; }
.type:hover .go { color: var(--primary); }

/* ---------- Buttons ---------- */
.button, button, input[type=submit] {
  --btn-bg: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  color: #fff; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-600) 100%);
  border: 0; border-radius: var(--r-sm); padding: 12px 20px; cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .55);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease, background .16s ease;
  min-height: 44px;
}
.button:hover, button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .6); text-decoration: none; }
.button:active, button:active { transform: translateY(0); }
.button.block, button.block { width: 100%; }
.button.secondary, button.secondary {
  background: var(--surface-solid); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover, button.secondary:hover { border-color: rgba(37, 99, 235, .4); box-shadow: var(--shadow-md); }
button.danger {
  background: #fff; color: var(--err); border: 1px solid #f3c6c6;
  box-shadow: none; padding: 8px 14px; font-size: .85rem; min-height: 38px;
}
button.danger:hover { background: var(--err-bg); box-shadow: none; }
.button.ghost { background: transparent; color: var(--primary); box-shadow: none; padding: 10px 14px; }

/* ---------- Forms ---------- */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=time], input[type=date],
input[type=number], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 150px; }
.field-hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); vertical-align: -3px; margin-right: 6px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Slot picker ---------- */
.day { margin-bottom: 22px; }
.day h3 { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.day h3 .date-chip { font-size: .72rem; font-weight: 600; color: var(--primary); background: var(--primary-050); padding: 2px 9px; border-radius: 999px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.slot {
  background: var(--surface-solid); border: 1px solid rgba(37, 99, 235, .35); color: var(--primary);
  padding: 11px 8px; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm); min-height: 44px;
}
.slot:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ---------- Verify code ---------- */
.code-input {
  font-size: 1.7rem; letter-spacing: .55em; text-align: center; font-weight: 600;
  padding-left: .55em;
}
.icon-badge {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  margin: 0 auto 16px; color: #fff; box-shadow: var(--shadow-md);
}
.icon-badge svg { width: 30px; height: 30px; }
.icon-badge.brand { background: linear-gradient(180deg, var(--primary), var(--primary-600)); }
.icon-badge.success { background: linear-gradient(180deg, #10b981, #059669); }

/* ---------- Notices ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: var(--r-md); margin-bottom: 18px; font-size: .9rem;
  border: 1px solid transparent;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(5, 150, 105, .2); }
.notice.err { background: var(--err-bg); color: var(--err); border-color: rgba(220, 38, 38, .2); }
.notice.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(180, 83, 9, .2); }

/* ---------- Summary line (meeting details) ---------- */
.summary { display: grid; gap: 10px; margin: 18px 0; }
.summary .item { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .95rem; }
.summary .item svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.summary .item b { color: var(--ink); font-weight: 600; }

/* ---------- Admin ---------- */
.topnav {
  display: flex; align-items: center; gap: 6px; margin-bottom: 22px; flex-wrap: wrap;
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 7px 10px; box-shadow: var(--shadow-sm);
}
.topnav a { color: var(--ink-soft); font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 999px; }
.topnav a:hover { background: var(--primary-050); color: var(--primary); text-decoration: none; }
.topnav a.active { background: var(--primary); color: #fff; }
.topnav .spacer { flex: 1; }
.topnav a.signout { color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.on { background: var(--ok-bg); color: var(--ok); }
.pill.off { background: #f1f5f9; color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.mt-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; background: var(--surface-solid); }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* provider row on calendars page */
.provider { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-solid); margin-bottom: 12px; }
.provider .logo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-050); color: var(--primary); flex: none; }
.provider .logo svg { width: 22px; height: 22px; }
.provider .meta { flex: 1; min-width: 0; }
.provider .meta .name { font-weight: 600; }
.provider .meta .email { font-size: .82rem; color: var(--muted); }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.back-link:hover { color: var(--primary); text-decoration: none; }
.back-link svg { width: 15px; height: 15px; }

/* ---------- Brand lockup ---------- */
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-soft); letter-spacing: -.01em; }
.brand-lockup:hover { text-decoration: none; color: var(--primary); }
.brand-lockup img { display: block; }
.brand-lockup.big { font-size: 1.15rem; color: var(--ink); }
.topnav .nav-logo { padding: 4px 6px; margin-right: 2px; }
.topnav .nav-logo:hover { background: transparent; }
.topnav .nav-logo img { display: block; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 8px 20px 34px; }
.foot .brand-lockup { color: var(--muted); font-size: .82rem; }
.foot .brand-lockup:hover { color: var(--primary); }

/* ---------- Motion & responsive ---------- */
.rise { animation: rise .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
