:root {
  --ink: #14201d;
  --muted: #66736f;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --line: #ded8ca;
  --green: #0f6b4e;
  --green-dark: #094634;
  --gold: #d7a847;
  --red: #b84b40;
  --shadow: 0 24px 80px rgba(20, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 234, 0.9);
  border-bottom: 1px solid rgba(20, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-full {
  display: block;
  width: clamp(70px, 8vw, 92px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.brand-text strong {
  display: block;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1;
  letter-spacing: 0;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(12px, 1.5vw, 18px);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.image-mark {
  position: relative;
  width: 64px;
  height: 52px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(20, 32, 29, 0.08);
}

.image-mark img {
  position: absolute;
  width: 120px;
  max-width: none;
  left: -28px;
  top: -12px;
}

.brand small,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.language-switch {
  display: flex;
  gap: 6px;
}

.language-switch button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--green-dark);
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
}

.nav-admin {
  color: var(--green);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(100vh - 73px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 72px) 44px;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.hero-media {
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 107, 78, 0.18), rgba(15, 107, 78, 0.2)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: var(--shadow);
}

.hero-media.team-photo {
  background:
    linear-gradient(rgba(15, 107, 78, 0.04), rgba(15, 107, 78, 0.08)),
    url("/assets/apex-team.png") center/contain no-repeat,
    #ffffff;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 12px;
  padding: 18px;
}

.photo-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
}

.photo-a {
  grid-row: span 2;
  background-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=900&q=80");
}

.photo-b {
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=800&q=80");
}

.photo-c {
  background-image: url("https://images.unsplash.com/photo-1521791055366-0d553872125f?auto=format&fit=crop&w=800&q=80");
}

.hero h1,
.section-heading h2,
.split-section h2,
.apply-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy,
.split-section p,
.apply-copy p {
  max-width: 680px;
  color: #4b5a55;
  font-size: 18px;
  line-height: 1.75;
}

.agent-banner {
  display: inline-flex;
  margin: 4px 0 0;
  padding: 10px 12px;
  color: var(--green-dark);
  background: rgba(215, 168, 71, 0.16);
  border: 1px solid rgba(215, 168, 71, 0.36);
  border-radius: 8px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button,
button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
}

.primary,
button {
  color: white;
  background: var(--green);
}

.ghost {
  color: var(--green-dark);
  background: white;
  border: 1px solid var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
  margin: 0;
}

.hero-stats div,
.benefit,
.admin-card,
.metric-row article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 32, 29, 0.08);
  border-radius: 8px;
}

.hero-stats div {
  padding: 18px;
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.band,
.market-section,
.split-section,
.apply-section,
.number-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.split-section h2,
.apply-copy h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit {
  padding: 28px;
}

.benefit span {
  color: var(--gold);
  font-weight: 900;
}

.benefit h3 {
  margin: 14px 0 10px;
  font-size: 24px;
}

.benefit p,
.market-card p,
.market-section .section-heading p,
.timeline p,
.site-footer p,
.legal-page p {
  color: var(--muted);
  line-height: 1.7;
}

.market-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(247, 243, 234, 0.98)),
    url("/assets/apex-team.png") center/cover;
  border-top: 1px solid var(--line);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.market-card {
  padding: 26px;
  border: 1px solid rgba(20, 32, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.market-card span {
  color: var(--gold);
  font-weight: 900;
}

.market-card h3 {
  margin: 14px 0 10px;
  font-size: 23px;
}

.market-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(16, 37, 30, 0.13);
  border-radius: 8px;
  background: #10251e;
  color: #fff;
}

.market-segments strong {
  margin-right: 6px;
}

.market-segments span {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: 40px;
  background: #10251e;
  color: white;
}

.split-section .eyebrow,
.split-section p {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 520px);
  gap: 36px;
  align-items: start;
}

.member-site-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 6vw, 64px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #10251e;
  color: #fff;
}

.member-site-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.member-site-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.member-site-cta .eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.member-site-cta .button {
  flex: 0 0 auto;
}

.inline-whatsapp {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.number-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  background:
    linear-gradient(rgba(247, 243, 234, 0.84), rgba(247, 243, 234, 0.94)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.number-card,
.number-report {
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.input-card h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.number-lead {
  margin: 0 0 24px;
  color: #4b5a55;
  font-size: 17px;
  line-height: 1.7;
}

.step-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.step-head > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green-dark);
  border: 2px solid #d8c69d;
  background: rgba(255, 253, 248, 0.72);
  font-size: 22px;
  font-weight: 900;
}

.step-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

.step-head p,
.note {
  margin: 0;
  color: #66736f;
  font-size: 17px;
  line-height: 1.65;
}

.note {
  margin-top: 26px;
}

.birth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.destiny-chart {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(18px, 5vw, 72px);
  max-width: 680px;
  margin: 0 auto 18px;
  text-align: center;
}

.chart-card[hidden],
.number-report[hidden] {
  display: none;
}

.date-row strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.date-digits {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  justify-content: center;
}

.date-digits.year {
  grid-template-columns: repeat(4, 42px);
}

.date-digits span,
.mini-boxes span,
.children-boxes span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #111;
  background: rgba(255, 253, 248, 0.94);
  border: 2px solid #222;
  font-size: 28px;
  font-weight: 900;
}

.plate {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 720 / 420;
  margin: 0 auto;
}

.plate-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 4;
  stroke-linejoin: round;
}

.plate-label {
  position: absolute;
  color: #1d348c;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.plate-label small,
.extension-row small {
  color: #3151a5;
  font-size: 14px;
}

.father {
  left: 22%;
  top: 4%;
}

.mother {
  right: 20%;
  top: 4%;
}

.work {
  left: 18%;
  top: 43%;
}

.family {
  right: 15%;
  top: 43%;
}

.self {
  left: 50%;
  bottom: -1%;
  transform: translateX(-50%);
}

.chart-num {
  position: absolute;
  color: #111;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.chart-num.main {
  color: #b42f2a;
  padding: 8px 16px;
  background: rgba(255, 232, 134, 0.82);
  border-radius: 0 0 48% 48%;
}

.n1 { left: 25%; top: 21%; }
.n2 { left: 43%; top: 21%; }
.n3 { right: 32%; top: 21%; }
.n4 { right: 15%; top: 21%; }
.n5 { left: 36%; top: 55%; }
.n6 { right: 36%; top: 55%; }
.main { left: 50%; top: 78%; transform: translateX(-50%); }

.simple-plate {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 720 / 520;
  margin: 10px auto 0;
}

.simple-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #111;
  stroke-width: 4;
  stroke-linejoin: round;
}

.simple-cell {
  position: absolute;
  width: 86px;
  text-align: center;
  color: #111;
}

.simple-cell span {
  display: none;
}

.simple-cell strong {
  display: block;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1;
  font-weight: 500;
}

.top-left-a { left: 18%; top: 16%; }
.top-left-b { left: 34%; top: 16%; }
.top-right-a { left: 50%; top: 16%; }
.top-right-b { left: 66%; top: 16%; }
.mid-left { left: 36%; top: 50%; }
.mid-right { left: 52%; top: 50%; }
.bottom-root {
  left: 50%;
  top: 73%;
  transform: translateX(-50%);
}

.extension-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 20px;
  text-align: center;
}

.extension-row strong {
  display: block;
  margin-bottom: 10px;
  color: #151515;
  font-size: 18px;
}

.mini-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.children-boxes {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  justify-content: center;
  gap: 0 18px;
}

.children-boxes span:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.chart-hint {
  margin: 24px 0 0;
  color: #66736f;
  font-size: 15px;
}

.report-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.number-badge {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: var(--green);
  border-radius: 8px;
  font-size: 42px;
  font-weight: 900;
}

.report-head h3 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.triangle-wrap {
  padding: clamp(18px, 4vw, 34px);
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
}

.triangle-title {
  margin: 0 0 clamp(22px, 4vw, 34px);
  color: #66736f;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.triangle {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 4px;
}

.triangle-row {
  display: grid;
  grid-template-columns: repeat(var(--items), clamp(46px, 5vw, 68px));
  justify-content: center;
  gap: clamp(10px, 1.3vw, 16px);
  min-width: max-content;
}

.triangle-row span {
  display: grid;
  width: clamp(46px, 5vw, 68px);
  height: clamp(46px, 5vw, 68px);
  place-items: center;
  color: var(--green-dark);
  background: #eef5ef;
  border: 1px solid #cfe1d4;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 107, 78, 0.06);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.triangle-row:last-child span {
  color: white;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: none;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.report-grid div,
.report-conclusion {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.report-grid strong,
.report-conclusion strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.report-grid p,
.report-conclusion p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.report-conclusion {
  margin-top: 12px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.lead-form,
.login-panel,
.admin-card {
  padding: clamp(22px, 4vw, 34px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #32423d;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.site-footer p {
  margin: 6px 0 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.42;
}

.legal-links:hover {
  opacity: 1;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 20px;
}

.legal-page h1 {
  font-size: 48px;
}

.legal-page section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.back-home {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green);
  font-weight: 900;
}

.admin-body {
  min-height: 100vh;
  background: #eef1ed;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.login-panel {
  width: min(440px, 100%);
  margin: 7vh auto 0;
}

.login-panel h1,
.dashboard-header h1 {
  margin: 8px 0 12px;
  font-size: 38px;
}

.admin-form.compact {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-form.compact input,
.admin-form.compact button {
  min-height: 44px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.small-button {
  min-height: 42px;
  background: var(--green-dark);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-row article {
  padding: 20px;
}

.metric-row span {
  display: block;
  font-size: 34px;
  font-weight: 900;
}

.metric-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.admin-card {
  box-shadow: none;
}

.admin-card h2 {
  margin-top: 0;
}

.admin-list,
.inquiry-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.delete-admin {
  background: var(--red);
}

.inquiry-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.inquiry-list span,
.inquiry-list time {
  display: block;
  color: var(--muted);
}

.inquiry-list p {
  margin: 8px 0;
}

.empty {
  color: var(--muted);
}

.admin-hint {
  color: var(--muted);
  line-height: 1.55;
}

.member-form {
  display: grid;
  gap: 10px;
}

.member-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.member-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.member-row span,
.member-row small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.member-row button {
  min-height: 40px;
}

.inline-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.admin-body {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(104, 12, 88, 0.72), transparent 34%),
    radial-gradient(circle at 20% 90%, rgba(87, 19, 138, 0.5), transparent 32%),
    #07060d;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  padding: 48px 0 72px;
}

.admin-body .login-panel,
.admin-body .admin-card,
.admin-body .metric-row article {
  color: #fff;
  background: rgba(30, 25, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 90px rgba(79, 13, 112, 0.34);
}

.admin-body .login-panel {
  width: min(520px, 100%);
}

.admin-body .login-panel h1,
.admin-body .dashboard-header h1,
.admin-body .admin-card h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
}

.admin-body .dashboard-header p,
.admin-body .admin-hint,
.admin-body label,
.admin-body small,
.admin-body .empty,
.admin-body .metric-row p,
.admin-body .member-row span,
.admin-body .member-row small,
.admin-body .record-row p,
.admin-body .application-row p,
.admin-body .inquiry-list p,
.admin-body .inquiry-list span,
.admin-body .inquiry-list time {
  color: #d8d0e6;
}

.admin-body input,
.admin-body select {
  color: #fff;
  background: rgba(5, 5, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-body input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.admin-body button {
  color: #111;
  background: linear-gradient(90deg, #7cff6b, #d9ff67);
  box-shadow: 0 18px 40px rgba(124, 255, 107, 0.18);
}

.admin-body .small-button,
.admin-body .row-actions button,
.admin-body .filter-bar button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.admin-body .danger-button,
.admin-body .delete-admin,
.admin-body .delete-member {
  color: #ffb2bf;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.admin-wide {
  margin-top: 22px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-heading h2 {
  margin: 0 0 8px;
}

.card-heading p {
  margin: 0;
  color: #d8d0e6;
  line-height: 1.55;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.filter-bar label {
  margin: 0;
  min-width: 240px;
}

.filter-bar .list-search {
  flex: 1 1 300px;
  min-width: min(100%, 300px);
}

.filter-bar .list-page-size {
  flex: 0 0 150px;
  min-width: 150px;
}

.compact-filter {
  align-items: end;
}

.filter-bar button {
  min-height: 48px;
}

.list-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  color: #d8d0e6;
  font-weight: 800;
}

.list-pager button {
  min-height: 42px;
  padding: 10px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.list-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.member-row,
.application-row,
.record-row,
.admin-body .inquiry-list article,
.admin-body .admin-row {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.member-row {
  grid-template-columns: 1fr auto;
}

.member-main {
  display: grid;
  gap: 5px;
}

.member-main strong,
.application-row strong,
.record-row strong {
  color: #fff;
  font-size: 24px;
}

.member-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
}

.row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.row-actions button {
  min-height: 42px;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 86px;
  height: 54px;
  padding: 0 12px;
  border-radius: 8px;
  color: #96ff96;
  background: rgba(67, 108, 68, 0.7);
  font-weight: 900;
  text-align: center;
}

.status-pill.off {
  color: #ffcf9e;
  background: rgba(130, 83, 42, 0.65);
}

.status-pill.pending {
  float: right;
  color: #91ff91;
}

.application-list,
.record-list {
  display: grid;
  gap: 14px;
}

.member-apply-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(110, 24, 97, 0.68), transparent 34%),
    #08070e;
  color: #fff;
}

.member-apply-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.member-apply-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(30, 25, 36, 0.88);
  box-shadow: 0 24px 90px rgba(79, 13, 112, 0.34);
}

.apply-logo {
  width: 170px;
  height: 96px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.member-apply-card h1 {
  margin: 12px 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
}

.member-apply-card p {
  color: #d8d0e6;
  line-height: 1.7;
}

.member-apply-body input {
  color: #fff;
  background: rgba(5, 5, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.member-apply-body label,
.member-apply-body small {
  color: #d8d0e6;
}

@media (max-width: 900px) {
  .hero,
  .benefit-grid,
  .market-grid,
  .split-section,
  .apply-section,
  .number-section,
  .manager-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
    order: 2;
  }

  .site-header,
  .site-footer,
  .member-site-cta,
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form.compact,
  .admin-row,
  .admin-layout,
  .member-edit,
  .metric-row,
  .date-row,
  .extension-row,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar .list-search,
  .filter-bar .list-page-size,
  .filter-bar label {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .list-pager {
    justify-content: flex-start;
  }

  .date-row {
    gap: 18px;
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .triangle {
    gap: 8px;
  }

  .triangle-row {
    grid-template-columns: repeat(var(--items), 34px);
    gap: 6px;
  }

  .triangle-row span {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 19px;
  }

  .step-head {
    gap: 14px;
  }

  .step-head > span {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .birth-grid {
    grid-template-columns: 1fr;
  }

  .date-digits,
  .date-digits.year {
    grid-template-columns: repeat(var(--date-count, 2), 34px);
  }

  .date-digits.year {
    --date-count: 4;
  }

  .date-digits span,
  .mini-boxes span,
  .children-boxes span {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .chart-num {
    font-size: 25px;
  }

  .simple-cell {
    width: 72px;
  }

  .simple-cell span {
    min-height: 24px;
    font-size: 9px;
  }

  .simple-cell strong {
    font-size: 28px;
  }

  .plate-label {
    font-size: 12px;
  }

  .plate-label small,
  .extension-row small {
    font-size: 10px;
  }

  .photo-grid {
    display: none;
  }
}
