:root {
  color-scheme: dark;
  --bg: #02040b;
  --bg-elevated: rgba(8, 15, 31, 0.72);
  --bg-strong: rgba(5, 10, 22, 0.9);
  --line: rgba(190, 215, 255, 0.2);
  --line-strong: rgba(108, 182, 255, 0.5);
  --text: #f6f9ff;
  --muted: #aebbd1;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --mint: #2dd4bf;
  --amber: #f6c177;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@property --rail-y {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: -28vh;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(2, 4, 11, 0.98), rgba(7, 8, 24, 0.96) 48%, rgba(1, 17, 24, 0.98)),
    #02040b;
  color: var(--text);
  letter-spacing: 0;
}

body[data-page="home"] main,
body[data-page="home"] .site-footer {
  position: relative;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    radial-gradient(rgba(34, 211, 238, 0.24) 1px, transparent 1px);
  background-position: 0 0, 42px 58px;
  background-size: 96px 96px, 144px 144px;
  opacity: 0.22;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 92;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.2) 18%, #dffbff 46%, rgba(37, 99, 235, 0.92) 54%, rgba(139, 92, 246, 0.78) 66%, transparent 100%) left 8px top var(--rail-y) / 3px 28vh no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.2) 18%, #dffbff 46%, rgba(37, 99, 235, 0.92) 54%, rgba(139, 92, 246, 0.78) 66%, transparent 100%) right 8px top var(--rail-y) / 3px 28vh no-repeat,
    radial-gradient(ellipse at left center, rgba(34, 211, 238, 0.34), rgba(37, 99, 235, 0.18) 34%, transparent 68%) left 0 top var(--rail-y) / 86px 30vh no-repeat,
    radial-gradient(ellipse at right center, rgba(139, 92, 246, 0.32), rgba(34, 211, 238, 0.18) 34%, transparent 68%) right 0 top var(--rail-y) / 86px 30vh no-repeat,
    linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.22) 12%, rgba(37, 99, 235, 0.42) 50%, rgba(139, 92, 246, 0.22) 88%, transparent) left 8px top / 1px 100% no-repeat,
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.22) 12%, rgba(34, 211, 238, 0.42) 50%, rgba(37, 99, 235, 0.22) 88%, transparent) right 8px top / 1px 100% no-repeat;
  filter:
    drop-shadow(0 0 10px rgba(34, 211, 238, 0.62))
    drop-shadow(0 0 22px rgba(139, 92, 246, 0.38));
  opacity: 0.86;
  animation: side-neon-jump 4.8s ease-in-out infinite;
}

body[data-page="client"]::after {
  --rail-y: 50vh;
  animation: none;
  opacity: 0.88;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--text);
  color: #071021;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 6vw;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(2, 4, 11, 0.66), rgba(2, 4, 11, 0.08));
  transition: background 180ms ease, border-color 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(3, 8, 20, 0.82);
  backdrop-filter: blur(18px);
}

.site-video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(8, 35, 68, 0.86), transparent 58%),
    #02040b;
}

.site-video-backdrop *,
.hero-video-canvas,
.hero-video-source {
  pointer-events: none;
  user-select: none;
}

.site-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 211, 238, 0.12), transparent 32%),
    radial-gradient(circle at 18% 76%, rgba(37, 99, 235, 0.22), transparent 22%),
    radial-gradient(circle at 84% 72%, rgba(139, 92, 246, 0.2), transparent 22%),
    linear-gradient(90deg, rgba(2, 4, 11, 0.34), rgba(2, 4, 11, 0.08) 48%, rgba(2, 4, 11, 0.34)),
    linear-gradient(180deg, rgba(2, 4, 11, 0.16), rgba(2, 4, 11, 0.52));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

.brand-logo {
  width: 158px;
  height: auto;
}

.header-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client-logout-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid rgba(34, 211, 238, 0.62);
  border-radius: 8px;
  padding: 0 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 30, 54, 0.92), rgba(18, 23, 48, 0.92) 58%, rgba(76, 29, 149, 0.72));
  color: #e6fbff;
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.client-logout-button::before {
  position: absolute;
  inset: -70% auto -70% -42%;
  width: 34%;
  content: "";
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transition: left 480ms ease;
}

.client-logout-button > span {
  position: relative;
  z-index: 1;
}

.client-logout-icon {
  color: #67e8f9;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.client-logout-button:hover,
.client-logout-button:focus-visible {
  border-color: rgba(125, 249, 255, 0.96);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.28),
    0 12px 34px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.client-logout-button:hover::before,
.client-logout-button:focus-visible::before {
  left: 112%;
}

.client-logout-button:hover .client-logout-icon,
.client-logout-button:focus-visible .client-logout-icon {
  transform: translateX(2px);
}

.client-logout-button.is-leaving {
  opacity: 0.5;
  transform: translateX(-4px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-notice {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(34, 211, 238, 0.48);
  border-radius: 8px;
  padding: 12px 16px;
  background: rgba(3, 10, 24, 0.92);
  color: #e6fbff;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.18), 0 18px 52px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.page-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-notice-light {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.9);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #eff6ff;
  font-size: 0.93rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-button {
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(34, 211, 238, 0.11);
  transform: translateY(-1px);
}

.client-profile-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  border: 1px solid rgba(34, 211, 238, 0.72);
  border-radius: 999px;
  padding: 0 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.86), rgba(20, 28, 52, 0.94) 52%, rgba(139, 92, 246, 0.82));
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.22),
    0 12px 34px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.client-profile-chip::before {
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 38%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.75;
  transition: left 520ms ease;
}

.client-profile-chip span {
  position: relative;
  z-index: 1;
}

.client-profile-chip:hover,
.client-profile-chip:focus-visible {
  border-color: rgba(125, 249, 255, 0.96);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.34),
    0 16px 42px rgba(139, 92, 246, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.client-profile-chip:hover::before,
.client-profile-chip:focus-visible::before {
  left: 110%;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 116px 6vw 46px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(34, 211, 238, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(2, 4, 11, 0.18), rgba(2, 4, 11, 0.42));
}

.hero-video-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.98;
  filter: saturate(1.58) contrast(1.2) brightness(1.13);
  transform: scale(1.018);
  transform-origin: center;
  will-change: transform, filter;
}

.hero-video-source {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-video-source::-webkit-media-controls,
.hero-video-source::-webkit-media-controls-enclosure,
.hero-video-source::-webkit-media-controls-panel,
.hero-video-source::-webkit-media-controls-overlay-play-button,
.hero-video-source::-webkit-media-controls-start-playback-button,
.hero-video-source::-webkit-media-controls-picture-in-picture-button,
.hero-video-source::-webkit-media-controls-play-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(34, 211, 238, 0.06), transparent 42%),
    linear-gradient(90deg, rgba(2, 4, 11, 0.42), rgba(2, 4, 11, 0.08) 45%, rgba(3, 2, 12, 0.42)),
    linear-gradient(180deg, rgba(2, 4, 11, 0.18), rgba(2, 4, 11, 0.58));
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1.5px);
  background-size: 112px 112px;
  opacity: 0.18;
  animation: drift-stars 28s linear infinite;
}

.star-field-b {
  background-size: 176px 176px;
  opacity: 0.14;
  animation-duration: 44s;
  animation-direction: reverse;
}

.hero-content {
  width: min(920px, 100%);
  min-width: 0;
  text-align: center;
}

.logo-stage {
  position: relative;
  width: min(680px, 100%);
  margin: 0 auto 24px;
  padding: 16px;
}

.logo-stage::before {
  position: absolute;
  inset: 18% 2% 12%;
  z-index: -1;
  border-radius: 8px;
  content: "";
  background:
    radial-gradient(ellipse at 50% 52%, rgba(34, 211, 238, 0.24), transparent 58%),
    radial-gradient(ellipse at 18% 48%, rgba(37, 99, 235, 0.3), transparent 54%),
    radial-gradient(ellipse at 78% 50%, rgba(139, 92, 246, 0.2), transparent 52%);
  filter: blur(18px);
  opacity: 0.95;
}

.hero-logo {
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter:
    brightness(1.12)
    contrast(1.08)
    drop-shadow(0 18px 46px rgba(0, 0, 0, 0.74))
    drop-shadow(0 0 22px rgba(34, 211, 238, 0.24));
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.82), rgba(139, 92, 246, 0.18), rgba(45, 212, 191, 0.62), rgba(246, 193, 119, 0.2));
  background-size: 260% 260%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 7s ease infinite;
}

.hero-card {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.hero-copy {
  margin: 0 auto 20px;
  max-width: 680px;
  color: #ecf5ff;
  font-size: 1.16rem;
  line-height: 1.65;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(4, 12, 28, 0.54);
  color: #dcecff;
  font-size: 0.9rem;
  font-weight: 700;
}

.pill.is-accent {
  border-color: rgba(34, 211, 238, 0.42);
  color: #bff6ff;
}

.animated-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(91, 196, 255, 0.64);
  border-radius: 8px;
  padding: 0 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(17, 24, 39, 0.92) 58%, rgba(139, 92, 246, 0.86));
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.animated-button::after {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 34%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  transition: left 420ms ease;
}

.animated-button:hover,
.animated-button:focus-visible {
  border-color: rgba(34, 211, 238, 0.96);
  box-shadow: 0 20px 64px rgba(34, 211, 238, 0.24), 0 0 0 4px rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.animated-button:hover::after,
.animated-button:focus-visible::after {
  left: 104%;
}

.section {
  padding: 84px 6vw;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: 2.35rem;
  line-height: 1.12;
}

.section-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.service-grid,
.client-placeholder-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.service-card,
.placeholder-card,
.metric-card {
  min-height: 180px;
  padding: 22px;
}

.service-card h3,
.placeholder-card h3,
.metric-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.1rem;
}

.service-card p,
.placeholder-card p,
.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.metric-value {
  display: block;
  margin-top: 12px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0), rgba(4, 8, 18, 0.72)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08), rgba(45, 212, 191, 0.06));
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-point {
  border-left: 2px solid rgba(34, 211, 238, 0.66);
  padding: 8px 0 8px 14px;
  color: #dcecff;
}

.support-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #dcecff;
  font-size: 0.94rem;
  font-weight: 800;
}

.support-contact-panel {
  margin-top: 22px;
}

.whatsapp-link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  border: 1px solid rgba(45, 212, 191, 0.72);
  border-radius: 8px;
  padding: 10px 15px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(6, 78, 59, 0.42), rgba(8, 47, 73, 0.72)),
    rgba(2, 12, 24, 0.86);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.08) inset,
    0 0 18px rgba(45, 212, 191, 0.14);
  color: #e8fffb;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.whatsapp-link::after {
  position: absolute;
  inset: 0;
  transform: translateX(-125%);
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.18), transparent 72%);
  content: "";
  transition: transform 480ms ease;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  transform: translateY(-2px);
  border-color: #5eead4;
  background:
    linear-gradient(110deg, rgba(6, 95, 70, 0.58), rgba(8, 68, 96, 0.76)),
    rgba(2, 12, 24, 0.9);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.14) inset,
    0 0 24px rgba(45, 212, 191, 0.28);
}

.whatsapp-link:hover::after,
.whatsapp-link:focus-visible::after {
  transform: translateX(125%);
}

.whatsapp-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.95);
  animation: whatsapp-pulse 1.8s ease-in-out infinite;
}

.whatsapp-link-compact {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 8px;
  color: #dcecff;
  font-size: 0.93rem;
  font-weight: 800;
}

.field input,
.field textarea,
.custom-amount input,
.admin-balance-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(1, 6, 15, 0.62);
  color: #ffffff;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.custom-amount input:focus,
.admin-balance-form input:focus {
  border-color: rgba(34, 211, 238, 0.74);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09);
}

.form-message,
.modal-message {
  min-height: 24px;
  margin: 0;
  color: #bff6ff;
  line-height: 1.5;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 18px;
  place-items: center;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(720px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid rgba(180, 219, 255, 0.24);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(11, 18, 36, 0.96), rgba(4, 8, 18, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.modal-title {
  margin: 0 42px 6px 0;
  color: #ffffff;
  font-size: 1.5rem;
}

.modal-subtitle {
  margin: 0 42px 20px 0;
  color: var(--muted);
  line-height: 1.6;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  place-items: center;
}

.client-list {
  display: grid;
  gap: 10px;
}

.client-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.client-option:hover,
.client-option:focus-visible,
.client-option.is-selected {
  border-color: rgba(34, 211, 238, 0.62);
  background: rgba(34, 211, 238, 0.09);
  transform: translateY(-1px);
}

.client-option.is-selected {
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08), 0 18px 42px rgba(0, 0, 0, 0.26);
}

.client-option-main {
  display: grid;
  gap: 4px;
}

.client-option-name {
  color: #ffffff;
  font-weight: 900;
}

.client-option-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-status {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(246, 193, 119, 0.55);
  flex: 0 0 auto;
}

.client-status.is-active {
  background: var(--mint);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.62);
}

.client-access-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08)),
    rgba(4, 10, 24, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 56px rgba(0, 0, 0, 0.32);
}

.client-access-panel[hidden] {
  display: none;
}

.client-access-title {
  margin: 0 0 12px;
  color: #dcecff;
  line-height: 1.45;
}

.client-access-title strong {
  color: #ffffff;
}

.client-access-form {
  display: grid;
  gap: 12px;
}

.client-access-field {
  display: grid;
  gap: 8px;
  color: #dcecff;
  font-size: 0.92rem;
  font-weight: 800;
}

.client-access-field input {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(1, 6, 15, 0.72);
  color: #ffffff;
  outline: none;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.client-access-field input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1), inset 0 0 24px rgba(34, 211, 238, 0.06);
}

.client-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-access-submit {
  min-height: 42px;
  padding: 0 18px;
}

.client-access-cancel {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #dcecff;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.client-access-cancel:hover,
.client-access-cancel:focus-visible {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.11);
  transform: translateY(-1px);
}

.client-access-message {
  min-height: 22px;
  margin: 0;
  color: #bff6ff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.client-access-message.is-error {
  color: #fecdd3;
}

.client-access-message.is-success {
  color: #99f6e4;
}

.client-page {
  min-height: 100svh;
  padding-top: 96px;
}

.client-hero {
  padding: 56px 6vw 26px;
}

.client-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.1;
}

.client-hero p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.client-system-message {
  min-height: 20px;
  color: #fecdd3 !important;
  font-size: 0.9rem !important;
}

.client-system-message:empty {
  display: none;
}

.client-system-message.is-success {
  color: #99f6e4 !important;
}

.client-system-message.is-info {
  color: #bae6fd !important;
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.client-workspace {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 6vw 84px;
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-button,
.amount-option {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #dcecff;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tab-button.is-active,
.amount-option.is-selected,
.tab-button:hover,
.amount-option:hover {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.12);
  color: #ffffff;
}

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

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

.admin-balance-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  margin-top: 16px;
  padding: 22px;
}

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

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

.admin-balance-form label {
  display: grid;
  gap: 8px;
  color: #dcecff;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.admin-provider-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

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

.admin-provider-panel h3 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: 1.02rem;
}

.admin-provider-panel p {
  margin: 0;
  color: var(--muted);
}

.provider-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-option {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #dcecff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.provider-option.is-active,
.provider-option:hover,
.provider-option:focus-visible {
  border-color: rgba(45, 212, 191, 0.82);
  background: rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.18);
  color: #ffffff;
}

.provider-option:disabled {
  cursor: wait;
  opacity: 0.7;
}

.danger-neon-button {
  min-height: 46px;
  border: 1px solid rgba(251, 113, 133, 0.7);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(136, 19, 55, 0.18);
  color: #ffe4e6;
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.danger-neon-button:hover,
.danger-neon-button:focus-visible {
  border-color: #fb7185;
  background: rgba(190, 24, 93, 0.26);
  box-shadow: 0 0 28px rgba(244, 63, 94, 0.24);
}

.admin-balance-message {
  min-height: 22px;
  grid-column: 1 / -1;
  margin: 0;
  color: #bff6ff;
}

.admin-balance-message.is-success {
  color: #99f6e4;
}

.admin-balance-message.is-error {
  color: #fecdd3;
}

.wallet-balance {
  grid-column: span 2;
}

.table-card,
.recharge-panel,
.settings-panel,
.preparing-panel {
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px 12px;
  text-align: left;
}

th {
  color: #dcecff;
  font-size: 0.86rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.table-badge {
  display: inline-flex;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(34, 211, 238, 0.08);
  color: #bff6ff;
  font-weight: 800;
}

.receipt-button {
  min-height: 34px;
  border: 1px solid rgba(34, 211, 238, 0.56);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(34, 211, 238, 0.09);
  color: #bff6ff;
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.receipt-button:hover,
.receipt-button:focus-visible {
  border-color: rgba(139, 92, 246, 0.72);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

.receipt-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.panel-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.35rem;
}

.panel-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.amount-option[data-amount="custom"] {
  grid-column: 1 / -1;
}

.custom-amount {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  color: #dcecff;
  font-weight: 800;
}

.custom-amount[hidden] {
  display: none;
}

.settings-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.settings-list li {
  border-left: 2px solid rgba(139, 92, 246, 0.68);
  padding: 8px 0 8px 14px;
  color: #dcecff;
}

.integration-panel {
  display: grid;
  gap: 18px;
}

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

.integration-item,
.integration-endpoints label {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(1, 8, 20, 0.48);
  color: var(--muted);
  font-weight: 800;
}

.integration-item strong {
  color: #ffffff;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(34, 211, 238, 0.08);
  color: #bff6ff;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.status-badge.is-ready {
  border-color: rgba(45, 212, 191, 0.58);
  background: rgba(45, 212, 191, 0.1);
  color: #99f6e4;
}

.status-badge.is-warning {
  border-color: rgba(246, 193, 119, 0.58);
  background: rgba(246, 193, 119, 0.1);
  color: #fde68a;
}

.status-badge.is-error {
  border-color: rgba(251, 113, 133, 0.58);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.integration-endpoints {
  display: grid;
  gap: 12px;
}

.integration-endpoints code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(2, 4, 11, 0.76);
  color: #e0f7ff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 26px 6vw;
  color: var(--muted);
  text-align: center;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}

.reveal {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 520ms ease, opacity 520ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes drift-stars {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-112px, 112px, 0);
  }
}

@keyframes side-neon-jump {
  0% {
    --rail-y: -24vh;
    opacity: 0.72;
  }
  8% {
    opacity: 0.96;
  }
  38% {
    --rail-y: 78vh;
    opacity: 0.98;
  }
  46% {
    --rail-y: 92vh;
    opacity: 1;
  }
  55% {
    --rail-y: 74vh;
    opacity: 0.9;
  }
  63% {
    --rail-y: 90vh;
    opacity: 1;
  }
  71% {
    --rail-y: 82vh;
    opacity: 0.94;
  }
  100% {
    --rail-y: -24vh;
    opacity: 0.72;
  }
}

@media (max-width: 980px) {
  body[data-page="client"] .header-nav a[href$="#contato"] {
    display: none;
  }

  .service-grid,
  .client-placeholder-grid,
  .metric-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-balance-panel {
    grid-template-columns: 1fr;
  }

  .wallet-balance {
    grid-column: span 2;
  }

  .client-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body::after {
    background:
      linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.2) 18%, #dffbff 46%, rgba(37, 99, 235, 0.92) 54%, rgba(139, 92, 246, 0.78) 66%, transparent 100%) left 5px top var(--rail-y) / 2px 28vh no-repeat,
      linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.2) 18%, #dffbff 46%, rgba(37, 99, 235, 0.92) 54%, rgba(139, 92, 246, 0.78) 66%, transparent 100%) right 5px top var(--rail-y) / 2px 28vh no-repeat,
      radial-gradient(ellipse at left center, rgba(34, 211, 238, 0.3), rgba(37, 99, 235, 0.16) 34%, transparent 68%) left 0 top var(--rail-y) / 58px 30vh no-repeat,
      radial-gradient(ellipse at right center, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.16) 34%, transparent 68%) right 0 top var(--rail-y) / 58px 30vh no-repeat,
      linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.22) 12%, rgba(37, 99, 235, 0.42) 50%, rgba(139, 92, 246, 0.22) 88%, transparent) left 5px top / 1px 100% no-repeat,
      linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.22) 12%, rgba(34, 211, 238, 0.42) 50%, rgba(37, 99, 235, 0.22) 88%, transparent) right 5px top / 1px 100% no-repeat;
    opacity: 0.72;
  }

  body[data-page="client"]::after {
    --rail-y: 50vh;
    animation: none;
    opacity: 0.78;
  }

  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand-link {
    min-width: 112px;
    padding: 5px 7px;
  }

  .brand-logo {
    width: 126px;
  }

  .header-primary {
    gap: 7px;
  }

  .client-logout-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .header-nav {
    gap: 6px;
  }

  .nav-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .client-profile-chip {
    min-width: 50px;
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .home-hero {
    min-height: 100svh;
    padding: 104px 16px 36px;
  }

  .logo-stage {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
  }

  .hero-card,
  .contact-form,
  .table-card,
  .recharge-panel,
  .settings-panel,
  .preparing-panel {
    padding: 18px;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .pill {
    justify-content: center;
    min-height: 32px;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .section {
    padding: 64px 16px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .client-page {
    padding-top: 84px;
  }

  .client-hero {
    padding: 44px 16px 22px;
  }

  .client-hero h1 {
    font-size: 2.2rem;
  }

  .client-workspace {
    padding: 0 16px 64px;
  }

  .dashboard-grid,
  .amount-grid,
  .integration-grid,
  .admin-balance-form {
    grid-template-columns: 1fr;
  }

  .amount-option[data-amount="custom"],
  .admin-balance-actions,
  .admin-provider-panel,
  .admin-balance-message {
    grid-column: 1;
  }

  .provider-toggle-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wallet-balance {
    grid-column: auto;
  }

  .modal-panel {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  body[data-page="client"] .header-nav a[href$="#contato"] {
    display: none;
  }

  body[data-page="client"] .header-nav a[href$="index.html"] {
    display: none;
  }

  .site-header {
    gap: 8px;
  }

  .brand-link {
    min-width: 96px;
  }

  .brand-logo {
    width: 106px;
  }

  .client-logout-button {
    width: 40px;
    padding: 0;
  }

  .client-logout-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .page-notice {
    top: 82px;
  }
}

@media (max-width: 360px) {
  body[data-page="client"] .header-nav a[href$="#contato"] {
    display: none;
  }

  .client-profile-chip {
    min-width: 46px;
    padding: 0 9px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body::after {
    animation: none !important;
  }
}
