/* Rufbereit · Liquid Glass on Aurora. Loaded after styles.css (and app.css) on every page.
   Frosted panels float over soft lilac/peach/mint light; violet is the only accent. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist/geist-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist/geist-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist/geist-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist/geist-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F6F4FD;
  --surface: rgba(255, 255, 255, .62);
  --ink: #16141F;
  --ink-2: #4D4A5C;
  --muted: #827F95;
  --line: rgba(22, 20, 31, .09);
  --soft: rgba(110, 79, 240, .07);
  --deep: #16141F;
  --pop: #6E4FF0;
  --pop-soft: #EEE9FF;
  --accent: #6E4FF0;
  --accent-ink: #5A3BE0;
  --radius: 20px;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .8);
  --blur: blur(22px) saturate(1.6);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(22, 20, 31, .04), 0 14px 34px -14px rgba(60, 40, 140, .22);
}

body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 88% 6%, #DCCFFF 0%, transparent 70%),
    radial-gradient(38% 40% at 8% 92%, #CDF2E7 0%, transparent 70%),
    radial-gradient(34% 38% at 60% 70%, #FFE0D3 0%, transparent 70%),
    var(--bg);
}
h1, h2, h3 { letter-spacing: -.03em; }

/* glass surfaces */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* buttons */
.btn { border-radius: 999px; background: var(--ink); padding: 11px 20px; }
.btn:hover { background: #2B2839; }
.btn.pop { background: var(--accent); box-shadow: 0 10px 24px -10px rgba(110, 79, 240, .7); }
.btn.pop:hover { background: var(--accent-ink); }
.btn.ghost { background: var(--glass-strong); border: 1px solid var(--glass-edge); color: var(--ink); box-shadow: inset 0 1px 0 #fff; }
.btn.ghost:hover { background: #fff; }
.btn.small { border-radius: 999px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label { color: var(--accent-ink); font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; }
.badge { background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-edge); }
.badge.pop { background: var(--pop-soft); color: var(--accent-ink); border-color: transparent; }

/* form fields */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 12px;
}
input:focus, select:focus, textarea:focus { border-color: rgba(110, 79, 240, .55); box-shadow: 0 0 0 4px rgba(110, 79, 240, .14); background: #fff; }
.check input { accent-color: var(--accent); }

/* pager logo mark, replaces the old dot logo everywhere */
.logo { font-weight: 700; letter-spacing: -.035em; }
.logo i { width: 30px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; display: block; box-shadow: none; }
.logo i::before { content: ''; position: absolute; left: 4px; top: 5px; width: 13px; height: 12px; border-radius: 3px; background: #EEE8FF; }
.logo i::after { content: ''; position: absolute; right: 4px; top: 7.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(110, 79, 240, .3); }

.toast { background: rgba(22, 20, 31, .86); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 999px; padding: 11px 18px; }

/* ---------- owner app + admin shell ---------- */
.shell { gap: 0; }
.side {
  margin: 14px 0 14px 14px; height: calc(100vh - 28px); top: 14px; border: 1px solid var(--glass-edge); border-radius: 24px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow);
}
.side .biz { background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-edge); border-radius: 16px; }
.side nav a { border-radius: 12px; }
.side nav a:hover { background: rgba(255, 255, 255, .7); }
.side nav a.on { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(22, 20, 31, .6); }
.count { background: var(--accent); }
.usage { border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, .5); border-radius: 16px; }
.bar { background: rgba(110, 79, 240, .12); }
.bar i { background: linear-gradient(90deg, var(--accent), #A48BFF); }
main { padding-top: 36px; }
.page-head h1 { font-size: 28px; }
.tabs button { background: var(--glass-strong); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.tabs button.on { background: var(--ink); border-color: var(--ink); }
.item { border-radius: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.item:hover { border-color: var(--glass-edge); transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 18px 40px -16px rgba(60, 40, 140, .3); }
.bubble.assistant { background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-edge); }
.bubble.user { background: var(--accent); }
.mic { background: radial-gradient(circle at 38% 30%, #9C85FF 0%, var(--accent) 45%, #4B2FC4 100%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .45), 0 10px 24px -8px rgba(110, 79, 240, .8); }
@keyframes ring { 50% { box-shadow: 0 0 0 12px rgba(110, 79, 240, .16); } }
.save-bar { background: linear-gradient(transparent, rgba(246, 244, 253, .92) 35%); }
.code { background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-edge); }
.login form { border-radius: 26px; }

/* Lena on/off switch (sidebar) and the banner while she is off */
.lena-switch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid rgba(110, 79, 240, .35); background: rgba(238, 233, 255, .85); cursor: pointer; text-align: left; font: inherit; color: var(--ink); box-shadow: inset 0 1px 0 #fff; }
.lena-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lena-switch .track { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #2FBF71; position: relative; transition: background .2s ease; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); }
.lena-switch .knob { position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: left .2s ease; }
.lena-switch .txt { display: grid; min-width: 0; }
.lena-switch b { font-size: 14.5px; }
.lena-switch small { font-size: 12px; color: var(--muted); }
.lena-switch.off { background: rgba(255, 255, 255, .8); border-color: rgba(180, 35, 24, .35); }
.lena-switch.off .track { background: #C9C6D6; }
.lena-switch.off .knob { left: 3px; }
.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.off-banner { margin: 18px 36px 0; padding: 12px 16px; border-radius: 16px; background: #FDECEA; border: 1px solid rgba(180, 35, 24, .25); color: #7A1C14; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.off-banner .btn { background: var(--ink); }

@media (max-width: 900px) {
  .lena-switch { order: 2; width: auto; padding: 8px 12px; }
  .lena-switch small { display: none; }
  .off-banner { margin: 12px 16px 0; }
  .side { margin: 10px; height: auto; top: 10px; border-radius: 20px; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .side, .tabs button { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
