/* Quortek Pool: pool-owner portal (/my). Glass cards on a water background. Phone first. */
:root {
  --ink: #0b2236; --muted: #4d6578; --line: rgba(255,255,255,.55); --brand: #0369a1; --brand-2: #0ea5e9;
  --glass: rgba(255,255,255,.62); --glass-strong: rgba(255,255,255,.8);
  --ok: #15803d; --ok-bg: rgba(220,252,231,.85); --bad: #b91c1c; --bad-bg: rgba(254,226,226,.9); --warn: #a16207; --warn-bg: rgba(254,243,199,.9);
  --shadow: 0 10px 30px rgba(3,60,100,.14), inset 0 1px 0 rgba(255,255,255,.7);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #bae6fd 0, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, #a5f3fc 0, transparent 55%),
              linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 45%, #ecfeff 100%);
  background-repeat: no-repeat; }
body::before { content: ""; position: fixed; inset: auto 0 0 0; height: 220px; pointer-events: none; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220'%3E%3Cpath fill='%237dd3fc' fill-opacity='.35' d='M0 120c180-40 360-40 540 0s360 40 540 0 270-40 360-20v140H0z'/%3E%3Cpath fill='%2338bdf8' fill-opacity='.25' d='M0 160c200-30 400-30 600 0s400 30 600 0 160-20 240-10v80H0z'/%3E%3C/svg%3E") bottom/cover no-repeat; }
a { color: var(--brand); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.top .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--ink); flex: 1; min-width: 0; }
.top .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .tb { color: var(--ink); text-decoration: none; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 11px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
main { max-width: 980px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 28px; margin: 6px 4px 4px; letter-spacing: -.01em; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 4px 10px; }
.lead { color: var(--muted); margin: 0 4px 18px; }
.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pool { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pool:hover { transform: translateY(-3px) perspective(600px) rotateX(1.5deg); box-shadow: 0 18px 40px rgba(3,60,100,.2), inset 0 1px 0 rgba(255,255,255,.8); }
.pool::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(14,165,233,.25) 60%, transparent 70%); pointer-events: none; }
.pool h3 { margin: 0 0 2px; font-size: 19px; }
.sub { color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; margin: 10px 0 12px; }
.dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.7); }
.dot.green { background: #16a34a; } .dot.red { background: #dc2626; } .dot.grey { background: #94a3b8; } .dot.amber { background: #f59e0b; }
.kv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0; }
.kv div { background: rgba(255,255,255,.65); border-radius: 12px; padding: 8px 10px; text-align: center; }
.kv b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.kv b.ok { color: var(--ok); } .kv b.warn { color: var(--warn); }
.kv span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 12px; }
.row .grow { flex: 1; min-width: 0; }
.list { display: grid; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; text-decoration: none; color: inherit; }
.item:hover { background: rgba(255,255,255,.85); }
.item .grow { flex: 1; min-width: 0; }
.item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; background: #e0f2fe; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.gray { background: rgba(148,163,184,.25); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px;
  border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; box-shadow: 0 8px 20px rgba(3,105,161,.3); }
.btn.block { width: 100%; } .btn.light { background: rgba(255,255,255,.8); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 14px; }
input, select, textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #cfe3ee; background: rgba(255,255,255,.85);
  color: var(--ink); padding: 10px 14px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14,165,233,.35); border-color: var(--brand-2); }
textarea { min-height: 90px; }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 12px 14px; font-weight: 600; margin-bottom: 14px; }
.flash.bad { background: var(--bad-bg); color: var(--bad); }
.center { max-width: 440px; margin: 8vh auto 0; }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols { grid-template-columns: 1.4fr 1fr; } }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }
.empty { color: var(--muted); text-align: center; padding: 14px; }
.hide { display: none; }
@media (prefers-reduced-motion: reduce) { .pool, .pool:hover { transition: none; transform: none; } }
