:root {
  --bg: #001b56;
  --bg-soft: #07215f;
  --accent: #4fd2a5;
  --accent-strong: #3ac495;
  --text: #f7f9ff;
  --muted: #d2daf6;
  --surface: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #041748 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("../images/background2.jpeg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(120deg, rgba(0, 12, 28, 0.68) 0%, rgba(0, 24, 42, 0.34) 48%, rgba(0, 10, 28, 0.68) 100%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand img {
  height: 216px;
  width: auto;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.instagram-btn img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 4rem;
  max-width: 760px;
}

.kicker {
  display: inline-block;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(79, 210, 165, 0.45);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

.btn {
  background: var(--accent);
  color: #04203a;
  font-weight: 800;
  padding: 0.78rem 1.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
}

.btn-sm {
  font-size: 0.92rem;
  padding: 0.62rem 1rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.95rem 1.35rem;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 4.7rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  margin: 0 0 0.7rem;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1rem;
}

.card h3 {
  margin: 0 0 0.6rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-dark {
  background: linear-gradient(180deg, #021341 0%, #001138 100%);
}

.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
}

.module-card h3 {
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.module-title {
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.module-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  line-height: 1.58;
}

.module-note {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.2rem;
}

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audience-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-weight: 500;
}

.cta-box {
  background: linear-gradient(180deg, rgba(79, 210, 165, 0.15) 0%, rgba(79, 210, 165, 0.08) 100%);
  border: 1px solid rgba(79, 210, 165, 0.32);
  border-radius: 8px;
  text-align: center;
}

.cta-box p {
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.faq details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.faq details + details {
  margin-top: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--muted);
  margin: 0.65rem 0 0;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 5;
  background: #25d366;
  color: #083217;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

@media (max-width: 920px) {
  .grid-3,
  .audience {
    grid-template-columns: 1fr;
  }

  .modules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .brand img {
    height: 174px;
  }

  .container {
    width: min(1120px, calc(100% - 1.3rem));
  }

  .section {
    padding: 3.3rem 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-buttons {
    width: 100%;
  }

  .intro-buttons .btn {
    width: 100%;
  }
}

.intro-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 4rem;
}

.intro-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.intro-buttons .btn {
  min-width: 220px;
  min-height: 62px;
  font-size: 1.2rem;
  font-weight: 800;
  border-width: 2px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.construction-wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.construction-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.construction-content h1 {
  margin-bottom: 0.8rem;
}

.construction-content p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.investments-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 1.1rem 0 2.4rem;
}

.investments-page .hero-bg,
.investments-page .hero-overlay {
  position: fixed;
  inset: 0;
}

.investments-header {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  justify-items: center;
  padding-top: 0;
}

.investments-header .brand {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.investments-header .brand img {
  height: 260px;
}

.investments-header h1 {
  margin-bottom: 0;
  text-align: center;
}

.investments-header p {
  color: var(--muted);
  margin: 0 auto 1rem;
  max-width: 760px;
}

.investment-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0 4.5rem;
}

.investment-posts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding: 0.25rem 0 1rem;
}

.investment-posts::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 210, 165, 0.72);
  border-radius: 999px;
  background: rgba(6, 25, 73, 0.82);
  color: var(--accent);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), 0 0 20px rgba(79, 210, 165, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(79, 210, 165, 0.18);
  transform: translateY(-50%) scale(1.04);
}

.carousel-arrow-prev {
  left: 1rem;
}

.carousel-arrow-next {
  right: 1rem;
}

.investment-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 0.65rem;
}

.post-card {
  scroll-snap-align: center;
  background: rgba(6, 25, 73, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.post-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-content {
  padding: 0.78rem 0.75rem 0.9rem;
}

.post-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(79, 210, 165, 0.45);
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.post-content h2 {
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  line-height: 1.25;
  margin: 0 0 0.48rem;
}

.post-content p {
  margin: 0 0 0.42rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.center-cta {
  justify-content: center;
}

.auth-body,
.app-body {
  min-height: 100vh;
}

.auth-page,
.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-page .hero-bg,
.auth-page .hero-overlay,
.app-shell .hero-bg,
.app-shell .hero-overlay {
  position: fixed;
  inset: 0;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.auth-card,
.app-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 2rem));
  background: rgba(6, 25, 73, 0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.auth-card-wide {
  width: min(820px, calc(100% - 2rem));
}

.auth-brand {
  display: inline-block;
  margin-bottom: 0.2rem;
}

.auth-brand img {
  height: 132px;
}

.auth-card h1,
.app-panel h1 {
  margin-bottom: 0.55rem;
}

.auth-subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.app-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.app-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

.app-form input,
.app-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  outline: none;
}

.app-form input:focus,
.app-form select:focus {
  border-color: rgba(79, 210, 165, 0.85);
  box-shadow: 0 0 0 3px rgba(79, 210, 165, 0.13);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-full {
  grid-column: 1 / -1;
}

.inline-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.alert {
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin: 0.9rem 0;
  font-weight: 700;
}

.alert.error {
  background: rgba(255, 89, 89, 0.14);
  border: 1px solid rgba(255, 89, 89, 0.35);
  color: #ffd6d6;
}

.alert.success {
  background: rgba(79, 210, 165, 0.14);
  border: 1px solid rgba(79, 210, 165, 0.35);
  color: #c8ffe9;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.app-nav {
  position: relative;
  z-index: 1;
}

.app-panel {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
}

.compact-panel {
  width: min(720px, calc(100% - 2rem));
  margin-top: 12vh;
}

.dashboard-grid,
.data-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.2rem 0;
}

.data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.data-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.metric-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.data-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.empty-state {
  color: var(--muted);
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td a {
  color: var(--accent);
  font-weight: 800;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.panel-back {
  margin-top: 1rem;
}

.panel-actions,
.certificate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.user-topbar {
  padding-top: 1.45rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border: 2px solid rgba(38, 238, 229, 0.7);
  border-radius: 9px;
  padding: 0.7rem 1.05rem;
  background: rgba(8, 38, 51, 0.62);
  color: #49f2ed;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 0 24px rgba(38, 238, 229, 0.12);
}

.user-view-panel {
  position: relative;
  z-index: 1;
  width: min(610px, calc(100% - 2rem));
  margin: 1.2rem auto 3rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 2px solid rgba(53, 236, 226, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(18, 35, 50, 0.78), rgba(10, 42, 50, 0.58)),
    rgba(4, 23, 42, 0.64);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    inset 0 0 44px rgba(67, 246, 237, 0.08),
    0 0 34px rgba(47, 231, 222, 0.18);
  backdrop-filter: blur(8px);
  text-align: center;
}

.panel-brand {
  margin: 0 0 0.35rem;
  color: #24e5dd;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800;
  text-shadow: 0 0 18px rgba(36, 229, 221, 0.28);
}

.invest-summary h1,
.certificates-panel h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.05rem);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.62);
}

.member-id {
  margin: 0.35rem 0 1.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.invest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(48, 229, 219, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.invest-grid article,
.certificate-button {
  min-height: 106px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 38, 50, 0.36);
  border-right: 1px solid rgba(48, 229, 219, 0.48);
  border-bottom: 1px solid rgba(48, 229, 219, 0.48);
}

.invest-grid article:nth-child(2),
.certificate-button {
  border-right: 0;
}

.invest-grid article:nth-child(3),
.certificate-button {
  border-bottom: 0;
}

.invest-grid span,
.total-card span {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 2.3vw, 1.15rem);
}

.invest-grid strong {
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2rem);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.certificate-button {
  gap: 0.45rem;
  background: linear-gradient(135deg, #19f8ed, #19d9cf);
  color: #062d36;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.18);
}

.doc-icon,
.file-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.total-card {
  margin-top: 0.55rem;
  padding: 1.05rem;
  border: 1px solid rgba(255, 215, 96, 0.88);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 213, 91, 0.1), rgba(8, 38, 50, 0.38));
}

.total-card strong {
  display: block;
  margin-top: 0.45rem;
  color: #f6d867;
  font-size: clamp(2.25rem, 6vw, 3.2rem);
  line-height: 1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.58);
}

.operation-strip {
  margin-top: 1rem;
  text-align: left;
}

.operation-strip h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.operation-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.68rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.operation-row strong {
  color: #fff;
}

.operation-row small {
  color: rgba(255, 255, 255, 0.64);
}

.certificates-panel {
  text-align: left;
  margin-top: clamp(2rem, 8vh, 5rem);
}

.panel-back-link {
  margin-bottom: 1.8rem;
}

.certificates-panel h1 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.certificate-list {
  display: grid;
  gap: 0.75rem;
}

.certificate-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(48, 229, 219, 0.54);
  border-radius: 10px;
  background: rgba(8, 38, 50, 0.36);
  box-shadow: inset 0 0 20px rgba(67, 246, 237, 0.04);
}

.file-icon {
  color: rgba(255, 255, 255, 0.65);
}

.certificate-item h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  line-height: 1.25;
}

.certificate-item a {
  color: #49f2ed;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .investment-carousel {
    padding: 0 3.8rem;
  }

  .form-grid,
  .inline-form,
  .dashboard-grid,
  .data-grid,
  .admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .user-topbar {
    gap: 0.75rem;
  }

  .invest-grid,
  .operation-row {
    grid-template-columns: 1fr;
  }

  .invest-grid article,
  .certificate-button {
    border-right: 0;
  }

  .invest-grid article:nth-child(3) {
    border-bottom: 1px solid rgba(48, 229, 219, 0.48);
  }

  .operation-row {
    gap: 0.25rem;
  }

  .investments-header .brand img {
    height: 210px;
  }

  .investment-posts {
    grid-auto-columns: minmax(230px, 78vw);
  }

  .investment-carousel {
    padding: 0 3rem;
  }

  .carousel-arrow {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.8rem;
  }

  .carousel-arrow-prev {
    left: 0.25rem;
  }

  .carousel-arrow-next {
    right: 0.25rem;
  }
}
