:root {
  --ink: #111827;
  --ink-soft: #283241;
  --navy: #071523;
  --navy-2: #0d2235;
  --navy-3: #132c42;
  --ivory: #f8f2e8;
  --paper: #fffaf1;
  --paper-2: #efe4d1;
  --gold: #b88732;
  --gold-2: #e1b866;
  --copper: #8f5632;
  --sage: #60766a;
  --wine: #6f2835;
  --muted: #687387;
  --line-dark: rgba(225, 184, 102, .22);
  --line-light: rgba(74, 55, 28, .16);
  --shadow-soft: 0 18px 44px rgba(6, 17, 30, .18);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, .32);
  --radius: 18px;
  --radius-sm: 10px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #f8f2e8;
  background:
    linear-gradient(180deg, rgba(7, 21, 35, .97), rgba(4, 12, 21, .98) 34%, rgba(12, 30, 45, .98)),
    #071523;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(225, 184, 102, .08), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(96, 118, 106, .18), transparent 28%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

main > section {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  background: rgba(5, 15, 26, .86);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 272px;
}

.brand.compact {
  min-width: auto;
}

.brand-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(225, 184, 102, .78);
  border-radius: 50%;
  color: var(--gold-2);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 247, 214, .22), transparent 30%),
    linear-gradient(145deg, #183753, #061320);
  box-shadow: 0 0 0 4px rgba(225, 184, 102, .08);
  font-family: Cinzel, serif;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: Cinzel, serif;
  font-size: .95rem;
  font-weight: 700;
  color: #fff6e6;
  text-transform: uppercase;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #d7c4a4;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-left: auto;
  color: #e8edf3;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  opacity: .86;
  transition: color .2s ease, opacity .2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff7e8;
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav .account-link {
  margin-left: clamp(8px, 1.5vw, 18px);
  padding: 10px 16px;
  border: 1px solid rgba(225, 184, 102, .72);
  border-radius: var(--radius-sm);
  color: #fff8e8;
  background: linear-gradient(180deg, rgba(214, 163, 75, .98), rgba(143, 86, 32, .98));
  box-shadow: 0 12px 26px rgba(34, 19, 5, .26);
  opacity: 1;
}

.main-nav .account-link::after {
  display: none;
}

.main-nav .account-link:hover,
.main-nav .account-link.is-active {
  color: #fffaf0;
  border-color: rgba(255, 232, 177, .86);
  box-shadow: 0 16px 32px rgba(34, 19, 5, .32);
}

.main-nav .admin-header-link {
  padding: 10px 14px;
  border: 1px solid rgba(225, 184, 102, .34);
  border-radius: var(--radius-sm);
  color: #f4dfae;
  background: rgba(255, 250, 241, .08);
  opacity: 1;
}

.main-nav .admin-header-link[hidden] {
  display: none;
}

.main-nav .admin-header-link::after {
  display: none;
}

.main-nav .admin-header-link:hover,
.main-nav .admin-header-link.is-active {
  color: #fff7e8;
  border-color: rgba(225, 184, 102, .72);
  background: rgba(225, 184, 102, .16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(225, 184, 102, .58);
  border-radius: var(--radius-sm);
  color: #fffaf0;
  background: linear-gradient(180deg, #d6a34b, #9f6725);
  box-shadow: 0 12px 24px rgba(34, 19, 5, .24);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 232, 177, .82);
  box-shadow: 0 16px 30px rgba(34, 19, 5, .3);
}

.btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(225, 184, 102, .34);
  outline-offset: 3px;
}

.btn.ghost {
  color: #FFBD5C;
  background: rgba(255, 255, 255, .065);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}

.btn.danger {
  color: #fff8f6;
  border-color: rgba(127, 29, 29, .42);
  background: linear-gradient(180deg, #8f2f2f, #5f1717);
  box-shadow: 0 10px 22px rgba(95, 23, 23, .18);
}

.btn.danger:hover {
  border-color: rgba(127, 29, 29, .68);
  background: linear-gradient(180deg, #a43b3b, #681d1d);
}

.btn.small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: .86rem;
}

.btn.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: #fff8eb;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  font-size: 1.24rem;
}

.section-pad {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.section-title {
  max-width: 820px;
  margin: 0 auto clamp(32px, 4vw, 40px);
  text-align: center;
}

.section-title p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px auto 0;
  color: #4b5666;
  line-height: 1.68;
}

.profiles-heading {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.profiles-heading .eyebrow {
  margin-bottom: 14px;
  font-size: clamp(1.22rem, 2.25vw, 1.7rem);
  line-height: 1.2;
}

.content-heading .eyebrow {
  margin-bottom: 14px;
  font-size: clamp(1.22rem, 2.25vw, 1.7rem);
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-family: Cinzel, serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: #fff9ed;
  font-family: Cinzel, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  line-height: .98;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

h4,
h5,
p {
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dfe8f0;
  font-size: 1.08rem;
  line-height: 1.72;
}

.gold-line {
  margin: 18px 0 0;
  color: var(--gold-2);
  font-family: Cinzel, serif;
  font-size: 1.26rem;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 620px);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  max-width: 1480px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(2.65rem, 5vw, 4.55rem);
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  box-shadow: var(--shadow-strong);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--content);
  margin: 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow-soft);
}

.trust-strip div {
  padding: 24px 18px;
  text-align: center;
  border-left: 1px solid var(--line-dark);
}

.trust-strip div:first-child {
  border-left: 0;
}

.trust-strip strong {
  display: block;
  color: var(--gold-2);
  font-family: Cinzel, serif;
  font-size: 1.08rem;
}

.trust-strip span {
  display: block;
  margin-top: 6px;
  color: #cbd5df;
  font-size: .9rem;
}

.light-panel,
.account-section,
.content-section {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, .98), rgba(239, 228, 209, .98));
}

.section-title h2,
.light-panel h2,
.account-section h2,
.content-section h2 {
  color: var(--ink);
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--content);
  margin: 0 auto;
}

.group-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: #f9f4ea;
  background:
    linear-gradient(180deg, rgba(18, 44, 66, .98), rgba(7, 21, 35, .98));
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}

.group-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(6, 17, 30, .26);
}

.group-card img {
  width: 100%;
  height: clamp(230px, 22vw, 310px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  object-fit: contain;
  object-position: top;
  background: #0b1b2a;
}

.group-card h3 {
  margin-top: 16px;
  color: #fff8ec;
  font-size: 1rem;
}

.group-card p {
  margin: 10px 0 18px;
  color: #d8e1ea;
  font-size: .92rem;
  line-height: 1.55;
}

.group-card .btn {
  margin-top: auto;
  width: 100%;
}

.profile-view {
  min-height: calc(100svh - 72px);
  padding: 0 clamp(16px, 5vw, 72px) clamp(40px, 6vw, 72px);
  color: #fff8ec;
  background:
    linear-gradient(180deg, rgba(7, 21, 35, .99), rgba(3, 11, 20, .99));
}

.profile-toolbar {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--content);
  margin: 0 auto 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(7, 21, 35, .96);
  backdrop-filter: blur(16px);
}

.profile-toolbar h2 {
  color: #fff8ec;
  font-size: clamp(1.18rem, 2vw, 1.85rem);
  line-height: 1.15;
  text-align: right;
}

.profile-back {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 14px;
}

.profile-stage {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow-strong);
}

.profile-stage img {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(225, 184, 102, .32);
  border-radius: 14px;
  background: #071523;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.offer-section {
  background:
    linear-gradient(135deg, #071523, #10293d 55%, #142b36);
}

.offer-section {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
}

.offer-title-block {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: 0 auto clamp(2px, 1vw, 8px);
  text-align: center;
}

.offer-title-block h1 {
  margin: 0;
  color: #fff8ec;
  font-size: clamp(1.22rem, 2.45vw, 2.16rem);
  line-height: 1.18;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.offer-title-block h1 span {
  display: inline-block;
  margin-right: .16em;
  font-size: clamp(1.55rem, 3.4vw, 3rem);
  line-height: .95;
}

.offer-copy {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  box-shadow: var(--shadow-strong);
}

.offer-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.payment-title {
  margin: 0 0 18px;
  color: #fff8ec;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.15;
}

.offer-copy p {
  font-size: .94rem;
  line-height: 1.65;
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.included-list div {
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.included-list span {
  color: var(--gold-2);
  font-family: Cinzel, serif;
  font-size: 2.55rem;
  font-weight: 700;
}

.included-list p {
  margin: 6px 0 0;
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.note {
  color: #d3dde7;
}

.crypto-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--content);
  margin: 0 auto;
}

.crypto-addresses article {
  min-width: 0;
  overflow: hidden;
  padding: clamp(16px, 2.3vw, 22px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}

.crypto-addresses h3 {
  margin: 0 0 7px;
  color: #7b4c0c;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crypto-addresses p {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.crypto-addresses span {
  display: block;
  margin-top: 7px;
  color: #384354;
  font-weight: 800;
}

.offer-addresses {
  grid-template-columns: 1fr;
  max-width: 100%;
  min-width: 0;
  gap: 12px;
}

.offer-addresses article {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(225, 184, 102, .34);
  box-shadow: none;
}

.offer-addresses h3 {
  color: var(--gold-2);
}

.offer-addresses p {
  color: #fff8ec;
  font-size: clamp(.74rem, .95vw, .92rem);
  word-break: break-all;
}

.offer-addresses span {
  color: #d8e1ea;
}

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

.offer-images img {
  width: 100%;
  height: clamp(280px, 34vw, 390px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(2, 8, 14, .42);
  box-shadow: var(--shadow-strong);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(560px, 1fr) minmax(220px, 260px);
  align-items: start;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.auth-section,
.register-section,
.profile-section {
  flex: 0 0 auto;
}

.account-section + .account-section {
  border-top: 1px solid rgba(74, 55, 28, .12);
}

.auth-shell,
.register-card,
.account-profile-card {
  width: min(100%, 940px);
  margin: 0 auto;
}

.auth-shell {
  max-width: 560px;
}

.auth-card {
  position: static;
}

.login-card,
.register-card,
.profile-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}

.login-card,
.register-card,
.profile-card {
  padding: clamp(20px, 3vw, 28px);
}

.login-card,
.profile-card {
  position: sticky;
  top: 92px;
}

.account-profile-card {
  position: static;
  width: min(100%, 1040px);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 184, 102, .18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 250, 240, .86));
}

.profile-hero-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(16px, 3vw, 22px);
  color: #fffaf1;
  border: 1px solid rgba(225, 184, 102, .26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(7, 21, 35, .96), rgba(17, 46, 65, .94)),
    #071523;
  box-shadow: 0 18px 44px rgba(7, 21, 35, .18);
}

.profile-avatar {
  width: clamp(58px, 8vw, 78px);
  height: clamp(58px, 8vw, 78px);
  display: grid;
  place-items: center;
  color: #e1b866;
  font-family: Cinzel, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  border: 1px solid rgba(225, 184, 102, .52);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 28%, rgba(225, 184, 102, .22), rgba(5, 15, 26, .94) 62%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .04);
}

.profile-hero-panel .eyebrow {
  margin: 0 0 6px;
}

.profile-hero-panel h3 {
  margin: 0;
  color: #fffaf1;
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
}

.profile-hero-panel p:last-child {
  max-width: 640px;
  margin: 8px 0 0;
  color: rgba(245, 248, 251, .78);
  line-height: 1.5;
}

.login-card h3,
.register-card h3,
.profile-card h3 {
  margin-bottom: 18px;
  color: var(--ink);
}

.profile-hero-panel h3 {
  margin-bottom: 0;
  color: #fffaf1;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
}

.auth-card h3 {
  margin-bottom: 2px;
}

.auth-card .btn {
  margin-top: 4px;
}

.auth-switch {
  margin: 4px 0 0;
  padding-top: 18px;
  border-top: 1px solid #ead9b9;
  color: #384354;
  font-size: .9rem;
  line-height: 1.5;
  text-align: center;
}

.auth-switch.compact {
  padding-top: 0;
  border-top: 0;
}

.auth-switch a {
  color: #7b4c0c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #7b4c0c;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.password-reset-panel {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #ead9b9;
  border-radius: 12px;
  background: rgba(255, 253, 248, .82);
}

.password-reset-panel[hidden] {
  display: none;
}

.password-reset-panel h4 {
  margin: 0;
  color: var(--ink);
  font-family: Cinzel, serif;
}

.password-reset-panel form {
  display: grid;
  gap: 12px;
}

.tiny {
  color: #667085;
  font-size: .82rem;
  line-height: 1.55;
}

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

.investment-type-field,
.complete-investment-fields,
.direct-investment-fields {
  grid-column: 1 / -1;
}

.investment-type-field {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dfc898;
  border-radius: 8px;
  background: #fffaf0;
}

.investment-type-field legend {
  padding: 0 6px;
  color: #704814;
  font-weight: 800;
}

.investment-type-field .switch-row label {
  flex: 1 1 250px;
  min-width: 0;
}

.investment-type-field .switch-row span {
  color: #776b5e;
  font-size: .78rem;
  font-weight: 600;
}

.complete-investment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.direct-investment-fields {
  max-width: 360px;
}

label {
  display: grid;
  gap: 8px;
  color: #303b4a;
  font-size: .86rem;
  font-weight: 800;
}

.password-control {
  position: relative;
  display: block;
  min-width: 0;
}

.password-control input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 1px solid #d5c2a2;
  border-radius: 8px;
  color: #3b2a11;
  background: #fff8e8;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  border-color: var(--gold);
  background: #f1dfbd;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #d5c2a2;
  border-radius: 9px;
  color: #101827;
  background: #fffdf8;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus {
  border-color: var(--gold);
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(184, 135, 50, .16);
}

fieldset {
  min-width: 0;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #d8c4a1;
  border-radius: 16px;
}

legend {
  padding: 0 8px;
  color: #7b4c0c;
  font-family: Cinzel, serif;
  font-weight: 700;
}

.upload-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.upload-box legend {
  grid-column: 1 / -1;
}

.upload-box label {
  min-width: 0;
}

.transaction-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px dashed #bd9350;
  border-radius: 14px;
  background: rgba(255, 250, 240, .82);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.transaction-card > label {
  padding: 16px;
  border: 1px dashed #bd9350;
  border-radius: 14px;
  background: #fffaf0;
  text-align: center;
}

.transaction-card:hover,
.transaction-card:focus-within {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: #fff8e8;
  box-shadow: 0 12px 22px rgba(85, 57, 18, .12);
}

.upload-box label.has-file {
  border-style: solid;
  border-color: #8f651f;
  background: #fff6df;
}

.transaction-meta {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(260px, 1.45fr);
  gap: 12px;
}

.txid-field {
  grid-column: auto;
}

.txid-field input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .88rem;
}

.more-transactions {
  padding: 14px;
  border: 1px solid #ead9b9;
  border-radius: 12px;
  background: rgba(255, 250, 240, .64);
}

.more-transactions p {
  margin: 0 0 10px;
  color: #384354;
  font-weight: 800;
}

.optional-transactions {
  display: grid;
  gap: 16px;
}

.upload-box span {
  color: #776b5e;
  font-size: .76rem;
  font-weight: 600;
}

.upload-box input[type="file"] {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #4f5b6b;
  background: transparent;
  font-size: .78rem;
}

.upload-box input[type="file"]::file-selector-button {
  width: 100%;
  min-height: 38px;
  margin: 10px 0 8px;
  padding: 9px 12px;
  border: 1px solid rgba(184, 135, 50, .58);
  border-radius: 9px;
  color: #3b2a11;
  background: linear-gradient(180deg, #fff8e8, #f1dfbd);
  cursor: pointer;
  font-weight: 800;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.upload-box input[type="file"]::file-selector-button:hover {
  border-color: #8f651f;
  box-shadow: 0 8px 18px rgba(85, 57, 18, .14);
}

.file-name {
  display: block;
  max-width: 100%;
  color: #596371;
  font-size: .76rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.switch-row label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid #d8c4a1;
  border-radius: 999px;
  background: #fffaf0;
}

.switch-row input {
  width: auto;
  min-height: 0;
}

.principal-data {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dcc59b;
}

.form-message {
  min-height: 22px;
  margin-top: 12px;
  color: #166534;
  font-weight: 800;
}

.field-error {
  display: block;
  margin: 4px 0 6px;
  color: #9f1239;
  font-size: .78rem;
  font-weight: 800;
}

.consent-box {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 16px;
  border: 1px solid rgba(184, 135, 50, .42);
  border-radius: 14px;
  background: #fff8e8;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #303b4a;
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #b88732;
}

.consent-details {
  color: #384354;
  font-size: .9rem;
  line-height: 1.55;
}

.consent-details summary {
  width: max-content;
  max-width: 100%;
  color: #7b4c0c;
  font-weight: 900;
  cursor: pointer;
}

.consent-details div {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #ead9b9;
  border-radius: 12px;
  background: rgba(255, 253, 248, .78);
}

.consent-details h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Cinzel, serif;
}

.consent-details p {
  margin: 8px 0 0;
}

.consent-error {
  margin: 0 0 10px;
}

.share-summary {
  margin: 12px 0 16px;
  color: #166534;
  font-weight: 800;
}

.share-summary.is-invalid {
  color: #9f1239;
}

.profile-summary {
  display: grid;
  gap: 18px;
  margin: 18px 0 18px;
}

.profile-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 196, 161, .72);
  border-radius: 18px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 16px 34px rgba(53, 38, 18, .06);
}

.profile-group-head {
  display: grid;
  gap: 5px;
}

.profile-group-head span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  color: #7b4c0c;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #f7ead1;
}

.profile-group-head h4 {
  margin: 0;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 1.08rem;
}

.profile-group-head p {
  max-width: 640px;
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.profile-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-group-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-field {
  position: relative;
  min-width: 0;
  min-height: 108px;
  padding: 16px 16px 15px;
  border: 1px solid #ead9b9;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #fff7e9);
  box-shadow: 0 12px 28px rgba(53, 38, 18, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-field::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(184, 135, 50, .42);
  box-shadow: 0 0 0 6px rgba(184, 135, 50, .08);
}

.profile-field:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 135, 50, .58);
  box-shadow: 0 18px 34px rgba(53, 38, 18, .1);
}

.profile-field.is-highlight {
  background: linear-gradient(145deg, #071523, #10293a);
  border-color: rgba(225, 184, 102, .36);
}

.profile-field.is-highlight::after {
  background: #e1b866;
  box-shadow: 0 0 0 6px rgba(225, 184, 102, .14);
}

.profile-field > span {
  display: block;
  margin-bottom: 5px;
  color: #7a6b5a;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-field > strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-field.is-highlight > span {
  color: rgba(245, 224, 188, .78);
}

.profile-field.is-highlight > strong {
  color: #fffaf1;
}

.profile-attachments {
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid rgba(184, 135, 50, .42);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8e8, #fffdf8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.profile-attachments h4 {
  margin: 0 0 12px;
  color: #7b4c0c;
  font-family: Cinzel, serif;
  font-size: 1.08rem;
}

.profile-card ul,
.profile-attachments ul {
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.profile-card li,
.profile-attachments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid #ead9b9;
  border-radius: 14px;
  color: #384354;
  line-height: 1.45;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .62);
}

.profile-attachments ul {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-attachments li:first-letter {
  text-transform: uppercase;
}

.profile-attachments li:last-child {
  border-bottom: 0;
}

.profile-attachments li span {
  min-width: 0;
}

.profile-attachment-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-attachment-copy strong {
  color: var(--ink);
  font-size: .98rem;
  overflow-wrap: anywhere;
}

.profile-attachment-copy span {
  color: #667085;
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.profile-attachments .document-view-btn {
  flex: 0 0 auto;
  color: #3b2a11;
  border-color: rgba(184, 135, 50, .44);
  background: #fffaf1;
}

.document-view-btn {
  width: max-content;
  max-width: 100%;
}

.profile-payments,
.profile-certificates,
.payment-form {
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid rgba(184, 135, 50, .42);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #fff8ea);
  box-shadow: 0 14px 30px rgba(53, 38, 18, .06);
}

.certificate-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.certificate-investment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid #ead9b9;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}

.certificate-investment-copy {
  min-width: 0;
}

.certificate-investment-copy > span {
  display: block;
  margin-bottom: 4px;
  color: #7b4c0c;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.certificate-investment-copy h5 {
  margin: 0;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.certificate-investment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 9px;
}

.certificate-investment-meta strong,
.certificate-investment-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #384354;
  font-size: .76rem;
  font-style: normal;
  font-weight: 900;
  border: 1px solid #ead9b9;
  border-radius: 999px;
  background: #fffaf1;
}

.certificate-investment-meta strong {
  color: #14532d;
  border-color: rgba(22, 101, 52, .24);
  background: #dcfce7;
}

.certificate-investment-actions {
  display: grid;
  gap: 8px;
  width: min(210px, 100%);
}

.certificate-investment-actions .btn {
  min-height: 42px;
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
}

.certificate-investment-actions .btn.ghost {
  color: #3b2a11;
  border-color: rgba(184, 135, 50, .44);
  background: #fffaf1;
}

.certificate-investment-actions .btn.ghost:hover {
  color: #3b2a11;
  border-color: rgba(184, 135, 50, .72);
  background: #fff4dc;
}

.payment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.payment-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ead9b9;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}

.payment-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.payment-card summary::-webkit-details-marker {
  display: none;
}

.payment-card summary span {
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.payment-card summary strong {
  color: #7b4c0c;
  white-space: nowrap;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  color: #3b2a11;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  border: 1px solid rgba(184, 135, 50, .28);
  border-radius: 999px;
  background: #f7ead1;
}

.status-approved {
  color: #14532d;
  border-color: rgba(22, 101, 52, .28);
  background: #dcfce7;
}

.status-reviewing {
  color: #7c2d12;
  border-color: rgba(194, 65, 12, .28);
  background: #ffedd5;
}

.status-rejected {
  color: #881337;
  border-color: rgba(159, 18, 57, .28);
  background: #ffe4e6;
}

.status-legacy {
  color: #384354;
  border-color: rgba(102, 112, 133, .24);
  background: #eef2f7;
}

.payment-card-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.payment-card-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-card-body div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #efe2cb;
  border-radius: 12px;
  background: #fffaf1;
}

.payment-card-body dt {
  margin-bottom: 3px;
  color: #7a6b5a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.payment-card-body dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-form .form-message {
  margin-top: 10px;
}

.payment-genealogy-box {
  margin-top: 16px;
}

.document-viewer {
  --document-viewer-zoom: 1;
  width: min(92vw, 1100px);
  height: min(92vh, 920px);
  max-height: 92vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  color: var(--ink);
  border: 1px solid #d8c4a1;
  border-radius: 26px;
  background: #fff8ea;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .32);
}

.document-viewer::backdrop {
  background: rgba(3, 11, 20, .72);
  backdrop-filter: blur(4px);
}

.document-viewer-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 18px;
}

.document-viewer-back {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #3b2a11;
  font-size: 1.5rem;
  font-weight: 900;
  border: 1px solid rgba(184, 135, 50, .42);
  border-radius: 50%;
  background: #fffaf1;
  cursor: pointer;
}

.document-viewer-back:hover,
.document-viewer-back:focus {
  outline: 0;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(184, 135, 50, .18);
}

.document-viewer-close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  color: #3b2a11;
  font-size: 1.7rem;
  line-height: 1;
  border: 1px solid rgba(184, 135, 50, .42);
  border-radius: 50%;
  background: #fffaf1;
  cursor: pointer;
}

.document-viewer-close:hover,
.document-viewer-close:focus {
  outline: 0;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(184, 135, 50, .18);
}

.document-viewer-heading {
  min-width: 0;
  flex: 1;
}

.document-viewer-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 14px;
  color: #7b4c0c;
  font-size: .84rem;
  font-weight: 900;
  border-radius: 999px;
  background: #f7ead1;
}

.document-viewer-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.document-viewer-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.document-viewer-zoom-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #eadcc7;
  border-radius: 999px;
  background: #fffaf1;
}

.document-viewer-tool,
.document-viewer-zoom-value {
  min-width: 42px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #3b2a11;
  font: inherit;
  font-weight: 900;
  border: 0;
  border-right: 1px solid #eadcc7;
  background: transparent;
  cursor: pointer;
}

.document-viewer-tool:last-child {
  border-right: 0;
}

.document-viewer-zoom-value {
  min-width: 68px;
  padding: 0 10px;
  color: #7b4c0c;
  font-size: .82rem;
  letter-spacing: 0;
}

.document-viewer-tool:hover,
.document-viewer-tool:focus,
.document-viewer-zoom-value:hover,
.document-viewer-zoom-value:focus {
  outline: 0;
  background: #f7ead1;
}

.document-viewer-tool:disabled {
  color: rgba(59, 42, 17, .32);
  cursor: not-allowed;
  background: transparent;
}

.document-viewer-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  border: 1px solid #eadcc7;
  border-radius: 18px;
  background: #fff;
}

.document-viewer-stage {
  min-width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
  background: #fff;
}

.document-viewer-image {
  display: block;
  width: 100%;
  margin: 0 auto;
  max-height: 72vh;
  object-fit: contain;
  background: #fff;
}

.document-viewer-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #fff;
}

.document-viewer-zoomable {
  transition: width .18s ease, height .18s ease;
}

.document-viewer-empty {
  margin: 0;
  padding: 24px;
  color: #5d6570;
  text-align: center;
}

.document-viewer-link {
  min-height: 40px;
  padding: 10px 14px;
  white-space: nowrap;
}

.video-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--content);
  margin: 0 auto;
}

.video-card {
  min-width: 0;
  display: grid;
  gap: 20px;
  padding: 18px 18px 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}

.video-card h3 {
  margin: 0;
  padding: 0 4px 2px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.video-frame,
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #dfcaa4;
  border-radius: 12px;
  background: #06111d;
}

.video-frame iframe,
.video-card video {
  display: block;
  width: 100%;
  height: 100%;
}

.video-frame iframe {
  border: 0;
}

.video-card video {
  object-fit: contain;
}

.youtube-lite {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #fffaf0;
  border: 0;
  background: #06111d;
  cursor: pointer;
}

.youtube-lite::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(6, 17, 29, .08), rgba(6, 17, 29, .36));
  transition: background .2s ease;
}

.youtube-lite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.youtube-lite:hover img,
.youtube-lite:focus-visible img {
  transform: scale(1.02);
}

.youtube-lite:hover::after,
.youtube-lite:focus-visible::after {
  background: linear-gradient(180deg, rgba(6, 17, 29, .02), rgba(6, 17, 29, .26));
}

.youtube-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 50px;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
  border-radius: 14px;
  background: #d91f16;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
  transform: translate(-50%, -50%);
}

.youtube-label {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(6, 17, 29, .78);
}

.admin-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  color: #f8f2e8;
  background: linear-gradient(135deg, #071523, #122c42);
}

.admin-section > * {
  max-width: 620px;
}

.admin-section p:not(.eyebrow) {
  color: #d6e0e9;
  line-height: 1.65;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-list span {
  padding: 15px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
}

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

.site-footer p {
  margin: 0;
}

.image-modal {
  width: min(980px, 92vw);
  max-height: 92vh;
  padding: 22px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  color: #fff;
  background: #07111e;
  box-shadow: var(--shadow-strong);
}

.image-modal::backdrop {
  background: rgba(0, 0, 0, .76);
}

.image-modal img {
  max-height: 78vh;
  margin: auto;
  border-radius: 12px;
}

.modal-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: white;
  background: #301a07;
  cursor: pointer;
  font-size: 1.4rem;
}

.logo-showcase {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 50% 18%, rgba(225, 184, 102, .14), transparent 34%);
}

.logo-showcase-title {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.logo-grid-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 1.24fr) minmax(0, 1fr);
  grid-template-rows: 178px 226px 178px;
  align-items: center;
  justify-items: center;
  gap: 12px;
  min-height: 582px;
  isolation: isolate;
}

.logo-grid-hero::before {
  content: "";
  position: absolute;
  inset: 92px 60px 92px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(225, 184, 102, .42) calc(50% - 1px), rgba(225, 184, 102, .42) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), rgba(225, 184, 102, .42) calc(50% - 1px), rgba(225, 184, 102, .42) calc(50% + 1px), transparent calc(50% + 1px));
}

.logo-grid-hero figure {
  position: relative;
  z-index: 1;
  width: min(158px, 100%);
  height: 164px;
  display: grid;
  grid-template-rows: 104px 34px;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(7, 21, 35, .86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.logo-grid-hero figure:first-child {
  grid-column: 2;
  grid-row: 2;
  width: min(226px, 100%);
  height: 226px;
  grid-template-rows: 168px 34px;
  padding: 16px;
  border-color: rgba(225, 184, 102, .58);
  background: linear-gradient(180deg, rgba(20, 49, 74, .96), rgba(7, 21, 35, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.logo-grid-hero figure:nth-child(2) {
  grid-column: 1;
  grid-row: 1;
}

.logo-grid-hero figure:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.logo-grid-hero figure:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

.logo-grid-hero figure:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

.logo-grid-hero img {
  width: 100%;
  max-width: 116px;
  height: auto;
  max-height: 96px;
  padding: 5px;
  border: 1px solid rgba(225, 184, 102, .2);
  border-radius: 12px;
  background: rgba(1, 8, 15, .42);
  object-fit: contain;
}

.logo-grid-hero figure:first-child img {
  width: 160px;
  max-width: 100%;
  height: 160px;
  max-height: none;
  border-radius: 50%;
}

.logo-grid-hero figcaption {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: #fff6e6;
  font-family: Cinzel, serif;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.logo-showcase-note {
  margin: 18px 0 0;
  color: #d9c8aa;
  font-size: .92rem;
  text-align: center;
}

.genealogy-participants {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 250, 240, .62);
}

.genealogy-count-field {
  max-width: 360px;
  margin: 14px 0;
}

.genealogy-grid {
  display: grid;
  gap: 14px;
}

.genealogy-member,
.payment-genealogy-member {
  padding: 14px;
  border: 1px solid #d8c4a1;
  border-radius: 14px;
  background: #fffaf0;
}

.genealogy-member h5,
.payment-genealogy-member h5 {
  margin: 0 0 12px;
  color: #7b4c0c;
  font-family: Cinzel, serif;
  font-size: 1rem;
  font-weight: 700;
}

.genealogy-member.is-principal-locked,
.payment-genealogy-member.is-principal-locked {
  border-color: rgba(184, 135, 50, .45);
  background: linear-gradient(180deg, #fffaf0, #fffdf8);
}

.genealogy-member.is-principal-locked h5::after,
.payment-genealogy-member.is-principal-locked h5::after {
  content: "Datos tomados del registro principal";
  display: block;
  margin-top: 5px;
  color: #667085;
  font-family: Inter, system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.genealogy-member.is-principal-locked input[readonly],
.genealogy-member.is-principal-locked select[aria-readonly="true"],
.payment-genealogy-member.is-principal-locked input[readonly],
.payment-genealogy-member.is-principal-locked select[aria-readonly="true"] {
  color: #58616f;
  background: #f7f0e4;
  cursor: not-allowed;
}

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

.profile-card .btn + .btn {
  margin-top: 10px;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.profile-actions .btn {
  min-height: 48px;
}

.profile-actions .btn + .btn {
  margin-top: 0;
}

.logout-btn {
  border: 1px solid rgba(127, 29, 29, .42);
  color: #fff8f6;
  background: linear-gradient(180deg, #8f2f2f, #5f1717);
  box-shadow: 0 12px 24px rgba(95, 23, 23, .22);
}

.logout-btn:hover {
  border-color: rgba(127, 29, 29, .68);
  background: linear-gradient(180deg, #a43b3b, #681d1d);
  transform: translateY(-1px);
}

.document-note {
  margin-top: 14px;
  color: #5d6570;
}

.admin-dashboard-section {
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(56px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(7, 21, 35, .95), rgba(13, 34, 53, .96)),
    var(--navy);
}

.admin-title {
  color: #f8f2e8;
}

.admin-dashboard-section .admin-title h2 {
  color: #fffaf1;
  text-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.admin-dashboard-section .admin-title p:not(.eyebrow) {
  color: #c8d2dd;
}

.admin-login-card,
.admin-dashboard {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .08);
  box-shadow: var(--shadow-soft);
}

.admin-dashboard {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  max-width: 620px;
  padding: 24px;
  color: var(--ink);
  border-color: #d8c4a1;
  background: linear-gradient(135deg, #fffdf8, #f7eddd);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.admin-login-card .form-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.admin-login-card .btn.full {
  width: 100%;
  margin-top: 2px;
}

.admin-login-card h3,
.admin-toolbar h3 {
  margin: 0;
  color: #fffaf1;
  font-family: Cinzel, serif;
  font-size: 1.4rem;
}

.admin-login-card h3 {
  color: var(--ink);
  font-size: 1.55rem;
}

.admin-login-card label {
  color: #384354;
}

.admin-login-card .tiny {
  margin: 0;
  color: #667085;
}

.admin-login-pill {
  width: max-content;
  margin: 0;
  padding: 7px 11px;
  color: #3b2a11;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 135, 50, .32);
  border-radius: 999px;
  background: rgba(225, 184, 102, .22);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  color: var(--ink);
  border: 1px solid #d8c4a1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf8, #f7eddd);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.admin-hero h3 {
  margin: 8px 0 5px;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 1.55rem;
}

.admin-hero p:not(.admin-login-pill) {
  max-width: 680px;
  margin: 0;
  color: #5d6570;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-stats div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #d8c4a1;
  border-radius: 15px;
  background: #fffdf8;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.admin-stats span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  color: var(--navy);
  font-family: Cinzel, serif;
  font-size: 1.35rem;
}

.admin-category-switch,
.admin-panel-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-category-switch {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(225, 184, 102, .24);
}

.admin-category-btn {
  min-height: 40px;
  padding: 9px 14px;
  color: #d6dfeb;
  font-weight: 900;
  border: 1px solid rgba(225, 184, 102, .18);
  border-radius: 10px 10px 0 0;
  background: rgba(255, 250, 241, .04);
  cursor: pointer;
}

.admin-category-btn.active {
  color: #2f210e;
  border-color: var(--gold-2);
  background: #f2d597;
}

.admin-section-category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(225, 184, 102, .22);
  border-radius: 14px;
  background: rgba(255, 250, 241, .05);
}

.admin-section-category > span {
  color: rgba(245, 224, 188, .74);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-section-category-actions {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-access-notice {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  color: #f8f2e8;
  text-align: center;
  border: 1px solid rgba(225, 184, 102, .28);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .07);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.admin-access-notice h3 {
  margin: 8px 0 10px;
  color: #fff7e8;
  font-family: Cinzel, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.admin-access-notice p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 18px;
  color: #cfd8e3;
  line-height: 1.6;
}

.admin-section-btn {
  min-height: 42px;
  padding: 10px 14px;
  color: #f8f2e8;
  font-weight: 900;
  border: 1px solid rgba(225, 184, 102, .28);
  border-radius: 999px;
  background: rgba(255, 250, 241, .08);
  cursor: pointer;
}

.admin-section-btn.active {
  color: #2f210e;
  border-color: var(--gold-2);
  background: linear-gradient(180deg, #e1b866, #b88732);
  box-shadow: 0 12px 24px rgba(184, 135, 50, .18);
}

.admin-section-btn.attention:not(.active) {
  border-color: rgba(251, 191, 36, .58);
  background: rgba(180, 83, 9, .22);
}

.admin-badge.admin-badge-attention {
  color: #713f12;
  border-color: rgba(180, 83, 9, .36);
  background: #fef3c7;
}

.admin-workspace {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  color: var(--ink);
  border: 1px solid #d8c4a1;
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-section-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 1.25rem;
}

.admin-section-head strong {
  padding: 8px 12px;
  color: #2f210e;
  white-space: nowrap;
  border-radius: 999px;
  background: #efe4d1;
}

.admin-search-row {
  margin-bottom: 14px;
}

.admin-search-row label {
  color: #384354;
}

.admin-search-row input {
  max-width: 680px;
}

.admin-report-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #d8c4a1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf8 0%, #f6ead7 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.admin-report-panel[hidden] {
  display: none;
}

.admin-report-panel h4 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.admin-report-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #5a6473;
  line-height: 1.55;
}

.admin-report-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-report-controls label {
  width: min(100%, 260px);
  color: #384354;
}

.admin-report-controls .btn {
  min-height: 48px;
}

.admin-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-report-summary div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #eadcc7;
  border-radius: 12px;
  background: rgba(255, 253, 248, .82);
}

.admin-report-summary span {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-report-summary strong {
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 1.22rem;
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid #d8c4a1;
  border-radius: 14px;
  background: #fffdf8;
}

.admin-users-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--ink);
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  width: 14%;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  width: 13%;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  width: 12%;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  width: 8%;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  width: 10%;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  width: 24%;
}

.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) {
  width: 9%;
}

.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8) {
  width: 10%;
}

.admin-users-table th,
.admin-users-table td {
  min-width: 0;
  padding: 13px 10px;
  border-bottom: 1px solid #eadcc7;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.admin-users-table th {
  color: #7b4c0c;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f3eadb;
}

.admin-users-table td {
  color: #384354;
  font-size: .92rem;
}

.admin-users-table strong {
  display: block;
  color: var(--ink);
  font-size: .96rem;
  overflow-wrap: anywhere;
}

.admin-users-table span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.admin-users-table .btn {
  min-height: 40px;
  width: 100%;
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-document-cell {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-receipt-list {
  display: grid;
  gap: 8px;
}

.admin-receipt-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #eadcc7;
  border-radius: 12px;
  background: #fffaf1;
}

.admin-payment-card {
  gap: 8px;
}

.admin-receipt-card span {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.admin-file-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-file-button {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
  white-space: normal;
  border: 1px solid #d8c4a1;
  border-radius: 999px;
  background: #fffaf1;
  cursor: pointer;
}

.admin-payment-status {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-payment-status select {
  min-height: 36px;
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  color: var(--ink);
  font-size: .84rem;
  text-transform: none;
  border: 1px solid #d8c4a1;
  border-radius: 10px;
  background: #fffdf8;
}

.admin-delete-attachment-btn,
.admin-delete-user-btn,
.admin-delete-payment-btn {
  min-height: 38px;
  padding: 9px 12px;
}

.admin-delete-attachment-btn,
.admin-delete-payment-btn {
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  font-size: .78rem;
}

.admin-unreview-btn {
  color: #3b2a11;
  border-color: rgba(184, 135, 50, .5);
  background: #fffaf1;
}

.admin-problem-pending-btn {
  color: #3b2a11;
  border-color: rgba(184, 135, 50, .5);
  background: #fffaf1;
}

.admin-row-actions {
  display: grid;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.admin-review-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  color: #384354;
  font-size: .84rem;
  font-weight: 800;
  border: 1px solid #d8c4a1;
  border-radius: 999px;
  background: #fffaf1;
}

.admin-review-check input {
  width: 16px;
  height: 16px;
  accent-color: #b88732;
}

.admin-review-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(.45);
  opacity: .48;
  transform: none;
  box-shadow: none;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  min-height: 28px;
  padding: 5px 9px;
  color: #3b2a11;
  font-size: .76rem;
  font-weight: 800;
  border: 1px solid rgba(184, 135, 50, .32);
  border-radius: 999px;
  background: rgba(225, 184, 102, .22);
}

.admin-edit-dialog {
  width: min(96vw, 1240px);
  max-width: 1240px;
  height: min(94vh, 980px);
  max-height: 94vh;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  border: 1px solid #d8c4a1;
  border-radius: 26px;
  background: #fffaf0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.admin-edit-dialog::backdrop {
  background: rgba(3, 11, 20, .78);
  backdrop-filter: blur(5px);
}

.admin-edit-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.admin-edit-head,
.admin-edit-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #e7d6b7;
  background: linear-gradient(180deg, #fffdf8, #fff7e8);
}

.admin-edit-head {
  align-items: flex-start;
}

.admin-edit-head h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-family: Cinzel, serif;
}

.admin-edit-head p {
  margin-bottom: 0;
  color: #667085;
}

.admin-edit-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #3b2a11;
  font-size: 1.55rem;
  border: 1px solid rgba(184, 135, 50, .45);
  border-radius: 50%;
  background: #fffaf1;
  cursor: pointer;
}

.admin-edit-body {
  flex: 1 1 auto;
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 28px;
}

.admin-edit-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e4d1ad;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 28px rgba(53, 38, 18, .05);
}

.admin-edit-section .admin-edit-section {
  margin-top: 14px;
  padding: 14px;
  background: #fffaf1;
  box-shadow: none;
}

.admin-edit-section-head,
.admin-edit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-edit-section-head {
  margin-bottom: 14px;
}

.admin-edit-section-head h4,
.admin-edit-card-head strong {
  margin: 0;
  color: var(--ink);
}

.admin-edit-section-head h4 {
  font-family: Cinzel, serif;
}

.admin-edit-section-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: .88rem;
}

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

.admin-edit-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-edit-grid label {
  min-width: 0;
  color: #3b2a11;
  font-size: .78rem;
  font-weight: 900;
}

.admin-edit-grid label > span {
  display: block;
  margin: 3px 0 5px;
  color: #7a6b5a;
  font-size: .7rem;
  font-weight: 700;
}

.admin-edit-grid input,
.admin-edit-grid select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  margin-top: 6px;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid #d8c4a1;
  border-radius: 10px;
  background: #fffdf8;
}

.admin-edit-grid input[readonly] {
  color: #667085;
  background: #f2eadc;
}

.admin-edit-span-two {
  grid-column: span 2;
}

.admin-edit-wide {
  grid-column: 1 / -1;
}

.admin-edit-check {
  display: flex;
  grid-column: span 2;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  margin-top: 23px;
  padding: 10px 12px;
  border: 1px solid #d8c4a1;
  border-radius: 10px;
  background: #fff8ea;
}

.admin-edit-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #b88732;
}

.admin-edit-record-list,
.admin-edit-member-list {
  display: grid;
  gap: 12px;
}

.admin-edit-record,
.admin-edit-member {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ead9b9;
  border-radius: 14px;
  background: #fffdf8;
}

.admin-edit-card-head {
  margin-bottom: 12px;
}

.admin-edit-card-head span,
.admin-edit-protected,
.admin-edit-empty {
  color: #667085;
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.admin-edit-protected {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f4ede2;
}

.admin-edit-remove {
  padding: 7px 10px;
  color: #881337;
  font-size: .75rem;
  font-weight: 900;
  border: 1px solid rgba(159, 18, 57, .24);
  border-radius: 999px;
  background: #fff1f2;
  cursor: pointer;
}

.admin-edit-message {
  flex: 0 0 auto;
  min-height: 24px;
  margin: 0;
  padding: 8px 24px;
  color: #7b4c0c;
  background: #fff7e8;
}

.admin-edit-footer {
  justify-content: flex-end;
  border-top: 1px solid #e7d6b7;
  border-bottom: 0;
}

.admin-edit-footer .btn {
  min-width: 180px;
}

.admin-edit-footer .btn.ghost,
.admin-edit-section .btn.ghost {
  color: #3b2a11;
  border-color: rgba(184, 135, 50, .44);
  background: #fffaf1;
}

.admin-detail {
  margin-top: 18px;
  padding: 20px;
  color: var(--ink);
  border: 1px solid #d8c4a1;
  border-radius: var(--radius);
  background: #fffdf8;
}

.admin-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-detail-head h3,
.admin-detail-block h4 {
  margin: 0;
  color: var(--ink);
  font-family: Cinzel, serif;
}

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

.admin-detail-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #eadcc7;
  border-radius: 12px;
  background: #fffaf1;
}

.admin-detail-grid span,
.admin-detail-block li span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-detail-grid strong,
.admin-detail-block li strong {
  color: #fffaf1;
  overflow-wrap: anywhere;
}

.admin-detail-grid strong,
.admin-detail-block li strong {
  color: var(--ink);
}

.admin-detail-block {
  margin-top: 18px;
}

.admin-detail-block h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.admin-detail-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-detail-block li {
  padding: 12px;
  border: 1px solid #eadcc7;
  border-radius: 12px;
  background: #fffaf1;
  overflow-wrap: anywhere;
}

.admin-table-wrap.compact .admin-users-table {
  min-width: 0;
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav.open {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    background: #071523;
    box-shadow: var(--shadow-strong);
  }

  .main-nav.open a {
    padding: 13px 12px;
    border-radius: 10px;
  }

  .main-nav.open .account-link {
    margin-left: 0;
    padding: 13px 12px;
    text-align: center;
  }

  .main-nav.open .admin-header-link {
    padding: 13px 12px;
    text-align: center;
  }

  .main-nav.open a:hover {
    background: rgba(255, 255, 255, .06);
  }

  .main-nav.open a.is-active {
    background: rgba(225, 184, 102, .14);
  }

  .main-nav.open a::after {
    display: none;
  }

  .hero,
  .offer-section,
  .admin-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .logo-showcase {
    min-height: auto;
  }

  .group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: 1fr;
    max-width: 900px;
  }

  .login-card,
  .profile-card {
    position: static;
  }

}

@media (max-width: 760px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-seal {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: .8rem;
  }

  .brand span {
    display: none;
  }

  .section-pad {
    padding: 40px 16px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero h1 {
    font-size: 2.36rem;
  }

  .lead {
    font-size: 1rem;
  }

  .logo-showcase {
    padding: 14px 10px 16px;
  }

  .logo-showcase-title {
    margin-bottom: 14px;
    font-size: .86rem;
  }

  .hero-actions,
  .offer-copy .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .offer-copy .btn {
    width: 100%;
  }

  .trust-strip,
  .group-grid,
  .included-list,
  .offer-images,
  .crypto-addresses,
  .video-library,
  .form-grid,
  .upload-box,
  .admin-list,
  .admin-stats,
  .admin-detail-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .trust-strip div:first-child {
    border-top: 0;
  }

  .group-card img {
    height: 320px;
  }

  .transaction-meta {
    grid-template-columns: 1fr;
  }

  .offer-images img {
    height: auto;
    min-height: 0;
  }

  .profile-view {
    min-height: auto;
    padding-inline: 12px;
    padding-bottom: 14px;
    flex: 0 0 auto;
  }

  body.profile-open main {
    flex: 0 0 auto;
  }

  body.profile-open .site-footer {
    margin-top: 0;
  }

  .profile-toolbar {
    top: 65px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 auto 14px;
    padding: 10px 0 12px;
  }

  .profile-toolbar h2 {
    max-width: 100%;
    font-size: 1.06rem;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .profile-back {
    width: 100%;
    min-height: 42px;
    padding-inline: 14px;
    font-size: .82rem;
    justify-content: flex-start;
  }

  .profile-stage {
    padding: 8px;
    border-radius: 12px;
  }

  .profile-stage img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  }

  .logo-grid-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 216px 156px 156px;
    gap: 10px;
    min-height: auto;
  }

  .logo-grid-hero::before {
    inset: 126px 30px 94px;
    background:
      linear-gradient(90deg, transparent calc(50% - 1px), rgba(225, 184, 102, .34) calc(50% - 1px), rgba(225, 184, 102, .34) calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(0deg, transparent calc(58% - 1px), rgba(225, 184, 102, .34) calc(58% - 1px), rgba(225, 184, 102, .34) calc(58% + 1px), transparent calc(58% + 1px));
  }

  .logo-grid-hero figure:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(238px, 100%);
    height: 204px;
    grid-template-rows: 166px 24px;
    justify-self: center;
  }

  .logo-grid-hero figure:nth-child(2),
  .logo-grid-hero figure:nth-child(4) {
    grid-column: 1;
  }

  .logo-grid-hero figure:nth-child(3),
  .logo-grid-hero figure:nth-child(5) {
    grid-column: 2;
  }

  .logo-grid-hero figure:nth-child(2),
  .logo-grid-hero figure:nth-child(3) {
    grid-row: 2;
  }

  .logo-grid-hero figure:nth-child(4),
  .logo-grid-hero figure:nth-child(5) {
    grid-row: 3;
  }

  .logo-grid-hero figure {
    width: 100%;
    height: 150px;
    grid-template-rows: 102px 30px;
    padding: 9px;
  }

  .logo-grid-hero figcaption {
    min-height: 30px;
    font-size: .86rem;
  }

  .logo-grid-hero img {
    max-width: 126px;
    max-height: 96px;
  }

  .logo-grid-hero figure:first-child img {
    width: 166px;
    height: 166px;
    max-width: 100%;
    max-height: none;
  }

  .login-card,
  .register-card,
  .profile-card,
  .video-card {
    padding: 20px;
  }

  .profile-hero-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .profile-group {
    padding: 14px;
  }

  .profile-group-grid,
  .profile-group-grid.compact {
    grid-template-columns: 1fr;
  }

  .profile-field {
    min-height: 92px;
  }

  .profile-attachments li {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-attachments .document-view-btn {
    width: 100%;
  }

  .payment-card summary,
  .payment-card-body dl {
    grid-template-columns: 1fr;
  }

  .admin-edit-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .admin-edit-head,
  .admin-edit-body,
  .admin-edit-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-edit-head {
    gap: 10px;
  }

  .admin-edit-grid,
  .admin-edit-grid-four {
    grid-template-columns: 1fr;
  }

  .admin-edit-span-two,
  .admin-edit-wide,
  .admin-edit-check {
    grid-column: 1;
  }

  .admin-edit-check {
    margin-top: 0;
  }

  .admin-edit-section-head,
  .admin-edit-card-head,
  .admin-edit-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-edit-footer .btn,
  .admin-edit-add-member {
    width: 100%;
  }

  .certificate-investment-card {
    grid-template-columns: 1fr;
  }

  .certificate-investment-actions {
    width: 100%;
  }

  .certificate-investment-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .payment-card summary strong,
  .payment-status,
  .payment-card .document-view-btn {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-login-card,
  .admin-hero,
  .admin-workspace {
    padding: 18px;
  }

  .admin-hero,
  .admin-section-head,
  .admin-actions,
  .admin-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions .btn,
  .admin-detail-head .btn {
    width: 100%;
  }

  .admin-report-controls,
  .admin-report-summary {
    grid-template-columns: 1fr;
  }

  .admin-report-controls {
    display: grid;
  }

  .admin-report-controls label,
  .admin-report-controls .btn {
    width: 100%;
  }

  .document-viewer {
    width: min(94vw, 720px);
    padding: 14px;
    border-radius: 18px;
  }

  .document-viewer-head {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
  }

  .document-viewer-back {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .document-viewer-heading span {
    margin-bottom: 7px;
    padding: 6px 11px;
    font-size: .76rem;
  }

  .document-viewer-head h3 {
    font-size: clamp(1.35rem, 8vw, 2.25rem);
  }

  .document-viewer-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .document-viewer-link {
    flex: 1;
    min-width: 150px;
    text-align: center;
  }

  .document-viewer-body {
    min-height: 55vh;
    border-radius: 14px;
  }

  .document-viewer-stage {
    min-height: 55vh;
  }

  .document-viewer-image {
    max-height: 64vh;
  }

  .admin-document-cell {
    min-width: 0;
  }

  .admin-receipt-card {
    padding: 9px;
  }

  .admin-workspace > .admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table,
  .admin-workspace > .admin-table-wrap .admin-users-table tbody,
  .admin-workspace > .admin-table-wrap .admin-users-table tr,
  .admin-workspace > .admin-table-wrap .admin-users-table td {
    display: block;
    width: 100%;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table thead {
    display: none;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #d8c4a1;
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td {
    display: grid;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #eadcc7;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:last-child {
    border-bottom: 0;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td::before {
    grid-column: 1;
    grid-row: 1 / span 12;
    color: #7b4c0c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    content: "";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td > * {
    grid-column: 2;
    min-width: 0;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(1)::before {
    content: "Usuario";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(2)::before {
    content: "Documento";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(3)::before {
    content: "Contacto";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(4)::before {
    content: "Participaciones";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(5)::before {
    content: "Valor";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(6)::before {
    content: "Pagos";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(7)::before {
    content: "Estado";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(8)::before {
    content: "Acciones";
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(6),
  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(8) {
    grid-template-columns: 1fr;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(6)::before,
  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(8)::before {
    grid-row: auto;
    margin-bottom: 2px;
  }

  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(6) > *,
  .admin-workspace > .admin-table-wrap .admin-users-table td:nth-child(8) > * {
    grid-column: 1;
  }
}

@media (max-width: 420px) {
  .brand strong {
    max-width: 180px;
  }

  h1 {
    font-size: 2.22rem;
  }

  .hero h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .profile-view {
    padding-inline: 10px;
  }

  .profile-toolbar {
    top: 65px;
  }

  .profile-stage {
    padding: 6px;
  }

  .group-card img {
    height: 300px;
  }

  .document-viewer {
    width: 96vw;
    padding: 12px;
  }

  .document-viewer-head h3 {
    font-size: clamp(1.18rem, 8.5vw, 1.8rem);
  }

  .document-viewer-tools {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .document-viewer-zoom-controls,
  .document-viewer-link {
    width: 100%;
  }

  .document-viewer-tool,
  .document-viewer-zoom-value {
    flex: 1;
  }

}
