/* ================= Scientific Logo Meditation — styles ================= */
:root {
  --green:   #2f8f5b;
  --green-d: #1f6b42;
  --sky1:    #dff3ff;
  --sky2:    #eafbf1;
  --sand:    #f6efe3;
  --ink:     #24352c;
  --muted:   #6b7d72;
  --card:    #ffffff;
  --gold:    #e6a92b;
  --shadow:  0 12px 40px rgba(31,107,66,.15);
  --radius:  22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 45%, var(--sand) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 48px;
}

.wrap { width: 100%; max-width: 440px; }

.brand {
  text-align: center;
  margin-bottom: 14px;
}
.brand .logo {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-d); font-weight: 700;
}
.brand h1 { margin: 4px 0 0; font-size: 22px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

/* ---------- Login ---------- */
.login-card h2 { margin: 0 0 4px; font-size: 20px; }
.login-card p.sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
input[type=text], input[type=tel], input[type=password] {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: 1.5px solid #dfe7e1; border-radius: 14px; background: #fbfdfb;
  outline: none; transition: border-color .15s;
}
input:focus { border-color: var(--green); }

.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  padding: 16px; font-size: 17px; font-weight: 700; border-radius: 16px;
  background: var(--green); color: #fff; margin-top: 20px;
  box-shadow: 0 8px 20px rgba(47,143,91,.32); transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.secondary { background: #eef3f0; color: var(--green-d); box-shadow: none; }

.error { background: #fdecec; color: #b23b3b; padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-top: 14px; }

/* ---------- Dashboard ---------- */
.hello { text-align: center; margin-bottom: 6px; }
.hello .name { font-size: 20px; font-weight: 700; }
.hello .day  { color: var(--muted); font-size: 14px; }

.scene {
  position: relative;
  background: linear-gradient(180deg, #d7f0ff 0%, #eafaf0 60%, #f3ead6 100%);
  border-radius: 20px; overflow: hidden; margin: 6px 0 4px;
}
.scene svg { display: block; width: 100%; height: auto; }
.sun { position:absolute; top:16px; right:22px; width:44px; height:44px; border-radius:50%;
  background: radial-gradient(circle, #ffe58a, #ffd24d); box-shadow: 0 0 34px 10px rgba(255,214,77,.5); }

.pct-badge {
  position:absolute; left:16px; top:16px; background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px); border-radius: 999px; padding: 6px 13px;
  font-weight: 800; color: var(--green-d); font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* stats row */
.stats { display: flex; gap: 10px; margin: 14px 0 4px; }
.stat {
  flex: 1; background: #f4f9f6; border-radius: 16px; padding: 13px 8px; text-align: center;
}
.stat .num { font-size: 24px; font-weight: 800; color: var(--green-d); line-height: 1; }
.stat .lbl { font-size: 11.5px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .04em; }
.stat .num .fire { font-size: 18px; }

/* progress bar */
.pbar { height: 12px; background: #e8efe9; border-radius: 999px; overflow: hidden; margin: 16px 0 6px; }
.pbar > i { display:block; height:100%; background: linear-gradient(90deg, #59c184, var(--green)); border-radius:999px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.pbar-label { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); }

/* big check-in button */
.checkin-btn {
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; border:none; cursor:pointer; margin-top:18px;
  padding:20px; font-size:19px; font-weight:800; border-radius:18px;
  background: linear-gradient(135deg, #34a06a, #1f6b42); color:#fff;
  box-shadow: 0 12px 26px rgba(31,107,66,.36); transition: transform .1s;
}
.checkin-btn:active { transform: scale(.97); }
.checkin-btn .ico { font-size: 22px; }

.done-banner {
  margin-top:18px; text-align:center; padding:18px; border-radius:18px;
  background: linear-gradient(135deg,#eafaf0,#f3f9d9); border:1.5px solid #cdeacf;
}
.done-banner .big { font-size:19px; font-weight:800; color:var(--green-d); }
.done-banner .small { font-size:13.5px; color:var(--muted); margin-top:4px; }

.complete-banner { background: linear-gradient(135deg,#fff6dd,#ffeec0); border-color:#f0d38a; }
.complete-banner .big { color: #b9820f; }

/* progress headline */
.headline { text-align:center; margin: 4px 0 12px; }
.headline .big { font-size: 19px; font-weight: 800; color: var(--green-d); }
.headline .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* audio clip card (common for all users) */
.audio-card { display:flex; align-items:center; gap:14px; margin-top:16px;
  background: linear-gradient(135deg,#eef6ff,#eafaf0); border:1.5px solid #d5e8f5;
  border-radius:18px; padding:16px; }
.audio-card .ic { font-size:30px; line-height:1; }
.audio-card .txt { flex:1; }
.audio-card .txt b { font-size:15px; }
.audio-card .txt small { display:block; color:var(--muted); font-size:12.5px; margin-top:2px; }
.audio-card audio { width:100%; margin-top:12px; }
.audio-wrap { margin-top:16px; }

/* why-meditation disclaimer — highlighted card */
.why { margin-top:16px; border-radius:18px; box-shadow: var(--shadow); overflow:hidden;
  background: linear-gradient(135deg,#f1fbf4,#eef6ff);
  border:1.5px solid #bfe3cd; border-left:5px solid var(--green-d); }
.why summary { list-style:none; cursor:pointer; padding:16px 18px; font-weight:800; font-size:15.5px;
  letter-spacing:.2px; color:var(--green-d);
  display:flex; justify-content:space-between; align-items:center; }
.why summary::-webkit-details-marker { display:none; }
.why summary .chev { transition: transform .2s; color:var(--muted); }
.why[open] summary .chev { transform: rotate(90deg); }
.why .body { padding: 0 18px 18px; }
.why .body p { font-size:14px; color:var(--ink); margin:0 0 12px; line-height:1.55; }
.why ul { margin:0; padding-left:20px; }
.why li { font-size:13.5px; color:var(--ink); margin-bottom:8px; line-height:1.5; }
.why .tag { display:inline-block; background:#fff; color:#2b6cb0; font-size:11px; font-weight:700;
  padding:3px 10px; border-radius:999px; margin-bottom:12px; border:1px solid #d5e8f5; }
.why .note { margin-bottom:0; color:var(--muted); font-size:12.5px;
  background:rgba(255,255,255,.7); border-radius:12px; padding:10px 12px; }

.foot { text-align:center; margin-top:22px; }
.foot a { color: var(--muted); font-size: 13px; text-decoration: none; }

/* ---------- Tree growth ---------- */
.tree { transform-box: view-box; transform-origin: 160px 300px;
  transform: scale(var(--grow, .15)); transition: transform 1.6s cubic-bezier(.16,.84,.28,1); }
.sway { transform-box: view-box; transform-origin: 160px 296px; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%,100%{ transform: rotate(-1.4deg);} 50%{ transform: rotate(1.4deg);} }

.leaf, .flower, .fruit {
  transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(.2); transition: opacity .7s ease, transform .7s cubic-bezier(.2,1.4,.4,1);
}
.leaf.on, .flower.on, .fruit.on { opacity: 1; transform: scale(1); }

/* celebration pulse */
@keyframes pop { 0%{transform:scale(1);} 40%{transform:scale(1.06);} 100%{transform:scale(1);} }
.celebrate .tree { animation: pop 1s ease; }

/* confetti */
.confetti { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.confetti i { position:absolute; top:-12px; width:9px; height:14px; border-radius:2px; opacity:.9;
  animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(360px) rotate(540deg); opacity: 0; } }

/* ---------- Admin ---------- */
.admin-body { max-width: 1000px; }
table.grid { width:100%; border-collapse: collapse; background:#fff; border-radius:16px; overflow:hidden; box-shadow: var(--shadow); }
table.grid th, table.grid td { padding: 12px 14px; text-align:left; font-size:14px; border-bottom:1px solid #eef2ef; }
table.grid th { background:#f4f9f6; color:var(--green-d); font-size:12px; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; }
table.grid tr:last-child td { border-bottom:none; }
.mini-bar { height:8px; background:#e8efe9; border-radius:999px; overflow:hidden; width:110px; }
.mini-bar > i { display:block; height:100%; background:linear-gradient(90deg,#59c184,var(--green)); }
.pill { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.pill.active { background:#e6f6ec; color:var(--green-d); }
.pill.warn   { background:#fdf1dd; color:#b9820f; }
.pill.cold   { background:#fbe9e9; color:#b23b3b; }
.pill.done   { background:#fff3cf; color:#a9760a; }
.summary { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.summary .box { flex:1; min-width:120px; background:#fff; border-radius:16px; padding:16px; box-shadow:var(--shadow); text-align:center; }
.summary .box .n { font-size:26px; font-weight:800; color:var(--green-d); }
.summary .box .l { font-size:12px; color:var(--muted); margin-top:4px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.topbar h1 { font-size:20px; margin:0; }
.search { padding:10px 14px; border:1.5px solid #dfe7e1; border-radius:12px; font-size:14px; width:220px; max-width:50vw; }



/* ================= v5 — Logo · Audio · Aaj ka Record · History ================= */

.flash-ok { background:#d7f2e0; color:#1c7a48; padding:12px 14px; border-radius:12px;
  font-size:14px; margin-bottom:14px; text-align:center; font-weight:700; }

/* ---- customer ka logo (audio ke bilkul upar) ---- */
.cust-logo { margin-top:16px; padding:18px 14px 12px; text-align:center;
  background:#fff; border-radius:18px; box-shadow:var(--shadow); }
.cust-logo img { width:100%; max-width:300px; max-height:170px; object-fit:contain;
  display:block; margin:0 auto; }
.cust-logo .change { display:inline-block; margin-top:10px; font-size:12.5px; color:var(--muted);
  text-decoration:none; border-bottom:1px dotted var(--muted); }

/* jump button */
.jump-btn { display:flex; align-items:center; justify-content:center; gap:10px;
  margin-top:18px; padding:18px; border-radius:18px; text-decoration:none;
  font-size:18px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,#34a06a,#1f6b42); box-shadow:0 12px 26px rgba(31,107,66,.34); }
.jump-btn .ico { font-size:20px; }

/* ---- section heading (record + history) ---- */
.sig-head { display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid #eef3f0; }
.sig-head b { font-size:16.5px; color:var(--green-d); }
.sig-head small { color:var(--muted); font-size:12.5px; }

/* ---- player (fast-forward band) ---- */
.player { margin-top:14px; background:#fff; border-radius:14px; padding:14px; border:1px solid #dbe9f2; }
.player .ctrl { display:flex; align-items:center; gap:12px; }
.player .play { width:46px; height:46px; flex:none; border:none; cursor:pointer; border-radius:50%;
  background:linear-gradient(135deg,#34a06a,#1f6b42); color:#fff; font-size:16px;
  box-shadow:0 6px 16px rgba(31,107,66,.3); }
.player .play:active { transform:scale(.95); }
.player .bar { flex:1; height:9px; background:#e8efe9; border-radius:999px; overflow:hidden; }
.player .bar > i { display:block; height:100%; width:0;
  background:linear-gradient(90deg,#59c184,var(--green)); border-radius:999px; }
.player .time { font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; flex:none; }
.player .lock-note { margin-top:10px; font-size:12px; color:var(--muted);
  background:#f7fcf9; border-radius:10px; padding:8px 10px; }
.player .lock-note.ok { background:#d7f2e0; color:#1c7a48; font-weight:700; }

/* ---- "meditation suni" status (apne aap tick hota hai) ---- */
.tick-status { display:flex; align-items:center; gap:12px; margin:0 0 4px;
  background:#f7fcf9; border:1.5px solid #dceae2; border-radius:14px; padding:14px; }
.tick-status .box { width:30px; height:30px; border-radius:9px; flex:none; background:#fff;
  border:2px solid #bcd9c8; display:flex; align-items:center; justify-content:center; font-size:15px; }
.tick-status.done { background:#d7f2e0; border-color:#a8ddbe; }
.tick-status.done .box { background:var(--green); border-color:var(--green); color:#fff; font-weight:800; }
.tick-status .txt b { display:block; font-size:14.5px; color:var(--ink); font-weight:700; }
.tick-status .txt small { display:block; font-size:12px; color:var(--muted); margin-top:2px; }

.checkin-btn:disabled { background:#dfe7e2; color:#9db0a6; box-shadow:none; cursor:not-allowed; }
.gate-note { text-align:center; font-size:12px; color:var(--muted); margin-top:8px; }

/* ---- upload box ---- */
.uploader { display:block; position:relative; text-align:center; cursor:pointer;
  border:2px dashed #bcd9c8; border-radius:14px; background:#f7fcf9;
  padding:18px 14px; margin:12px 0 0; transition:border-color .2s, background .2s; }
.uploader:hover { border-color:var(--green); background:#f1faf5; }
.uploader .ic { display:block; font-size:26px; line-height:1; }
.uploader .t  { display:block; font-weight:700; font-size:14.5px; margin-top:6px; color:var(--green-d); }
.uploader .s  { display:block; font-size:12px; color:var(--muted); margin-top:3px; }
.uploader input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.uploader .picked { display:block; font-size:12.5px; color:var(--green); font-weight:700; margin-top:8px; }

.remark { width:100%; margin-top:12px; padding:13px 14px; font-size:14.5px; font-family:inherit;
  border:1.5px solid #dfe7e1; border-radius:14px; background:#fbfdfb; resize:vertical; outline:none; }
.remark:focus { border-color:var(--green); }

/* logo screen preview */
.logo-preview { text-align:center; background:#f7fcf9; border-radius:16px; padding:16px;
  margin-bottom:8px; border:1px solid #e4ece7; }
.logo-preview img { width:100%; max-width:280px; max-height:160px; object-fit:contain; }

/* ---- bhara hua record ---- */
.rec-done .rec-line { display:flex; align-items:center; gap:10px; font-size:14.5px;
  color:var(--ink); margin-bottom:9px; }
.rec-done .ic { width:24px; height:24px; border-radius:50%; flex:none; color:#fff;
  font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.rec-done .ic.yes { background:var(--green); }
.rec-done .ic.no  { background:#d98b86; }
.rec-sig { width:100%; max-height:150px; object-fit:contain; border:1px solid #e4ece7;
  border-radius:12px; background:#fff; padding:6px; margin-top:6px; }
.rec-remark { margin-top:10px; font-size:13.5px; color:var(--muted); font-style:italic;
  background:#f7fcf9; border-radius:12px; padding:10px 12px; }
.rec-edit { display:inline-block; margin-top:12px; font-size:12.5px; color:var(--muted);
  text-decoration:none; border-bottom:1px dotted var(--muted); }

/* ---- history list ---- */
.hist-card { margin-top:16px; }
.hist-list { display:flex; flex-direction:column; }
.hist-row { display:grid; grid-template-columns:52px 54px auto 1fr; align-items:center; gap:10px;
  padding:9px 0; border-bottom:1px solid #f1f5f3; }
.hist-row:last-child { border-bottom:0; }
.hist-row .d { font-size:12.5px; font-weight:700; color:var(--green-d); }
.hist-row .thumb { width:54px; height:34px; background:#fff; border:1px solid #eef3f0;
  border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hist-row .thumb img { width:100%; height:100%; object-fit:contain; }
.hist-row .thumb .dash { color:#c8d5ce; font-size:13px; }
.hist-row .marks { display:flex; gap:5px; }
.hist-row .m { font-size:13px; width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; }
.hist-row .m.yes { background:#d7f2e0; }
.hist-row .m.no  { background:#f1f3f2; filter:grayscale(1); opacity:.45; }
.hist-row .rm { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* audio */
.audio-card { margin-top:16px; }
.audio-missing { margin-top:12px; font-size:12.5px; color:var(--muted);
  background:rgba(255,255,255,.7); border-radius:10px; padding:9px 11px; }

/* ---- admin ---- */
.logo-thumb { width:52px; height:34px; object-fit:contain; border-radius:6px; background:#fff; }
.no-logo { color:#b9c6bf; font-size:12px; }
.cust-link { color:var(--green-d); font-weight:600; text-decoration:none; }
.cust-link:hover { text-decoration:underline; }
.mark-yes { color:var(--green); font-weight:700; }
.mark-no  { color:#c8d5ce; }

.cust-head { display:flex; gap:16px; align-items:center; background:#fff; border-radius:16px;
  padding:16px; box-shadow:var(--shadow); margin-bottom:16px; }
.cust-head-logo { width:150px; height:100px; object-fit:contain; background:#f7fcf9;
  border-radius:12px; flex:none; padding:8px; }
.cust-head-logo.no-logo { display:flex; align-items:center; justify-content:center; font-size:12px; }
.cust-head-info .line { font-size:13.5px; color:var(--ink); margin-bottom:4px; }

.sec-title { font-size:16px; color:var(--green-d); margin:22px 0 12px; }
.empty { color:var(--muted); font-size:14px; }
.rec-thumb { width:110px; height:64px; object-fit:contain; background:#fff;
  border:1px solid #eef3f0; border-radius:8px; }

/* ---------- PIN login (v6) ---------- */
.pin-box {
  letter-spacing: .55em; text-align: center; font-size: 24px !important;
  font-weight: 700; padding: 15px 12px !important;
}
.pin-box::placeholder { letter-spacing: .35em; font-weight: 400; color: #cbd8d0; }

.who-line {
  background: #f2f8f4; border: 1px solid #e0ece5; border-radius: 12px;
  padding: 10px 13px; font-size: 14px; color: var(--green-d); margin-bottom: 4px;
}
.pin-tip { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.alt-line { text-align: center; margin-top: 16px; }
.alt-line a { color: var(--muted); font-size: 13px; text-decoration: none; border-bottom: 1px dashed #cdd9d2; }

.foot-note { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- Signature optional ---------- */
.opt-tag {
  display: inline-block; vertical-align: 1px; margin-left: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #eef3f0; color: var(--muted); border-radius: 999px; padding: 2px 7px;
}
.uploader.optional { border-style: dashed; }
.rec-done .ic.skip { background: #c8d5ce; }
.rec-done .rec-line small { color: var(--muted); font-weight: 400; }
.mark-skip { color: var(--muted); font-size: 13px; }

/* ---------- Admin: PIN reset ---------- */
.pin-reset { margin-top: 10px; }
.pin-reset button {
  border: 1px solid #e3cfa8; background: #fdf6e7; color: #8a6a1d;
  font-size: 12.5px; font-weight: 700; padding: 7px 12px;
  border-radius: 10px; cursor: pointer;
}
.pin-reset button:hover { background: #f9edd3; }
