:root {
  --bg: #0c0c0d;
  --surface: #171719;
  --ink: #f6f2e9;
  --muted: #b7afa3;
  --line: rgba(217, 164, 65, 0.34);
  --gold: #d9a441;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(217, 164, 65, 0.16), transparent 34%), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button:disabled { opacity: 0.58; }
.client-shell {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.client-hero {
  min-height: 270px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.24), rgba(5, 5, 6, 0.93)),
    url("silver-capilar-bg.jpeg") center / cover;
  box-shadow: var(--shadow);
}
.client-hero img {
  width: min(280px, 78vw);
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 36px; line-height: 1; }
h2 { margin-bottom: 12px; font-size: 22px; }
h3 { margin: 14px 0 8px; color: var(--gold); font-size: 13px; letter-spacing: 0; }
.client-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 23, 25, 0.94);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.client-folio {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.client-folio strong {
  color: var(--gold);
  letter-spacing: 0;
}
.panel-head strong { color: var(--gold); font-size: 22px; }
.client-services, .client-form, .stack { display: grid; gap: 10px; }
.client-service-dropdown {
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 8px;
  background: #101012;
}
.client-service-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.client-service-toggle span:first-child,
.client-service-toggle small { display: block; }
.client-service-toggle small { margin-top: 4px; color: var(--muted); }
.client-service-chevron { color: var(--gold); font-size: 24px; transition: transform 0.2s ease; }
.client-service-dropdown.is-open .client-service-chevron { transform: rotate(180deg); }
.client-service-menu {
  display: grid;
  gap: 14px;
  max-height: min(60vh, 560px);
  overflow-y: auto;
  padding: 12px;
  border-top: 1px solid rgba(217, 164, 65, 0.22);
}
.client-service-menu h3 { margin: 4px 0 8px; color: var(--gold); }
.client-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 8px;
  background: #101012;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.client-option.is-selected {
  border-color: rgba(217, 164, 65, 0.8);
  background: rgba(217, 164, 65, 0.12);
}
.client-check {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}
.client-option.is-selected .client-check {
  border-color: var(--gold);
  background: var(--gold);
}
.client-option.is-selected .client-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #101012;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.client-option span, .client-option small { display: block; }
.client-option small { margin-top: 3px; color: var(--muted); }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  background: #0f0f11;
  color: var(--ink);
}
.membership-use {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 8px;
  background: #101012;
  color: var(--ink);
}
.membership-use input { width: 22px; min-height: 22px; }
.membership-card { border-color: rgba(217, 164, 65, 0.5); }
.membership-card strong { color: var(--gold); }
.primary {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #101012;
  font-weight: 900;
}
.pay-link {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}
.ghost {
  min-height: 42px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}
.danger-btn {
  border-color: rgba(222, 111, 104, 0.55);
  color: #f0b1ac;
}
.client-request {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 8px;
  background: #101012;
}
.client-request span, .client-request small, .empty { color: var(--muted); }
.ticket-box {
  margin: 6px 0 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 8px;
  background: #0b0b0c;
  color: var(--ink);
  white-space: pre-wrap;
}
.review-box {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 164, 65, 0.22);
}
.review-form { display: grid; gap: 9px; }
.star-row { display: flex; gap: 4px; }
.star-btn {
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #6d665d;
  font-size: 30px;
  line-height: 1;
}
.star-btn.selected { color: var(--gold); }
.invite-card p:not(.eyebrow) { color: var(--muted); }
.detail-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.detail-dialog::backdrop { background: rgba(0, 0, 0, 0.76); }
.detail-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.detail-dialog-head h2 { margin: 0; }
.icon-btn { width: 44px; min-height: 42px; }
.detail-stack { display: grid; gap: 12px; }
.detail-stack p { margin: 0; color: var(--muted); }
.detail-stack strong { color: var(--ink); }
.detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 8px;
  background: #101012;
}
.detail-status strong { color: var(--gold); }
.detail-services {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.detail-services p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(217, 164, 65, 0.18);
  border-radius: 8px;
}
.payment-instructions {
  padding: 12px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 8px;
  background: rgba(217, 164, 65, 0.08);
}
.payment-instructions p { margin-top: 7px; }
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.membership-use {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 8px;
  background: rgba(217, 164, 65, 0.08);
}
.membership-use[hidden] { display: none; }
.membership-use select { width: 100%; }
.review-box small { color: var(--muted); }
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #101012;
  font-weight: 900;
  transition: 0.2s ease;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.membership-bank-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #101012;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}
.membership-card-title, .membership-card-grid { display: grid; gap: 14px; }
.membership-card-title { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.membership-card-title strong, .membership-card-grid strong, .membership-card-grid b { display: block; color: var(--gold); }
.membership-card-title small, .membership-card-grid small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 900; }
.membership-card-grid { grid-template-columns: minmax(0, 1fr) 112px; align-items: center; }
.membership-qr { width: 112px; padding: 6px; border-radius: 8px; background: #fff; }
@media (max-width: 420px) { .membership-card-grid { grid-template-columns: minmax(0, 1fr) 94px; } .membership-qr { width: 94px; } }

/* SilverBook Cliente 3.0 - estructura visual tipo app moderna */
.client-app {
  --bg: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.94);
  --ink: #1d2433;
  --muted: #7a8494;
  --line: rgba(142, 153, 171, 0.22);
  --gold: #8057e6;
  background: radial-gradient(circle at 16% 0%, rgba(64, 199, 247, 0.2), transparent 34%), radial-gradient(circle at 92% 14%, rgba(132, 86, 236, 0.18), transparent 30%), var(--bg);
  color: var(--ink);
}
.client-app .client-shell { width: min(780px, 100%); padding-bottom: 112px; }
.client-app .client-hero {
  position: relative;
  min-height: 390px;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(236,249,255,0.74) 54%, rgba(244,234,255,0.82)), linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.88)), url("silver-capilar-bg.jpeg") center / cover;
  color: #1c2140;
  box-shadow: 0 28px 80px rgba(31, 42, 68, 0.14);
  overflow: hidden;
}
.client-app .client-hero::after {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -92px;
  width: 280px;
  height: 280px;
  border-radius: 86px;
  background: linear-gradient(135deg, rgba(128, 87, 230, 0.14), rgba(40, 198, 246, 0.18));
  transform: rotate(18deg);
}
.client-app .client-hero > * { position: relative; z-index: 1; }
.client-app .client-hero img {
  width: min(250px, 74vw);
  border: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(31, 42, 68, 0.12);
}
.client-app h1 { max-width: 650px; font-size: clamp(38px, 10vw, 64px); letter-spacing: -0.055em; color: #1c2140; }
.client-app h2, .client-app h3 { letter-spacing: -0.025em; color: #1d2433; }
.client-app .eyebrow, .client-app h3, .client-app .panel-head strong, .client-app .client-folio strong { color: #8057e6; }
.client-app .client-card {
  border: 1px solid rgba(142, 153, 171, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(31, 42, 68, 0.08);
  color: #1d2433;
}
.client-app .client-service-dropdown, .client-app .client-option {
  border-color: rgba(142, 153, 171, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #1d2433;
}
.client-app .client-option.is-selected { border-color: rgba(128, 87, 230, 0.55); background: rgba(128, 87, 230, 0.1); }
.client-app .client-service-menu { border-top-color: rgba(142, 153, 171, 0.18); }
.client-app label { color: #687386; }
.client-app input, .client-app textarea, .client-app select {
  border-color: rgba(142, 153, 171, 0.24);
  border-radius: 18px;
  background: #fff;
  color: #1d2433;
}
.client-app .primary {
  border-radius: 18px;
  background: linear-gradient(135deg, #8057e6, #4f7cff);
  color: #fff;
  box-shadow: 0 14px 34px rgba(98, 75, 211, 0.26);
}
.client-app .ghost {
  border-color: rgba(142, 153, 171, 0.24);
  border-radius: 18px;
  background: #fff;
  color: #1d2433;
}
.client-app .client-request {
  border-color: rgba(142, 153, 171, 0.2);
  border-radius: 22px;
  background: #fff;
  color: #1d2433;
  box-shadow: 0 12px 32px rgba(31, 42, 68, 0.07);
}
.client-app .client-bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(142, 153, 171, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(31, 42, 68, 0.2);
  backdrop-filter: blur(18px);
}
.client-app .client-bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 20px;
  color: #8a93a3;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}
.client-app .client-bottom-nav a::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(31, 42, 68, 0.06);
  color: #8a93a3;
  font-size: 11px;
  font-weight: 950;
}
.client-app .client-bottom-nav a:focus, .client-app .client-bottom-nav a:hover { color: #1d2433; background: rgba(128, 87, 230, 0.1); }
.client-app .client-bottom-nav a:focus::before, .client-app .client-bottom-nav a:hover::before { background: linear-gradient(135deg, #8057e6, #4f7cff); color: #fff; }
@media (min-width: 860px) {
  .client-app .client-bottom-nav { left: 50%; right: auto; width: min(520px, calc(100% - 24px)); transform: translateX(-50%); }
}
