/* prayer-warrior.css — Prayer Warrior sign-in + dashboard (Together look). */

/* ---------- sign in ---------- */
.pw-signin-wrap { padding-top: 48px; }
.pw-signin {
  max-width: 980px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start;
}
.pw-signin-card {
  background: rgba(34,26,21,0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 34px; box-shadow: 0 40px 90px -50px rgba(0,0,0,0.8);
  display: flex; flex-direction: column; gap: 16px;
}
.pw-signin-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; margin: 0 0 6px; }
.pw-signin-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.pw-signin-foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.pw-signin-foot a:hover { text-decoration: underline; }

.pw-rules {
  background: rgba(28,21,17,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 30px;
}
.pw-rules-h { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 0 0 18px; }
.pw-rules-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 18px; }
.pw-rules-list li { display: flex; gap: 13px; }
.pw-rules-mark { width: 12px; height: 12px; border-radius: 50% 50% 50% 3px; background: var(--accent2); transform: rotate(-8deg); margin-top: 5px; flex: none; }
.pw-rules-list strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.pw-rules-list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pw-privacy { color: var(--muted); font-size: 13px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- dashboard ---------- */
.pw-dash { padding: 48px 0 90px; position: relative; }
.pw-dash::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 360px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 0%, rgba(12,8,5,0.7), transparent 70%);
}
.pw-dash .lp-container { position: relative; z-index: 1; }

.pw-dash-head {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
  margin-bottom: 44px;
}
.pw-h1 { text-align: left; font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.pw-lead { text-align: left; margin: 0; font-size: 17px; }

.pw-dash-stats {
  background: rgba(34,26,21,0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 24px 26px;
}
.pw-slots-dots { display: flex; gap: 9px; margin-bottom: 12px; }
.pw-slot { flex: 1; height: 10px; border-radius: 6px; background: rgba(20,15,12,0.6); border: 1px solid var(--line); transition: background .25s ease, box-shadow .25s ease; }
.pw-slot.is-filled { background: linear-gradient(120deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 0 14px -3px var(--glow); }
.pw-slots-label { font-size: 15px; color: var(--muted); }
.pw-slots-label strong { font-family: var(--font-head); font-size: 20px; color: var(--accent2); }

.pw-stat-row { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pw-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pw-stat-num { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-stat:last-child .pw-stat-num { font-size: 16px; color: var(--accent2); }
.pw-stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* status toggle */
.pw-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  margin-top: 18px; padding: 14px 16px; cursor: pointer;
  background: rgba(20,15,12,0.5); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); text-align: left;
  transition: border-color .2s ease, background .2s ease;
}
.pw-toggle.is-on { border-color: rgba(111,191,134,0.4); background: rgba(111,191,134,0.08); }
.pw-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.pw-toggle-label { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.pw-toggle-sub { font-size: 12.5px; color: var(--muted); }
.pw-toggle.is-on .pw-toggle-sub { color: #6fbf86; }
.pw-toggle-track { width: 50px; height: 28px; border-radius: 999px; background: rgba(255,255,255,0.12); position: relative; flex: none; transition: background .22s ease; }
.pw-toggle.is-on .pw-toggle-track { background: #6fbf86; }
.pw-toggle-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.4); transition: transform .22s cubic-bezier(.3,1.3,.5,1); }
.pw-toggle.is-on .pw-toggle-knob { transform: translateX(22px); }

/* paused panel */
.pw-paused {
  display: flex; align-items: center; gap: 18px;
  background: rgba(28,21,17,0.62); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.pw-paused-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; background: rgba(255,255,255,0.06); border: 1.5px solid var(--muted); position: relative; }
.pw-paused-mark::before, .pw-paused-mark::after { content: ""; position: absolute; top: 12px; width: 4px; height: 16px; border-radius: 2px; background: var(--muted); }
.pw-paused-mark::before { left: 14px; }
.pw-paused-mark::after { right: 14px; }
.pw-paused-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pw-paused-text strong { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.pw-paused-text span { color: var(--muted); font-size: 14.5px; }
.pw-paused .lp-btn { flex: none; }

/* sections */
.pw-section { margin-bottom: 50px; }
.pw-section-head { margin-bottom: 22px; }
.pw-section-title { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pw-dash-greet .lp-eyebrow { white-space: nowrap; }
.pw-count { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.pw-section-sub { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }

.pw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* request card */
.pw-card {
  background: rgba(34,26,21,0.8); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pw-card:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -38px rgba(0,0,0,0.8); }
.pw-card.is-mine { border-color: rgba(236,176,90,0.28); background: rgba(40,30,23,0.82); }
.pw-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pw-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pw-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), var(--accent2)); }
.pw-avatar-glyph { width: 15px; height: 15px; border-radius: 50% 50% 50% 4px; background: rgba(26,15,10,0.92); transform: rotate(-8deg); }
.pw-lock { display: inline-block; width: 9px; height: 8px; border-radius: 2px; background: var(--muted); position: relative; margin-right: 5px; vertical-align: -1px; }
.pw-lock::before { content: ""; position: absolute; left: 1.5px; top: -4px; width: 6px; height: 6px; border: 1.5px solid var(--muted); border-bottom: none; border-radius: 4px 4px 0 0; }
.pw-id-text { display: block; min-width: 0; }
.pw-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-loc { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.pw-cat { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.pw-text { font-family: var(--font-head); font-size: 17px; line-height: 1.5; margin: 0; color: var(--ink); text-wrap: pretty; }

.pw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.pw-praying { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pw-days { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent2); background: rgba(236,176,90,0.12); padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.pw-days.is-low { color: #e8916a; background: rgba(216,105,74,0.14); }
.pw-days-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pw-card .lp-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pw-card .lp-btn[disabled]:hover { transform: none; }

/* empty + banner */
.pw-empty {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  background: rgba(28,21,17,0.55); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 30px; color: var(--muted); font-size: 16px; text-align: center;
}
.pw-empty-mark { width: 16px; height: 16px; border-radius: 50% 50% 50% 4px; background: var(--accent-soft); border: 1px solid var(--accent); transform: rotate(-8deg); flex: none; }

.pw-banner {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(120deg, rgba(236,176,90,0.14), rgba(210,105,74,0.10));
  border: 1px solid rgba(236,176,90,0.32); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 20px;
}
.pw-banner strong { font-size: 16px; color: var(--ink); }
.pw-banner span { color: var(--muted); font-size: 14.5px; }

/* toast */
.pw-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 11px; z-index: 100;
  background: rgba(40,30,23,0.96); backdrop-filter: blur(8px);
  border: 1px solid rgba(236,176,90,0.4); border-radius: 999px;
  padding: 13px 22px; color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.85);
  animation: pw-toast-in .35s cubic-bezier(.2,1.2,.4,1) both;
  max-width: 92vw;
}
@keyframes pw-toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.pw-toast-mark { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--accent); position: relative; }
.pw-toast-mark::after { content: ""; position: absolute; left: 6px; top: 4px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(42deg); }

/* responsive */
@media (max-width: 860px) {
  .pw-signin, .pw-dash-head, .pw-grid { grid-template-columns: 1fr; }
  .pw-h1, .pw-lead { text-align: left; }
}
