/* LaundryPro shared look: dark navy glass, mint accent. Used by the login, register, dashboard and staff pages. */
:root {
  --bg-1: #0a0e1c; --bg-2: #171f38;
  --glass: rgba(255,255,255,0.055); --glass-2: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.12);
  --ink: #f6f7fb; --ink-2: rgba(246,247,251,0.68); --ink-3: rgba(246,247,251,0.45);
  --mint: #59e3a6; --sky: #6fb8ff; --coral: #ff6f61; --butter: #ffd666; --lilac: #b79cff;
  --accent: var(--mint);
  --radius: 18px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  background:
    radial-gradient(ellipse 120% 60% at 15% -5%, #22305c 0%, transparent 60%),
    radial-gradient(ellipse 90% 50% at 100% 10%, #2a1f4d 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%, var(--bg-1));
  background-attachment: fixed; background-color: var(--bg-1);
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---- login / register layout ---- */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 48px 20px 32px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--mint), var(--sky)); display: flex; align-items: center; justify-content: center; }
.title { font-size: 32px; line-height: 1.1; font-weight: 700; }
.lead { margin: 6px 0 0; color: var(--ink-2); }
.seg { display: flex; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.seg a { flex: 1; text-align: center; padding: 11px 0; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.seg a.active { background: rgba(255,255,255,0.14); color: var(--ink); font-weight: 600; }
.seg a:hover { text-decoration: none; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.spacer { flex-grow: 1; }
.center { text-align: center; }
.small { font-size: 13px; color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=tel], .field input[type=number], .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06); color: var(--ink); font-family: var(--font-body); font-size: 16px; outline: none;
}
.field select option { color: #111; }
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus { border-color: var(--mint); background: rgba(255,255,255,0.09); }
.field .hint { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.input-row { position: relative; }
.input-row input { padding-right: 64px; }
.toggle-pw { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--sky); font-size: 13px; font-weight: 600; cursor: pointer; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--mint); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 26px; border: 1px solid transparent; font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--mint), var(--sky)); color: #0a0e1c; width: 100%; min-height: 52px; }
.btn-primary:disabled { opacity: 0.6; pointer-events: none; }
.btn-ghost { background: var(--glass-2); border-color: var(--line); color: var(--ink); }
.btn-danger { background: rgba(255,111,97,0.16); border-color: rgba(255,111,97,0.4); color: var(--coral); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }

.alert { padding: 12px 14px; border-radius: 14px; font-size: 14px; border: 1px solid var(--line); }
.alert.error { background: rgba(255,111,97,0.14); border-color: rgba(255,111,97,0.4); color: #ffd1cc; }
.alert.success { background: rgba(89,227,166,0.14); border-color: rgba(89,227,166,0.4); color: #c8f7e2; }
.alert.info { background: rgba(111,184,255,0.14); border-color: rgba(111,184,255,0.4); color: #cfe6ff; }
.alert.warn { background: rgba(255,214,102,0.14); border-color: rgba(255,214,102,0.4); color: #ffeab0; }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; }

/* ---- app pages (dashboard, staff) ---- */
.app-wrap { max-width: 920px; margin: 0 auto; padding: 18px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar .who { flex: 1; min-width: 0; }
.topbar .biz { font-family: var(--font-head); font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(89,227,166,0.16); color: var(--mint); }
.chip.warn { background: rgba(255,214,102,0.16); color: var(--butter); }
.chip.bad { background: rgba(255,111,97,0.16); color: var(--coral); }
.chip.mute { background: var(--glass-2); color: var(--ink-2); }
.section-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 4px 2px -6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.stat .n { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat .l { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 92px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.tile:hover { background: var(--glass-2); text-decoration: none; }
.tile b { font-family: var(--font-head); font-size: 16px; }
.tile span { font-size: 12.5px; color: var(--ink-2); }
.tile.off { opacity: 0.5; pointer-events: none; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-3); flex-shrink: 0; }
.dot.done { background: var(--mint); border-color: var(--mint); }

.list { display: flex; flex-direction: column; gap: 10px; }
.person { padding: 14px 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.person .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.person .name { font-weight: 700; font-size: 16px; flex: 1; min-width: 140px; overflow-wrap: anywhere; }
.person .meta { font-size: 12.5px; color: var(--ink-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
details.more > summary { cursor: pointer; font-size: 13px; color: var(--sky); font-weight: 600; list-style: none; min-height: 32px; display: flex; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pin-reveal { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 0.3em; font-weight: 700; }

@media (max-width: 380px) { .title { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* extra form controls used by settings, prices and the log pages */
.field textarea, .field input[type=search], .field input[type=date], .field input[type=file] {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; font: inherit; font-size: 16px;
  color: var(--ink, #fff); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); outline: none;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input[type=color] { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); cursor: pointer; }
.field input[type=text]:disabled, .field input[type=tel]:disabled, .field input[type=number]:disabled, .field textarea:disabled { opacity: 0.6; }
.field textarea:focus, .field input[type=search]:focus, .field input[type=date]:focus { border-color: var(--mint); background: rgba(255,255,255,0.09); }
.field select { width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.log-row { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 0; }
.log-row:last-child { border-bottom: 0; }
.log-row pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--ink-2); }
