:root {
  --bg: #030704;
  --panel: rgba(12, 20, 14, .94);
  --panel-2: rgba(18, 31, 21, .92);
  --line: rgba(62, 218, 116, .18);
  --line-strong: rgba(62, 218, 116, .34);
  --text: #f4fff7;
  --muted: #a9b9ad;
  --green: #24d464;
  --green-2: #55ef96;
  --danger: #ff7272;
  --font-title: "Archivo", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(36, 212, 100, .14), transparent 28%),
    linear-gradient(140deg, #020402, #07150b 52%, #000);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .92rem;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.client-ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.client-ambient span,
.client-ambient i {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(110px);
  background: rgba(36, 212, 100, .12);
}
.client-ambient span { top: -14rem; left: -10rem; }
.client-ambient i { right: -16rem; bottom: -12rem; }

.client-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 1.4rem 0;
}

.client-card,
.client-panel,
.auth-panel,
.client-metrics article {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.client-panel,
.client-metrics article,
.client-actions a {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.client-panel:hover,
.client-metrics article:hover,
.client-actions a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .26);
}

.client-card {
  position: relative;
  width: 100%;
  padding: 1.05rem;
  overflow: hidden;
}

.client-card::before {
  content: "";
  position: absolute;
  top: -20%;
  right: 8%;
  width: 3px;
  height: 50%;
  rotate: -45deg;
  background: linear-gradient(180deg, transparent, rgba(36,212,100,.75), transparent);
  opacity: .65;
}

.client-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.client-brand {
  display: grid;
  grid-template-columns: 40px auto;
  column-gap: .65rem;
  align-items: center;
}

.client-brand span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: #031007;
  font-family: var(--font-title);
  font-weight: 900;
}

.client-brand strong { font-family: var(--font-title); font-size: 1.2rem; line-height: 1; }
.client-brand small { color: var(--muted); font-size: .72rem; font-weight: 800; }
.client-back { color: var(--green); font-weight: 900; font-size: .86rem; }

.auth-view,
.customer-view {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .76fr);
  gap: 1rem;
  padding: 1rem 0 0;
}

.customer-view { grid-template-columns: 1fr; }
.auth-view[aria-hidden="true"],
.customer-view[aria-hidden="true"],
body.is-checking .auth-view,
body.is-checking .customer-view { display: none; }

.auth-copy,
.customer-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(36,212,100,.09), rgba(255,255,255,.02));
}

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--green);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: -.06em;
}

h1 { max-width: 760px; font-size: clamp(2.35rem, 6vw, 5rem); line-height: .88; }
h2 { font-size: clamp(1.25rem, 2.1vw, 1.8rem); }
p, small { color: var(--muted); line-height: 1.65; }

.auth-copy > p:not(.eyebrow),
.customer-hero > p { max-width: 640px; }

.auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.auth-pills span,
.mini-badge {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .45rem .7rem;
  color: #c9f7d4;
  background: rgba(36,212,100,.08);
  font-size: .76rem;
  font-weight: 900;
}

.auth-panel,
.client-panel {
  padding: 1rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

.auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: .72rem .9rem;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--green);
  color: #031007;
}

.client-form {
  display: none;
  gap: .72rem;
  margin-top: 1rem;
}

.client-form.is-active { display: grid; }
.profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }

label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  padding: .78rem .9rem;
  outline: none;
}

input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(36, 212, 100, .08);
}

input[readonly] { opacity: .72; }

.client-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: .82rem 1.05rem;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #041007;
  font-weight: 950;
  cursor: pointer;
}

.client-button-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.form-status {
  min-height: 1.25rem;
  color: var(--green);
  font-size: .82rem;
}

.form-status.is-error { color: var(--danger); }

.customer-hero {
  min-height: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.customer-hero h1 { font-size: clamp(2rem, 4.4vw, 4rem); }

.customer-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  margin-top: .9rem;
  padding: .45rem .65rem .45rem .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.customer-profile-chip span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #041007;
  font-family: var(--font-title);
  font-weight: 950;
}

.customer-profile-chip strong,
.customer-profile-chip small {
  display: block;
  line-height: 1.1;
}

.customer-profile-chip small {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.client-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.client-metrics article { padding: 1rem; }
.client-metrics span {
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.client-metrics strong {
  display: block;
  margin: .28rem 0;
  color: var(--green);
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .72fr) minmax(280px, .78fr);
  gap: 1rem;
}

.summary-list {
  display: grid;
  gap: .58rem;
}

.summary-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: .72rem;
}

.summary-list span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.summary-list strong {
  display: block;
  margin-top: .2rem;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.client-actions { display: grid; gap: .65rem; }
.client-actions a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.04);
  font-weight: 900;
}

.client-actions b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(36,212,100,.12);
  color: var(--green);
  font-size: .82rem;
}

.client-actions .is-whatsapp b {
  background: linear-gradient(135deg, #18c464, #7bffa8);
  color: #031007;
}

.client-actions .is-instagram b {
  background: radial-gradient(circle at 30% 110%, #ffd76f, #fb3f7b 45%, #6f4dff 82%);
  color: #fff;
}

.client-actions span {
  color: var(--text);
  min-width: 0;
}

.client-actions i {
  color: var(--green);
  font-style: normal;
}

.client-note {
  margin-top: .9rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(36, 212, 100, .07);
}

.client-note p { margin-bottom: 0; }

@media (max-width: 820px) {
  .client-shell { width: min(100% - 1rem, 620px); padding: .5rem 0; }
  .auth-view,
  .customer-grid,
  .client-metrics { grid-template-columns: 1fr; }
  .auth-copy { min-height: auto; }
  .customer-hero { flex-direction: column; align-items: stretch; }
  .profile-form { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.15rem, 14vw, 4rem); }
}
