:root {
  --navy: #003366;
  --blue: #004481;
  --deep: #002855;
  --sky: #72d4ff;
  --link: #0066cc;
  --muted: #c8d0d8;
  --bg: #f5f7fa;
  --card: #f0f6fb;
  --line: #e2e7ec;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #fff;
  color: var(--navy);
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.page {
  margin: 0 auto;
  min-height: 100%;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 1.25rem 1.5rem;
}
.logo { height: 2rem; width: auto; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
}
.splash img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.splash[hidden] { display: none; }

.hero {
  background: linear-gradient(to bottom right, var(--blue), var(--deep));
  color: #fff;
  padding: 1.5rem 1.5rem 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}
.hero .amount {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 3rem;
  font-weight: 700;
}
.hero .hint { margin: 0.25rem 0 0; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.hero-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn:disabled {
  background: var(--muted);
  color: #fff;
  cursor: not-allowed;
}
.btn-white { background: #fff; color: var(--blue); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 0.85rem;
  font-size: 0.875rem;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: #002244; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--navy); }

.section { padding: 2rem 1.5rem; }
.muted { color: rgba(0,51,102,0.7); font-size: 0.875rem; line-height: 1.6; }
.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.steps li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.step-num {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.card {
  margin: 0 1.5rem;
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem 1.25rem;
}
.check {
  width: 1.25rem; height: 1.25rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.75rem; flex-shrink: 0;
}
.benefits { list-style: none; padding: 0; margin: 1rem 0 0; }
.benefits li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; margin-bottom: 0.75rem; }

.page-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(0,51,102,0.5);
  line-height: 1.6;
}
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  margin: 0 auto;
  max-width: 28rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  padding: 0.75rem 1rem;
}

.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1.5rem;
}
.page-header h1 { margin: 0; font-size: 1.25rem; }
.page-header .right {
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
}

.form { display: flex; flex: 1; flex-direction: column; padding: 0 1.5rem 2rem; }
.field { margin-bottom: 1rem; position: relative; }
.input {
  width: 100%;
  border: 2px solid var(--navy);
  border-radius: 0.75rem;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 1rem;
  color: var(--navy);
  outline: none;
}
.input:focus { border-color: #0055a4; }
.eye {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
}
.link { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--link); }
.error {
  margin-top: 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.success {
  margin-top: 1rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  color: #047857;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.form-end { margin-top: auto; padding-top: 4rem; }

.dash {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.dash-card {
  border: 2px solid var(--navy);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
}

.desktop-only { display: none; }
.mobile-only { display: block; }
body.landing { padding-bottom: 5.5rem; }

.blog { min-height: 100%; background: var(--bg); }
.blog-nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  color: rgba(0,51,102,0.7);
}
.blog-hero {
  background: linear-gradient(to right, var(--blue), var(--deep));
  color: #fff;
  padding: 4rem 2rem;
}
.blog-hero-inner { max-width: 72rem; margin: 0 auto; }
.blog-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.blog-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding: 3rem 2rem;
}
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.tag {
  border-radius: 999px;
  background: var(--card);
  color: var(--blue);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin { min-height: 100%; background: var(--bg); }
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}
.admin-tabs {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem 0.75rem;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0,51,102,0.7);
  background: var(--card);
}
.admin-tab.active {
  background: var(--blue);
  color: #fff;
}
.admin-wrap { max-width: 72rem; margin: 0 auto; padding: 1.5rem; }
.ip-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; }
.live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  color: #166534;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #22c55e;
}
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}
.stat.hl { background: #ecfdf5; border-color: #bbf7d0; }
.stat p { margin: 0; font-size: 0.875rem; color: rgba(0,51,102,0.6); }
.stat strong { display: block; margin-top: 0.5rem; font-size: 1.5rem; color: var(--blue); }
.stat.hl strong { color: #15803d; }
.table-wrap {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.table-wrap h2 { margin: 0; padding: 1rem 1.25rem 0; }
.table-wrap .sub { margin: 0.25rem 0 0; padding: 0 1.25rem 1rem; font-size: 0.875rem; color: rgba(0,51,102,0.6); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  background: var(--card);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}
td { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.badge-on, .badge-off {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-on { background: #dcfce7; color: #166534; }
.badge-off { background: #f3f4f6; color: #4b5563; }
.mobile-users { display: none; }
.user-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 0.75rem;
  transition: all 0.3s ease;
}

.btn-admin-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  color: #004481;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-admin-ctrl:hover {
  background: #e2eaf4;
  border-color: #004481;
}
.btn-admin-ctrl.active {
  background: #004481;
  color: #fff;
  border-color: #004481;
}

.admin-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100% - 3rem);
  pointer-events: none;
}
.admin-toast {
  pointer-events: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.18), 0 8px 10px -6px rgba(0,0,0,0.1);
  border-left: 5px solid #004481;
  padding: 0.85rem 1rem;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.admin-toast-user {
  border-left-color: #16a34a;
}
.admin-toast-sms {
  border-left-color: #0284c7;
}
.admin-toast-fade {
  opacity: 0;
  transform: translateX(30px);
}
.toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #111;
}
.toast-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0 0.25rem;
}
.toast-close:hover { color: #111; }
.toast-body {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.5;
}
.toast-highlight {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flashRow {
  0% { background-color: #bbf7d0; }
  50% { background-color: #dcfce7; }
  100% { background-color: transparent; }
}

tr.row-highlight {
  animation: flashRow 2.5s ease-in-out infinite alternate;
  background-color: #dcfce7 !important;
}
.user-card.row-highlight {
  border-color: #16a34a !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 2px #86efac;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .mobile-only, body.landing .sticky-cta { display: none; }
  .desktop-only { display: block; }
  .blog-grid { grid-template-columns: 2fr 1fr; }
  .caixa-blog-grid { grid-template-columns: 2fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .desktop-table { display: block; }
  .mobile-users { display: none; }
}
@media (max-width: 1023px) {
  .desktop-table { display: none; }
  .mobile-users { display: block; }
}

.caixa-login {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  min-height: 100%;
  max-width: 430px;
  padding: 1.15rem 1.35rem 1.5rem;
  background: #fff;
  color: #1d2024;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.caixa-blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.blob-orange {
  width: 170px;
  height: 170px;
  left: -90px;
  top: -30px;
  background: rgba(255, 166, 77, 0.55);
}
.blob-yellow {
  width: 130px;
  height: 130px;
  left: -30px;
  top: 10px;
  background: rgba(255, 214, 102, 0.45);
}
.blob-blue {
  width: 220px;
  height: 220px;
  right: -110px;
  top: -20px;
  background: rgba(0, 126, 174, 0.45);
}
.blob-cyan {
  width: 160px;
  height: 160px;
  right: -40px;
  top: 70px;
  background: rgba(80, 196, 230, 0.4);
}
.caixa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0 0.5rem;
}
.caixa-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #2a2a2a;
}
.caixa-star { display: block; flex-shrink: 0; }
.caixa-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #2a2a2a;
  line-height: 1.1;
  padding-bottom: 1px;
}
.caixa-menu {
  width: 40px;
  height: 32px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.caixa-menu span {
  display: block;
  height: 2px;
  width: 22px;
  background: #1d2024;
  margin-left: auto;
}
.caixa-hello {
  margin: 1.75rem 0 1.6rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}
.caixa-sub {
  margin: -0.9rem 0 1.4rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}
.caixa-form { display: flex; flex: 1; flex-direction: column; }
.caixa-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #111;
}
.caixa-input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 0 0.85rem;
  font-size: 1rem;
  color: #1d2024;
  background: #fff;
  outline: none;
  margin-bottom: 1.05rem;
}
.caixa-input:focus { border-color: #007eae; }
.caixa-pass { position: relative; }
.caixa-pass .caixa-input { padding-right: 2.6rem; margin-bottom: 0.85rem; }
.caixa-eye {
  position: absolute;
  right: 8px;
  top: 11px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.caixa-forgot {
  display: inline-block;
  margin: 0.15rem 0 1rem;
  color: #0077b3;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.caixa-actions {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.caixa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.caixa-btn-dark {
  background: #1d2024;
  color: #fff;
  border: 0;
}
.caixa-btn-dark:disabled {
  background: #b9b9b9;
  cursor: not-allowed;
}
.caixa-btn-ghost {
  background: #fff;
  color: #1d2024;
  border: 1px solid #1d2024;
}
.caixa-pay {
  margin: 0.2rem 0 1.4rem;
}
.caixa-pay-amount {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111;
  line-height: 1;
}
.caixa-pay-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #666;
}
.caixa-home-steps {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.55;
}
.caixa-home-steps li { margin-bottom: 0.55rem; }
.caixa-home-steps strong { color: #111; }

.caixa-blog {
  min-height: 100%;
  background: #f4f7f9;
  color: #1d2024;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}
.caixa-blog-header {
  background: #fff;
  border-bottom: 1px solid #e6eaee;
}
.caixa-blog-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 2rem;
}
.caixa-blog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}
.caixa-blog-nav .is-active {
  color: #007eae;
  font-weight: 700;
}
.caixa-blog-hero {
  background: linear-gradient(90deg, #007eae 0%, #006392 48%, #1d2024 100%);
  color: #fff;
  padding: 4rem 2rem;
}
.caixa-blog-hero-inner { max-width: 72rem; margin: 0 auto; }
.caixa-blog-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ee3f7;
}
.caixa-blog-hero h1 {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.caixa-blog-hero p {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.caixa-blog-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding: 3rem 2rem;
}
.caixa-blog-grid h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}
.caixa-article {
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  padding: 1.4rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.caixa-article + .caixa-article { margin-top: 1.15rem; }
.caixa-article h3 {
  margin: 0.55rem 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.35;
}
.caixa-article p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}
.caixa-tag {
  display: inline-block;
  border-radius: 999px;
  background: #e8f6fb;
  color: #007eae;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.caixa-blog-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.55;
}
.caixa-blog-list li {
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
}
.caixa-blog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #007eae;
}
.caixa-blog-stat {
  margin: 0.65rem 0 0.35rem !important;
  font-size: 1.85rem !important;
  font-weight: 800;
  color: #007eae !important;
  letter-spacing: -0.03em;
}
.caixa-blog-footer {
  border-top: 1px solid #e6eaee;
  background: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #777;
  line-height: 1.6;
}
