:root {
  --bg: #eef2f8;
  --bg-glow: rgba(37, 99, 235, 0.1);
  --sidebar: #060b16;
  --sidebar-2: #0c1630;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: #dbe3f0;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.1);
  --font: "Inter", system-ui, sans-serif;
  --sidebar-w: 280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

/* Brand / Logo */
.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
}
.brand-logo {
  height: 88px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.35));
}
.brand-logo-public { height: 64px; margin: 0 auto; }
.brand-logo-home { height: 80px; margin: 0 auto; }

/* App shell */
.app-body {
  min-height: 100vh;
  display: flex;
  color: #e8f1ff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(37,99,235,.32), transparent 55%),
    radial-gradient(700px 380px at -10% 110%, rgba(59,130,246,.16), transparent 50%),
    linear-gradient(160deg, #060b16 0%, #0c1630 42%, #08101f 100%);
}
.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 78%);
}
.app-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  width: var(--sidebar-w);
  background:
    radial-gradient(500px 280px at 20% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
    linear-gradient(180deg, var(--sidebar-2) 0%, var(--sidebar) 100%);
  border-right: 1px solid rgba(255,255,255,0.04);
  z-index: 1045;
}
.sidebar .offcanvas-header,
.sidebar .offcanvas-body { padding: 1.1rem 1rem; }
.sidebar .offcanvas-header {
  align-items: center;
}
.sidebar-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(147,197,253,.35);
  background: rgba(37,99,235,.16);
  color: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-close-btn:hover {
  background: rgba(37,99,235,.3);
  color: #fff;
}
.sidebar-close-btn svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.sidebar-brand-wrap {
  padding: .35rem .5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: .85rem;
}
.sidebar-caption {
  color: rgba(255,255,255,.4);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: .85rem .75rem .35rem;
}

.sidebar .nav-link {
  color: rgba(255,255,255,.72);
  border-radius: 12px;
  padding: .72rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 500;
  font-size: .94rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar .nav-link .nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  color: #93c5fd;
  flex-shrink: 0;
}
.sidebar .nav-link .nav-ico svg { width: 18px; height: 18px; }
.sidebar .nav-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateX(2px);
}
.sidebar .nav-link.active {
  background: linear-gradient(135deg, rgba(37,99,235,.38), rgba(37,99,235,.14));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.35);
}
.sidebar .nav-link.active .nav-ico {
  background: var(--accent);
  color: #06111f;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.25rem;
  background: rgba(8, 16, 31, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(147, 197, 253, .14);
  color: #e8f1ff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .text-muted { color: rgba(191,219,254,.55) !important; }
.topbar-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(147,197,253,.28);
  background: rgba(37,99,235,.18);
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-menu-btn:hover {
  background: rgba(37,99,235,.3);
  color: #fff;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(147,197,253,.25);
  background: rgba(255,255,255,.95);
  color: var(--text);
  border-radius: 999px;
  padding: .35rem .85rem .35rem .4rem;
  font-weight: 600;
  font-size: .92rem;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.content-wrap { padding: 1.25rem 1.35rem 2rem; flex: 1; }
.app-footer {
  padding: 1rem 1.35rem;
  color: rgba(191, 219, 254, .55);
  font-size: .82rem;
  border-top: 1px solid rgba(147, 197, 253, .12);
  text-align: center;
}
.app-body .page-title { color: #f0f7ff; }
.app-body .page-subtitle { color: rgba(191, 219, 254, .78); }

/* Textos fora dos cards: contraste no fundo azul */
.app-body .content-wrap .text-muted,
.app-body .content-wrap .page-header .text-muted,
.app-body .content-wrap .small.text-muted {
  color: rgba(191, 219, 254, .82) !important;
}
.app-body .content-wrap a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link) {
  color: #93c5fd;
}
.app-body .content-wrap a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):hover {
  color: #dbeafe;
}
.app-body .page-header .btn-outline-secondary,
.app-body .content-wrap > .btn-outline-secondary,
.app-body .page-header .btn-outline-light {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, .45);
  background: transparent;
}
.app-body .page-header .btn-outline-secondary:hover,
.app-body .content-wrap > .btn-outline-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .65);
}
.app-body .page-header .btn-outline-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, .55);
}
.app-body .page-header .btn-outline-danger:hover {
  color: #fff;
  background: rgba(220, 38, 38, .85);
  border-color: transparent;
}
.app-body .content-wrap > .empty-state,
.app-body .content-wrap > .alert + .empty-state {
  color: rgba(191, 219, 254, .75);
}

.app-body .card,
.app-body .card-panel,
.app-body .metric-card,
.app-body .table-responsive.card,
.app-body .filter-bar.card {
  color: var(--text);
}
.app-body .card .section-title,
.app-body .card-panel .section-title,
.app-body .metric-card .label,
.app-body .card .text-muted,
.app-body .card-panel .text-muted,
.app-body .metric-card .text-muted,
.app-body .filter-bar .text-muted,
.app-body .table-responsive .text-muted,
.app-body .alert .text-muted,
.app-body .card .small,
.app-body .card-panel .small,
.app-body .card .small.text-muted,
.app-body .card-panel .small.text-muted,
.app-body .metric-card .small.text-muted,
.app-body .filter-bar .small.text-muted,
.app-body .table-responsive .small.text-muted,
.app-body .card .text-muted strong,
.app-body .card-panel .text-muted strong {
  color: #475569 !important;
}
.app-body .card .progress-meta,
.app-body .card-panel .progress-meta,
.app-body .withdraw-banner .progress-meta,
.app-body .withdraw-goal .progress-meta {
  color: #475569 !important;
}
.app-body .card .section-title,
.app-body .card-panel .section-title {
  color: var(--text) !important;
}
.app-body .metric-card .label {
  color: #64748b !important;
}
.app-body .card a:not(.btn):not(.page-link),
.app-body .card-panel a:not(.btn):not(.page-link),
.app-body .table-responsive a:not(.btn):not(.page-link) {
  color: var(--accent-dark);
}
.app-body .card a:not(.btn):not(.page-link):hover,
.app-body .card-panel a:not(.btn):not(.page-link):hover {
  color: #1d4ed8;
}
.app-body .card .empty-state,
.app-body .card-panel .empty-state,
.app-body .table-responsive .empty-state {
  color: var(--muted);
}
.app-body .card .btn-outline-secondary,
.app-body .card-panel .btn-outline-secondary {
  color: #475569;
  border-color: #cbd5e1;
  background: #fff;
}
.app-body .card .btn-outline-secondary:hover,
.app-body .card-panel .btn-outline-secondary:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #94a3b8;
}
.app-body .card .btn-outline-danger,
.app-body .card-panel .btn-outline-danger {
  color: #dc2626;
  border-color: rgba(220, 38, 38, .45);
  background: #fff;
}
.app-body .card .btn-outline-danger:hover,
.app-body .card-panel .btn-outline-danger:hover,
.app-body .card .btn-outline-danger:focus,
.app-body .card-panel .btn-outline-danger:focus {
  color: #fff !important;
  background: #dc2626;
  border-color: #dc2626;
}
.app-body .card .btn-danger,
.app-body .card-panel .btn-danger {
  color: #fff;
  background: #b91c1c;
  border-color: #b91c1c;
}
.app-body .card .btn-danger:hover,
.app-body .card-panel .btn-danger:hover,
.app-body .card .btn-danger:focus,
.app-body .card-panel .btn-danger:focus {
  color: #fff !important;
  background: #991b1b;
  border-color: #991b1b;
}
.app-body .form-label { color: #334155; }
.app-body .form-text { color: #64748b; }

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb 55%, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  flex: 0 0 auto;
}
.profile-hero-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.profile-hero-email {
  color: var(--muted);
  font-size: .92rem;
  word-break: break-all;
}
.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}
.profile-card .profile-hint {
  color: var(--muted);
  font-size: .9rem;
  margin: -.25rem 0 1.1rem;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

@media (max-width: 767.98px) {
  .profile-hero,
  .profile-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-hero-meta { justify-content: center; }
  .profile-actions { justify-content: center; }
  .profile-actions .btn { width: 100%; }
}

.page-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.page-subtitle { color: var(--muted); font-size: .95rem; margin-top: .15rem; }
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-header .page-subtitle { margin-top: .25rem; }

.affiliate-page-header {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
.affiliate-actions-wrap {
  position: relative;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.aff-actions-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, .45);
  background: rgba(59, 130, 246, .22);
  color: #eff6ff;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(2, 8, 23, .18);
}
.aff-actions-toggle[aria-expanded="true"] {
  background: rgba(59, 130, 246, .4);
  color: #fff;
}
.affiliate-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  align-items: center;
  width: 100%;
  max-width: none;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: .15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.affiliate-actions form { margin: 0; flex: 0 0 auto; }
.affiliate-actions--compact {
  flex-wrap: wrap;
  overflow: visible;
}
.affiliate-edit-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.affiliate-edit-tools form { margin: 0; }
.aff-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(2, 8, 23, .18);
}
.aff-action:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.aff-action:active { transform: translateY(0); }
.aff-action-edit {
  color: #e2e8f0;
  background: rgba(148, 163, 184, .16);
  border-color: rgba(226, 232, 240, .28);
}
.aff-action-edit:hover {
  color: #fff;
  background: rgba(148, 163, 184, .28);
}
.aff-action-manager {
  color: #dbeafe;
  background: rgba(59, 130, 246, .18);
  border-color: rgba(96, 165, 250, .4);
}
.aff-action-manager:hover {
  color: #fff;
  background: rgba(59, 130, 246, .35);
}
.aff-action-network {
  color: #e0f2fe;
  background: rgba(14, 116, 144, .2);
  border-color: rgba(56, 189, 248, .4);
}
.aff-action-network:hover {
  color: #fff;
  background: rgba(14, 116, 144, .38);
}
.aff-action-links {
  color: #cffafe;
  background: rgba(6, 182, 212, .16);
  border-color: rgba(34, 211, 238, .35);
}
.aff-action-links:hover {
  color: #fff;
  background: rgba(6, 182, 212, .32);
}
.aff-action-links-on {
  color: #ecfdf5;
  background: rgba(16, 185, 129, .22);
  border-color: rgba(52, 211, 153, .45);
}
.aff-action-links-on:hover {
  color: #fff;
  background: rgba(16, 185, 129, .38);
}
.aff-action-stories {
  color: #fce7f3;
  background: rgba(236, 72, 153, .16);
  border-color: rgba(244, 114, 182, .4);
}
.aff-action-stories:hover {
  color: #fff;
  background: rgba(236, 72, 153, .32);
}
.aff-action-ok {
  color: #ecfdf5;
  background: rgba(16, 185, 129, .22);
  border-color: rgba(52, 211, 153, .45);
}
.aff-action-ok:hover {
  color: #fff;
  background: rgba(16, 185, 129, .4);
}
.aff-action-warn {
  color: #ffedd5;
  background: rgba(249, 115, 22, .2);
  border-color: rgba(251, 146, 60, .45);
}
.aff-action-warn:hover {
  color: #fff;
  background: rgba(249, 115, 22, .38);
}
.aff-action-danger {
  color: #fee2e2;
  background: rgba(239, 68, 68, .22);
  border-color: rgba(248, 113, 113, .5);
}
.aff-action-danger:hover {
  color: #fff;
  background: rgba(220, 38, 38, .5);
}

@media (max-width: 991.98px) {
  .affiliate-actions-wrap {
    justify-content: flex-end;
  }
  .aff-actions-toggle {
    display: inline-flex;
  }
  .affiliate-actions {
    display: none;
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    left: auto;
    z-index: 30;
    width: min(100%, 18.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    padding: .75rem;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 18px 40px rgba(2, 8, 23, .45);
    overflow: visible;
  }
  .affiliate-actions.is-open {
    display: flex;
  }
  .affiliate-actions form,
  .affiliate-actions > a.aff-action {
    width: 100%;
  }
  .affiliate-actions .aff-action {
    width: 100%;
    justify-content: flex-start;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-panel {
  padding: 1.15rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-panel:hover { box-shadow: var(--shadow-hover); }

/* Gamified metric cards */
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.05rem;
  min-height: 118px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric-accent, var(--accent));
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.metric-card .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
  min-height: 42px;
}
.metric-card .label {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.metric-card .value {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.metric-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--metric-soft, var(--accent-soft));
  color: var(--metric-accent, var(--accent-dark));
  flex-shrink: 0;
  align-self: center;
  line-height: 0;
}
.metric-ico svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.metric-bar {
  margin-top: .85rem;
  height: 6px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}
.metric-bar > span {
  display: block;
  height: 100%;
  width: var(--bar, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--metric-accent, var(--accent)), #93c5fd);
  transition: width .6s ease;
}

.period-pills .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .4rem .9rem;
}
.quest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #7c4a03;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.quest-banner:hover { color: #7c4a03; }
.quest-banner .quest-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: #f59e0b; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.finance-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  gap: .75rem;
}
.finance-row:last-child { border-bottom: 0; }
.finance-row .tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.xp-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 700;
}

.btn-primary, .btn-success {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  color: #fff;
}
.btn-primary:hover, .btn-success:hover,
.btn-primary:focus, .btn-success:focus {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: transparent;
  color: #fff;
}
.btn-outline-primary {
  color: var(--accent-dark);
  border-color: rgba(37,99,235,.35);
}
.btn-outline-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn-outline-success {
  color: var(--accent-dark);
  border-color: rgba(37,99,235,.35);
}
.btn-outline-success:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.campaign-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  background: #e8eef8;
}
.campaign-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 600;
}
.campaign-card .btn { width: 100%; }

/* Filtros de status (admin campanhas) */
.campaign-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.campaign-status-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(15, 23, 42, .35);
  color: #cbd5e1;
  border-radius: 999px;
  padding: .5rem .95rem;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.campaign-status-tab:hover {
  color: #eff6ff;
  border-color: rgba(96, 165, 250, .45);
  background: rgba(59, 130, 246, .16);
}
.campaign-status-tab.is-active {
  background: rgba(59, 130, 246, .28);
  border-color: rgba(96, 165, 250, .55);
  color: #eff6ff;
}
.campaign-status-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, .22);
  color: inherit;
  font-size: .72rem;
  font-weight: 750;
}
.campaign-status-tab.is-active .campaign-status-tab__count {
  background: rgba(255, 255, 255, .18);
}
.campaign-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 180px;
  padding: 2rem 1.25rem;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(59, 130, 246, .16), transparent 60%),
    rgba(15, 23, 42, .55);
  border: 1px dashed rgba(148, 163, 184, .28);
}
.campaign-empty strong {
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 750;
}
.campaign-empty p {
  margin: 0;
  color: rgba(191, 219, 254, .72);
  font-size: .9rem;
  max-width: 28rem;
  line-height: 1.45;
}
.campaign-empty .btn {
  margin-top: .35rem;
}

/* Affiliate campaign cards */
.aff-campaign-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.aff-campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, .28);
}
.aff-campaign-card__media {
  position: relative;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .22), transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}
.aff-campaign-card__media img {
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.aff-campaign-card__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 600;
}
.aff-campaign-card__badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 1;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.aff-campaign-card__status {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 1;
}
.aff-campaign-card__body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}
.aff-campaign-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--text);
}
.aff-campaign-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aff-campaign-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.aff-campaign-card__metric {
  padding: .75rem .8rem;
  border-radius: 14px;
  background: #f5f8fc;
  border: 1px solid rgba(219, 227, 240, .9);
  min-width: 0;
}
.aff-campaign-card__metric--highlight {
  background: linear-gradient(160deg, rgba(37,99,235,.12), rgba(59,130,246,.06));
  border-color: rgba(37, 99, 235, .22);
}
.aff-campaign-card__metric-label {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.aff-campaign-card__metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  word-break: break-word;
}
.aff-campaign-card__metric--highlight .aff-campaign-card__metric-value {
  color: var(--accent-dark);
}
.aff-campaign-card__metric--wide {
  grid-column: 1 / -1;
}

/* Grid 2x2 sempre (baseline, comissão, pagamento, cadastros) */
.aff-campaign-card__metrics {
  grid-template-columns: 1fr 1fr;
}
.aff-campaign-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.aff-campaign-card__actions .btn,
.aff-campaign-card__actions form .btn {
  width: 100%;
}
.aff-campaign-card__actions--admin {
  flex-direction: row;
  flex-wrap: wrap;
}
.aff-campaign-card__actions--admin .btn,
.aff-campaign-card__actions--admin form {
  flex: 1 1 8rem;
  margin: 0;
}
.aff-campaign-card__actions--admin form .btn {
  width: 100%;
}

.campaign-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
}
.campaign-grid--5 .aff-campaign-card {
  border-radius: 16px;
}
.campaign-grid--5 .aff-campaign-card__body {
  padding: .85rem .9rem 1rem;
  gap: .7rem;
}
.campaign-grid--5 .aff-campaign-card__metric {
  padding: .55rem .6rem;
  border-radius: 12px;
}
.campaign-grid--5 .aff-campaign-card__metric-label {
  font-size: .62rem;
}
.campaign-grid--5 .aff-campaign-card__metric-value {
  font-size: .92rem;
}
.campaign-grid--5 .aff-campaign-card__actions--admin .btn {
  font-size: .78rem;
  padding: .45rem .55rem;
}
.aff-campaign-card__rollover {
  text-align: center;
  padding: .55rem .7rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(14, 165, 233, .08));
  border: 1px solid rgba(37, 99, 235, .2);
  display: flex;
  flex-direction: column;
  gap: .1rem;
  align-items: center;
}
.aff-campaign-card__rollover span {
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.aff-campaign-card__rollover strong {
  color: #1d4ed8;
  font-size: .95rem;
  font-weight: 800;
}
@media (max-width: 1399.98px) {
  .campaign-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .campaign-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .campaign-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
  .campaign-grid--5 { grid-template-columns: 1fr; }
}

/* Parcerias (afiliado) — estilo deals/cards escuros */
.page-header.partner-page-header {
  width: 100%;
}
@media (max-width: 991.98px) {
  .page-header.partner-page-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .page-header.partner-page-header > div {
    width: 100%;
    text-align: center;
  }
  .page-header.partner-page-header .page-title {
    text-align: center;
    width: 100%;
  }
  .page-header.partner-page-header .page-subtitle {
    display: none;
  }
}
.partner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.partner-tab {
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .45);
  color: #cbd5e1;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .86rem;
  font-weight: 650;
}
.partner-tab.is-active {
  background: rgba(59, 130, 246, .28);
  border-color: rgba(96, 165, 250, .55);
  color: #eff6ff;
}
.partner-panel[hidden] { display: none !important; }

.partner-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 12px 28px rgba(2, 8, 23, .28);
  min-width: 0;
}
.partner-card.is-unavailable { opacity: .72; }
.partner-card__media {
  position: relative;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .22), transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}
.partner-card__media img {
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.partner-card__placeholder {
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 600;
}
.partner-card__status {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 1;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, .28);
  color: #bfdbfe;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.partner-card__status--pending {
  background: rgba(245, 158, 11, .22);
  color: #fde68a;
}
.partner-card__status--rejected {
  background: rgba(239, 68, 68, .2);
  color: #fecaca;
}
.partner-card__status--unavailable {
  background: rgba(148, 163, 184, .22);
  color: #e2e8f0;
}
.partner-card__status--active {
  background: rgba(16, 185, 129, .22);
  color: #a7f3d0;
}
.partner-card__rollover {
  margin: 0 1rem;
  padding: .7rem .85rem;
  border-radius: 14px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(16, 185, 129, .1));
  border: 1px solid rgba(96, 165, 250, .28);
}
.partner-card__rollover.is-empty {
  background: rgba(148, 163, 184, .08);
  border-color: rgba(148, 163, 184, .16);
}
.partner-card__rollover-label {
  display: block;
  margin-bottom: .15rem;
  color: #93c5fd;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.partner-card__rollover-value {
  display: block;
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}
.partner-card__rollover.is-empty .partner-card__rollover-value {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 650;
}
.partner-card__highlight {
  margin: 0 1rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .2), rgba(59, 130, 246, .12));
  border: 1px solid rgba(52, 211, 153, .35);
}
.partner-card__highlight-label {
  display: block;
  margin-bottom: .15rem;
  color: #6ee7b7;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.partner-card__highlight-value {
  display: block;
  color: #34d399;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
}
.partner-card__deal {
  margin: 0 1rem 1rem;
  background: rgba(2, 8, 23, .35);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  padding: .85rem;
}
.partner-card__deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .7rem;
}
.partner-card__deal-head strong {
  color: #f8fafc;
  font-size: .9rem;
}
.partner-card__deal-type {
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, .18);
  color: #6ee7b7;
  font-size: .72rem;
  font-weight: 700;
}
.partner-card__deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .75rem;
}
.partner-card__deal-label {
  display: block;
  color: #64748b;
  font-size: .68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .15rem;
}
.partner-card__deal-value {
  color: #e2e8f0;
  font-size: .95rem;
  font-weight: 750;
}
.partner-card__deal-value--money { color: #34d399; }
.partner-card__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: auto;
  padding: 0 1rem 1rem;
}
.partner-card__actions form { margin: 0; }
.partner-card__link-block {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.partner-card__link-caption {
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 650;
}
.partner-card__link-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  padding: .45rem .55rem;
  border-radius: 999px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, .18);
}
.partner-card__link-open,
.partner-card__link-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a78bfa;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.partner-card__link-open:hover,
.partner-card__link-copy:hover {
  color: #c4b5fd;
  background: rgba(167, 139, 250, .12);
}
.partner-card__link-copy.is-copied {
  color: #34d399;
}
.partner-card__link-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
  font-size: .72rem;
  line-height: 1.2;
}
.partner-card__note {
  padding: .7rem .8rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, .12);
  color: #cbd5e1;
  font-size: .8rem;
  line-height: 1.4;
}
.partner-card__note--warn {
  background: rgba(245, 158, 11, .14);
  color: #fde68a;
}
.partner-card__note--off {
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
}

.aff-campaign-card__note {
  margin: 0;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: .82rem;
  line-height: 1.4;
}
.aff-campaign-card__note--warn {
  background: rgba(245, 158, 11, .12);
  color: #92400e;
}
.aff-campaign-card__note--off {
  background: rgba(100, 116, 139, .12);
  color: #334155;
  text-align: center;
  font-weight: 700;
}
.aff-campaign-card.is-unavailable {
  opacity: .92;
}
.aff-campaign-card.is-unavailable .aff-campaign-card__media img {
  filter: grayscale(.35);
}
.aff-campaign-card__status {
  box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
}
.my-link-unavailable {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(100, 116, 139, .12);
  color: #334155;
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
}
.network-aff-rates-panel {
  margin: 0 .75rem .9rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}
.network-aff-rates-row > td {
  background: transparent !important;
}

@media (max-width: 767.98px) {
  .aff-campaign-card__title,
  .aff-campaign-card__desc {
    text-align: center;
  }
  .aff-campaign-card__metrics {
    grid-template-columns: 1fr 1fr;
  }
  .aff-campaign-card__metric {
    text-align: center;
  }
}
.finance-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.finance-row:last-of-type { border-bottom: 0; }
.finance-row .tag {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
}
.finance-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--finance-soft, var(--accent-soft));
  color: var(--finance-accent, var(--accent-dark));
  flex: 0 0 auto;
}
.finance-ico svg { width: 18px; height: 18px; display: block; }
.finance-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.finance-copy .tag,
.finance-copy strong {
  text-align: left;
}
.finance-copy strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.wallet-side .finance-row {
  justify-content: flex-start;
  width: 100%;
}
.wallet-actions {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.wallet-coin-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: .15rem auto 1rem;
}
.wallet-coin-lottie {
  width: min(42vw, 148px);
  height: min(42vw, 148px);
}
.wallet-coin-lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.wallet-extrato {
  text-align: center;
}
.wallet-extrato th,
.wallet-extrato td {
  vertical-align: middle !important;
  text-align: center;
}
.wallet-extrato .wallet-date-mobile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  gap: .1rem;
}
.wallet-extrato .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .34rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.1;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.status-ok {
  background: linear-gradient(180deg, rgba(34,197,94,.18), rgba(34,197,94,.1));
  color: #15803d;
  border-color: rgba(34,197,94,.22);
}
.status-wait {
  background: linear-gradient(180deg, rgba(245,158,11,.2), rgba(245,158,11,.1));
  color: #b45309;
  border-color: rgba(245,158,11,.24);
}
.status-bad {
  background: linear-gradient(180deg, rgba(239,68,68,.16), rgba(239,68,68,.08));
  color: #b91c1c;
  border-color: rgba(239,68,68,.2);
}
.status-off {
  background: linear-gradient(180deg, rgba(100,116,139,.16), rgba(100,116,139,.08));
  color: #475569;
  border-color: rgba(100,116,139,.22);
}
.status-neutral {
  background: rgba(100,116,139,.12);
  color: #475569;
  border-color: rgba(100,116,139,.16);
}

.progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
}
.progress-track-lg { height: 14px; }
.progress-track > span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd, #3b82f6 45%, #1d4ed8);
  transition: width .45s ease;
  overflow: hidden;
}
.progress-track > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: progressShine 2.2s ease-in-out infinite;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}
.withdraw-banner,
.withdraw-goal {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 160px at 10% 0%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(280px 120px at 95% 100%, rgba(14,165,233,.1), transparent 55%),
    #fff;
  border: 1px solid rgba(37,99,235,.12);
}
.withdraw-banner.is-ready,
.withdraw-goal.is-ready {
  background:
    radial-gradient(420px 160px at 10% 0%, rgba(34,197,94,.16), transparent 60%),
    radial-gradient(280px 120px at 95% 100%, rgba(74,222,128,.12), transparent 55%),
    #fff;
  border-color: rgba(34,197,94,.18);
}
.withdraw-banner.is-ready .progress-track > span,
.withdraw-goal.is-ready .progress-track > span {
  background: linear-gradient(90deg, #86efac, #22c55e 50%, #15803d);
}
.withdraw-goal {
  border-radius: 14px;
  padding: .95rem 1rem;
  margin-bottom: 1rem;
}
@keyframes progressShine {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}
.display-value {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.pix-saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.16);
  background:
    radial-gradient(280px 120px at 0% 0%, rgba(37,99,235,.1), transparent 65%),
    #f8fbff;
}
.pix-saved-card .tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .2rem;
}

@media (max-width: 767.98px) {
  .pix-saved-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .wallet-side,
  .withdraw-banner,
  .page-header {
    text-align: center;
  }
  .page-header { align-items: center; }
  .finance-row { justify-content: center; text-align: left; }
  .withdraw-banner .d-flex { justify-content: center !important; }
}

@media (max-width: 767.98px) {
  .campaign-card {
    text-align: center;
  }
  .campaign-card-title,
  .campaign-card-desc,
  .campaign-card-value {
    text-align: center;
  }
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
  }
}

.table-responsive {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: auto;
}
.badge-status { border-radius: 999px; padding: .35rem .7rem; font-weight: 600; }

/* Settings / forms */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.15rem;
}
.settings-tabs .nav-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem;
  color: var(--muted);
  font-weight: 600;
  background: #fff;
}
.settings-tabs .nav-link:hover {
  color: var(--accent-dark);
  border-color: rgba(37,99,235,.35);
}
.settings-tabs .nav-link.active {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.settings-card {
  padding: 1.4rem 1.35rem 1.5rem;
}
.settings-card .form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: .4rem;
}
.settings-card .form-control,
.settings-card .form-select {
  border-radius: 12px;
  border-color: var(--border);
  min-height: 46px;
  padding: .65rem .9rem;
}
.settings-card .form-control:focus,
.settings-card .form-select:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.settings-hint {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1.15rem;
}
.settings-grid .settings-field {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
}

/* Formulário de campanha (admin) */
.campaign-form__section {
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.campaign-form__section--last {
  border-bottom: 0;
  margin-bottom: .35rem;
  padding-bottom: .5rem;
}
.campaign-form__section-head {
  margin-bottom: .95rem;
}
.campaign-form__section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.campaign-form__section-desc {
  margin: .2rem 0 0;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.4;
}
.campaign-form__money {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.campaign-form__money > span {
  display: inline-flex;
  align-items: center;
  padding: 0 .85rem;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #eef2ff;
  color: #3730a3;
  font-size: .85rem;
  font-weight: 700;
}
.campaign-form__money .form-control {
  border-radius: 0 12px 12px 0;
}
.campaign-form__logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 140px;
  height: 100%;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(100, 116, 139, .35);
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .18), transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  text-align: center;
}
.campaign-form__logo-preview.is-empty {
  background: #f8fafc;
  border-style: dashed;
  border-color: var(--border);
}
.campaign-form__logo-preview img {
  max-height: 88px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.campaign-form__logo-preview span {
  color: #94a3b8;
  font-size: .78rem;
  line-height: 1.35;
}
.campaign-form__logo-preview.is-empty span {
  color: #64748b;
}
.campaign-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding-top: 1.15rem;
  margin-top: .5rem;
  border-top: 1px solid rgba(148, 163, 184, .22);
}
.campaign-form__assignments .table {
  margin-top: .25rem;
}
@media (max-width: 767.98px) {
  .campaign-form__footer .btn {
    width: 100%;
  }
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.filter-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  height: auto !important;
  flex-direction: unset !important;
}
.filter-bar:has(> :nth-child(3):last-child) {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) auto;
}
.filter-bar:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filter-bar > input[type="hidden"] {
  display: none !important;
}
.filter-bar > * {
  min-width: 0;
  max-width: 100%;
  width: auto;
  flex: none !important;
}
.filter-bar > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.filter-bar > .btn,
.filter-bar > button {
  width: auto !important;
  white-space: nowrap;
  min-height: 42px;
  align-self: end;
}
.filter-bar .form-control,
.filter-bar .form-select {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  min-height: 42px;
}
.filter-bar .form-label {
  margin-bottom: .35rem;
}
@media (max-width: 767.98px) {
  .filter-bar,
  .filter-bar:has(> :nth-child(3):last-child),
  .filter-bar:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }
  .filter-bar > .btn,
  .filter-bar > button {
    width: 100% !important;
  }
}

.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * {
  padding: .85rem 1rem;
  vertical-align: middle;
}
.table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
  border-bottom-color: var(--border);
}
.form-control, .form-select {
  border-radius: 12px;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* ========== Guest / Auth (dark gamified) ========== */
.guest-body {
  min-height: 100vh;
  margin: 0;
  color: #e8f1ff;
  position: relative;
  overflow-x: hidden;
  background: #060b16;
  display: block;
  padding: 0;
}
.guest-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(37,99,235,.32), transparent 55%),
    radial-gradient(700px 380px at -10% 110%, rgba(59,130,246,.16), transparent 50%),
    linear-gradient(160deg, #060b16 0%, #0c1630 42%, #08101f 100%);
  z-index: 0;
}
.guest-bg .ig-deco {
  position: absolute;
  opacity: .28;
  user-select: none;
  animation: floatDeco 12s ease-in-out infinite;
}
.ig-chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px dashed rgba(147,197,253,.55);
  background:
    radial-gradient(circle at center, rgba(30,64,175,.55) 0 38%, transparent 39%),
    radial-gradient(circle at center, rgba(59,130,246,.35) 0 100%);
  box-shadow: inset 0 0 0 6px rgba(96,165,250,.2);
}
.ig-chip-1 { top: 14%; left: 6%; animation-delay: -2s; }
.ig-chip-2 { bottom: 16%; right: 8%; width: 48px; height: 48px; animation-delay: -7s; opacity: .22; }
.ig-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 52px;
  height: 72px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #bfdbfe;
  background: linear-gradient(160deg, rgba(30,58,138,.55), rgba(15,23,42,.7));
  border: 1px solid rgba(147,197,253,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.ig-card-1 { top: 22%; right: 10%; transform: rotate(12deg); animation-delay: -4s; }
.ig-card-2 { bottom: 24%; left: 8%; color: #93c5fd; transform: rotate(-14deg); animation-delay: -9s; opacity: .22; }
.ig-dice {
  font-size: 2.4rem;
  color: rgba(147,197,253,.7);
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(37,99,235,.25));
}
.ig-dice-1 { top: 48%; left: 4%; animation-delay: -5s; }
.ig-dice-2 { top: 58%; right: 5%; font-size: 1.9rem; animation-delay: -8s; opacity: .2; }
.ig-spade,
.ig-club {
  font-size: 3rem;
  color: rgba(96,165,250,.35);
  line-height: 1;
}
.ig-spade { top: 8%; right: 22%; animation-delay: -1s; }
.ig-club { bottom: 10%; left: 20%; font-size: 2.4rem; animation-delay: -6s; opacity: .2; }
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 78%);
  opacity: .35;
}
@keyframes floatDeco {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.guest-frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1.25rem;
}
.guest-shell {
  width: min(100%, 440px);
}
.guest-footer {
  margin-top: 1.25rem;
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(219,234,254,.55);
  font-size: .82rem;
}
.guest-footer a { color: rgba(219,234,254,.75); text-decoration: none; }
.guest-footer a:hover { color: #60a5fa; }

.guest-alert {
  border-radius: 14px;
  padding: .85rem 1rem;
  margin-bottom: .9rem;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.guest-alert-success {
  background: rgba(37,99,235,.14);
  border-color: rgba(59,130,246,.35);
  color: #bfdbfe;
}
.guest-alert-error {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.35);
  color: #fecaca;
}

.auth-card {
  width: 100%;
  position: relative;
  border-radius: 24px;
  padding: 1.75rem 1.4rem 1.5rem;
  background: rgba(10, 18, 36, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 24px 60px rgba(0,0,0,.45),
    0 0 80px rgba(37,99,235,.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: authIn .45s ease;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: .2rem;
}
.auth-logo {
  height: 118px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(37,99,235,.35));
}
.auth-logo-lg { height: 132px; max-width: 360px; }
.auth-head {
  text-align: center;
  margin-bottom: .15rem;
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(37,99,235,.16);
  border: 1px solid rgba(96,165,250,.35);
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.auth-title {
  margin: 0 0 .4rem;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #f0f7ff;
}
.auth-subtitle {
  margin: 0 0 1.35rem;
  color: rgba(219,234,254,.62);
  font-size: .95rem;
  line-height: 1.5;
}
.auth-form { margin: 0; }
.auth-label {
  display: block;
  margin: 0 0 .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(219,234,254,.78);
}
.auth-field {
  position: relative;
  margin-bottom: .95rem;
}
.auth-field-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #93c5fd;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.auth-field-ico svg { width: 18px; height: 18px; display: block; stroke-width: 2.2; }
.auth-input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.28);
  color: #e8f1ff;
  padding: .7rem 1rem .7rem 2.55rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8f1ff;
  caret-color: #e8f1ff;
  border-color: rgba(59,130,246,.65);
  box-shadow: 0 0 0 1000px #0b1528 inset;
  transition: background-color 99999s ease-in-out 0s;
}
.auth-field-password .auth-input {
  padding-right: 3rem;
}
.auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.auth-eye:hover { color: #e0f2fe; background: rgba(59,130,246,.18); }
.auth-eye svg { width: 20px; height: 20px; display: block; stroke-width: 2.2; }
.auth-input::placeholder { color: rgba(219,234,254,.35); }
.auth-input:focus {
  border-color: rgba(59,130,246,.65);
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
  background: rgba(0,0,0,.38);
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: .2rem 0 1.15rem;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(219,234,254,.7);
  font-size: .88rem;
  margin: 0;
  cursor: pointer;
}
.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}
.auth-terms {
  align-items: flex-start;
  margin: .35rem 0 1.1rem;
  line-height: 1.35;
}
.auth-terms a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
}
.auth-terms a:hover { color: #fff; text-decoration: underline; }
.auth-btn:disabled,
.auth-btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.auth-link {
  color: #93c5fd;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { color: #bfdbfe; }
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa, #2563eb 55%, #1d4ed8);
  color: #06111f;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37,99,235,.4);
  transition: transform .15s ease, filter .15s ease;
}
.auth-btn:hover {
  color: #06111f;
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.auth-btn:active { transform: translateY(0); }
.auth-progress {
  margin-top: 1.15rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.auth-progress > span {
  display: block;
  height: 100%;
  width: 55%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #93c5fd);
  animation: authBar 1.6s ease-in-out infinite alternate;
}
@keyframes authBar {
  from { width: 28%; }
  to { width: 78%; }
}
.auth-note {
  margin-top: .9rem;
  text-align: center;
  color: rgba(219,234,254,.45);
  font-size: .78rem;
}
.auth-switch {
  margin-top: 1.05rem;
  text-align: center;
  color: rgba(219,234,254,.62);
  font-size: .9rem;
}
.auth-switch a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover { color: #fff; text-decoration: underline; }
.auth-optional {
  color: rgba(219,234,254,.4);
  font-weight: 500;
  font-size: .82em;
}
.auth-back {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(219,234,254,.7);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.auth-back:hover { color: #93c5fd; }
.auth-back-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bfdbfe;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(96,165,250,.28);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.auth-back-icon svg { width: 20px; height: 20px; display: block; }
.auth-back-icon:hover {
  color: #fff;
  background: rgba(37,99,235,.28);
  transform: translateX(-1px);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin: 0 0 1.35rem;
}
.home-stats > div {
  border-radius: 14px;
  padding: .75rem .4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.home-stats strong {
  display: block;
  color: #93c5fd;
  font-size: .95rem;
  font-weight: 800;
}
.home-stats span {
  color: rgba(219,234,254,.5);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.public-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(14,165,233,.14), transparent 28%),
    linear-gradient(160deg, #06101f 0%, #0b1b33 45%, #07111f 100%);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  color: #fff;
}
.guest-card, .public-card {
  width: 100%; max-width: 440px;
  background: rgba(10, 24, 18, 0.82);
  color: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 20px; padding: 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  backdrop-filter: blur(14px);
}
.public-shell { width: 100%; max-width: 520px; }
.public-disclaimer {
  color: rgba(191, 219, 254, .62);
  font-size: .78rem;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.45;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.public-card .text-muted { color: rgba(236,253,245,.62) !important; }
.public-card .btn-primary {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border: 0;
  color: #fff;
  font-weight: 800;
}
.public-card .btn-outline-success,
.public-card .btn-success {
  border-radius: 12px;
}

.quest-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 10% 0%, rgba(37,99,235,.22), transparent 60%),
    rgba(8, 16, 32, .88);
  border: 1px solid rgba(96, 165, 250, .22);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  color: #e8f1ff;
}
.quest-card-next { margin-top: 1rem; }
.quest-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(37,99,235,.22);
  border: 1px solid rgba(96,165,250,.35);
  color: #bfdbfe;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.quest-badge-ok {
  background: rgba(34,197,94,.18);
  border-color: rgba(74,222,128,.35);
  color: #bbf7d0;
}
.quest-card-center {
  text-align: center;
}
.quest-house {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
  text-align: left;
}
.quest-house-stack {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-align: center;
  margin-bottom: 1.15rem;
}
.quest-house-logo {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  flex-shrink: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.quest-house-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.quest-house-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(191,219,254,.7);
  font-weight: 700;
}
.quest-house-name {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}
.quest-house-meta strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}
.quest-house-campaign {
  color: rgba(191,219,254,.72);
  font-size: .88rem;
}
.quest-card-center .quest-title,
.quest-card-center .quest-lead {
  text-align: center;
}
.quest-card-center .quest-steps {
  text-align: left;
}
.quest-card-center .quest-steps-simple li {
  justify-content: flex-start;
}
.quest-title {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .45rem;
}
.quest-title-sm { font-size: clamp(1.2rem, 3.5vw, 1.45rem); }
.quest-lead {
  color: rgba(191,219,254,.78);
  margin-bottom: 1rem;
}
.quest-reward {
  text-align: center;
  margin: 0 0 1.15rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  background:
    radial-gradient(280px 120px at 50% 0%, rgba(34,197,94,.22), transparent 70%),
    rgba(255,255,255,.04);
  border: 1px solid rgba(74,222,128,.28);
}
.quest-reward-sm { padding: .85rem; margin-bottom: 1rem; }
.quest-reward-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
  color: #86efac;
}
.quest-reward-value {
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.1;
  margin: .2rem 0;
}
.quest-reward-hint {
  color: rgba(187,247,208,.8);
  font-size: .85rem;
}
.quest-steps-simple li {
  align-items: center;
}
.quest-steps-simple strong {
  margin: 0;
  font-weight: 600;
  font-size: .95rem;
  color: rgba(226,232,240,.95);
}
.quest-alert {
  text-align: left;
  border-radius: 14px;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .28);
  color: #fde68a;
  font-size: .9rem;
  line-height: 1.45;
}
.quest-alert strong { color: #fef3c7; }
.quest-note,
.quest-checklist {
  text-align: left;
  border-radius: 14px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(147,197,253,.16);
  color: rgba(226,232,240,.9);
  font-size: .92rem;
}
.quest-note-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
  color: #93c5fd;
  margin-bottom: .35rem;
}
.quest-checklist-title {
  font-weight: 700;
  margin-bottom: .45rem;
  color: #e2e8f0;
}
.quest-checklist ul {
  margin: 0;
  padding-left: 1.1rem;
}
.quest-checklist li { margin-bottom: .35rem; }
.quest-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: .85rem;
  counter-reset: none;
}
.quest-steps li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  text-align: left;
  padding: .95rem .9rem;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(147,197,253,.14);
}
.quest-step-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 8px 16px rgba(37,99,235,.28);
}
.quest-steps strong {
  display: block;
  margin-bottom: .3rem;
  font-size: .98rem;
  line-height: 1.3;
}
.quest-steps p {
  margin: 0;
  color: rgba(191,219,254,.8);
  font-size: .9rem;
  line-height: 1.45;
}
.quest-step-tip {
  margin-top: .55rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(96,165,250,.22);
  color: #bfdbfe;
  font-size: .82rem;
  line-height: 1.4;
}
.quest-cta { font-weight: 800; letter-spacing: .02em; }
.quest-code {
  margin-top: .85rem;
  color: rgba(191,219,254,.7);
  font-size: .82rem;
  text-align: center;
}
.quest-dropzone {
  background: rgba(255,255,255,.03) !important;
  border-color: rgba(147,197,253,.35) !important;
  color: rgba(226,232,240,.9);
}
.quest-dropzone small { color: rgba(191,219,254,.65); }
.quest-steps-simple li.is-locked {
  opacity: .45;
}
.quest-steps-simple li.is-current .quest-step-num {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
.quest-steps-simple li.is-done .quest-step-num {
  background: linear-gradient(135deg, #34d399, #16a34a);
}
.quest-funnel-note {
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(148, 163, 184, .14);
  color: rgba(226, 232, 240, .85);
  font-size: .9rem;
  text-align: center;
  font-weight: 600;
}
.quest-funnel .quest-mission-bar {
  margin-bottom: 1.15rem;
}
.quest-mission-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 58, 138, .45);
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .2);
}
.quest-mission-fill {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  box-shadow: 0 0 16px rgba(34, 197, 94, .35);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.quest-mission-pips {
  display: flex;
  justify-content: space-between;
  margin-top: .65rem;
  padding: 0 .15rem;
}
.quest-pip {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: rgba(191, 219, 254, .55);
  background: rgba(15, 23, 42, .7);
  border: 1px solid rgba(96, 165, 250, .25);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.quest-pip.is-active {
  color: #fff;
  background: #2563eb;
  border-color: rgba(147, 197, 253, .7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
  transform: scale(1.08);
}
.quest-pip.is-done {
  color: #052e16;
  background: #4ade80;
  border-color: rgba(134, 239, 172, .8);
}
.quest-mission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .7rem;
}
.quest-xp-chip {
  display: inline-flex;
  align-items: center;
  padding: .22rem .65rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, .16);
  border: 1px solid rgba(250, 204, 21, .35);
  color: #fde68a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.quest-mission-label {
  color: rgba(191, 219, 254, .78);
  font-size: .78rem;
  font-weight: 700;
}
.quest-stage {
  text-align: center;
}
.quest-stage[hidden] {
  display: none !important;
}
.quest-stage-enter {
  animation: questStageIn .42s cubic-bezier(.22, 1, .36, 1);
}
@keyframes questStageIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.quest-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .7rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, .22);
  border: 1px solid rgba(96, 165, 250, .4);
  color: #bfdbfe;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.quest-stage-badge--next {
  background: rgba(34, 197, 94, .16);
  border-color: rgba(74, 222, 128, .4);
  color: #bbf7d0;
}
.quest-stage-badge--final {
  background: rgba(168, 85, 247, .18);
  border-color: rgba(216, 180, 254, .4);
  color: #e9d5ff;
}
.quest-stage-done-toast {
  display: inline-flex;
  margin-bottom: .65rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .18);
  border: 1px solid rgba(74, 222, 128, .35);
  color: #bbf7d0;
  font-size: .78rem;
  font-weight: 700;
  animation: questToastPop .5s ease;
}
@keyframes questToastPop {
  0% { opacity: 0; transform: scale(.9); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { transform: scale(1); }
}
.quest-reward-pulse {
  position: relative;
  overflow: hidden;
}
.quest-reward-pulse::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation: questShine 2.8s ease-in-out infinite;
}
@keyframes questShine {
  0% { transform: translateX(0); }
  100% { transform: translateX(420%); }
}
.quest-complete {
  position: relative;
  padding: .35rem 0 .15rem;
}
.quest-complete-burst {
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(34, 197, 94, .22), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, .18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(250, 204, 21, .14), transparent 40%);
  pointer-events: none;
  animation: questBurst .8s ease-out;
}
@keyframes questBurst {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}
.quest-complete-badge {
  display: inline-flex;
  margin-bottom: .75rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .2);
  border: 1px solid rgba(74, 222, 128, .45);
  color: #bbf7d0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quest-card .btn-outline-light {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, .35);
}
.quest-card .btn-outline-light:hover {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #e2e8f0;
}
.quest-whatsapp {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(147,197,253,.14);
}
.quest-whatsapp-stack {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(147,197,253,.14);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.btn-whatsapp {
  background: linear-gradient(135deg, #34d399, #16a34a);
  border: 0;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(22, 163, 74, .28);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff !important;
}
.btn-whatsapp-group {
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  border: 0;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .28);
}
.btn-whatsapp-group:hover {
  background: linear-gradient(135deg, #14b8a6, #115e59);
  color: #fff !important;
}
.quest-card .btn-primary {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border: 0;
  color: #fff;
  font-weight: 800;
}
.quest-card .btn-success {
  background: linear-gradient(135deg, #34d399, #059669);
  border: 0;
  color: #fff;
  font-weight: 800;
}
.quest-card .btn-outline-light {
  border-color: rgba(226,232,240,.35);
  color: #e2e8f0;
}

.proof-image { max-height: 70vh; object-fit: contain; background: #0b1220; }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

/* Empty states do admin (tema escuro legível) */
.admin-empty,
.app-body .content-wrap .card.empty-state,
.app-body .content-wrap .campaign-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 160px;
  padding: 2rem 1.25rem;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(59, 130, 246, .16), transparent 60%),
    rgba(15, 23, 42, .55);
  border: 1px dashed rgba(148, 163, 184, .28);
  box-shadow: none;
  color: #e2e8f0;
}
.admin-empty strong,
.app-body .content-wrap .card.empty-state,
.app-body .content-wrap .campaign-empty strong {
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 750;
}
.admin-empty p,
.app-body .content-wrap .campaign-empty p {
  margin: 0;
  color: rgba(191, 219, 254, .72);
  font-size: .9rem;
  max-width: 28rem;
  line-height: 1.45;
}
.admin-empty .btn,
.app-body .content-wrap .campaign-empty .btn {
  margin-top: .35rem;
}
.app-body .content-wrap .card > .empty-state,
.app-body .content-wrap .table-responsive > .empty-state,
.app-body .content-wrap .card-panel > .empty-state {
  margin: .85rem;
  border-radius: 14px;
  background:
    radial-gradient(420px 140px at 15% 0%, rgba(59, 130, 246, .12), transparent 60%),
    #0f172a;
  border: 1px dashed rgba(148, 163, 184, .28);
  color: #e2e8f0 !important;
  font-weight: 650;
}

.dropzone {
  border: 2px dashed #9eb0c8; border-radius: 16px; padding: 2rem; text-align: center;
  background: #f5f8fc; transition: .2s ease;
}
.dropzone.dragover { border-color: var(--accent); background: #eff6ff; }

.chart-wrap { height: 300px; position: relative; }

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.ranking-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem .15rem;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-pos {
  flex: 0 0 2.2rem;
  font-weight: 800;
  font-size: .95rem;
  color: #64748b;
}
.ranking-row:nth-child(1) .ranking-pos { color: #ca8a04; }
.ranking-row:nth-child(2) .ranking-pos { color: #94a3b8; }
.ranking-row:nth-child(3) .ranking-pos { color: #b45309; }
.ranking-main { flex: 1; min-width: 0; }
.ranking-name {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.ranking-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #0ea5e9);
  min-width: 0;
}
.ranking-count {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.15;
}
.ranking-count strong {
  display: block;
  font-size: 1.15rem;
  color: #0f172a;
}
.ranking-count span {
  font-size: .75rem;
  color: #64748b;
}

.section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.affiliate-detail-list dt {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .55rem;
}
.affiliate-detail-list dd {
  margin-bottom: .55rem;
}

.dashboard-home {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.dashboard-promo-banner {
  display: block;
  margin: 0 0 1.15rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dashboard-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.34);
}
.dashboard-promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.dashboard-home-header {
  align-items: center;
  gap: 1rem;
}
.dashboard-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.dashboard-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  font-size: .78rem;
  font-weight: 700;
}
.app-body .content-wrap .dashboard-count-chip {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.18);
}
.dashboard-metrics .metric-card {
  height: 100%;
}
.my-links-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.my-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background:
    radial-gradient(280px 120px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 70%),
    #f8fbff;
}
.my-link-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  flex: 0 1 auto;
}
.my-link-meta {
  min-width: 0;
}
.my-link-meta strong {
  display: block;
  line-height: 1.25;
}
.my-link-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef7;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.my-link-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  background: linear-gradient(135deg, #dbe7f8, #eef3fb);
}
.my-link-thumb-empty svg {
  width: 20px;
  height: 20px;
}
.my-link-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: min(100%, 360px);
  flex: 1;
  justify-content: flex-end;
}
.my-link-actions .form-control {
  max-width: 280px;
  text-align: center;
  background: #fff;
}
.my-link-actions .btn {
  white-space: nowrap;
  min-width: 88px;
}

@media (max-width: 991.98px) {
  .dashboard-promo-banner {
    margin-bottom: 1rem;
    border-radius: 16px;
  }
  .dashboard-home-header {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .dashboard-home-actions {
    width: 100%;
  }
  .dashboard-home-actions .btn {
    flex: 1 1 auto;
  }
  .my-links-panel,
  .wallet-side {
    text-align: center;
  }
  .wallet-side .finance-row,
  .wallet-side .finance-copy,
  .wallet-side .finance-copy .tag,
  .wallet-side .finance-copy strong {
    text-align: left !important;
  }
  .wallet-side .finance-row {
    justify-content: flex-start !important;
  }
  .my-link-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .my-link-head {
    justify-content: center;
    flex-direction: column;
  }
  .my-link-actions {
    min-width: 0;
    flex-direction: column;
  }
  .my-link-actions .form-control {
    max-width: none;
    width: 100%;
  }
  .my-link-actions .btn {
    width: 100%;
  }
  .wallet-side .finance-row {
    justify-content: flex-start;
    text-align: left;
  }
  .wallet-side .withdraw-goal {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .dashboard-metrics .metric-card {
    min-height: 112px;
    padding: 1rem .95rem .9rem;
  }
  .dashboard-metrics .metric-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .dashboard-metrics .metric-ico svg {
    width: 17px;
    height: 17px;
  }
  .dashboard-metrics .value {
    font-size: 1.35rem;
  }
}

.results-house-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.results-house-row:last-child { border-bottom: 0; padding-bottom: 0; }
.results-house-row:first-child { padding-top: 0; }
.results-house-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.results-house-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef7;
}
.results-house-thumb-empty {
  display: inline-block;
  background: linear-gradient(135deg, #dbe7f8, #eef3fb);
}
.results-house-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: min(100%, 320px);
  flex: 1;
  justify-content: flex-end;
}
.results-house-link .form-control {
  max-width: 260px;
}

@media (max-width: 767.98px) {
  .results-house-row {
    flex-direction: column;
    align-items: stretch;
  }
  .results-house-link {
    min-width: 0;
    justify-content: stretch;
  }
  .results-house-link .form-control {
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 991.98px) {
  .app-body { display: block; }
  .app-main { min-height: 100vh; }
  .sidebar.offcanvas-lg {
    position: fixed !important;
  }
  .sidebar {
    width: min(86vw, 320px) !important;
    background:
      radial-gradient(500px 280px at 20% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
      linear-gradient(180deg, var(--sidebar-2), var(--sidebar));
  }
  .brand-logo { height: 72px; max-width: 210px; }
  .content-wrap { padding: 1rem; }
  .metric-card { min-height: 108px; }
  .quest-banner { flex-direction: column; align-items: flex-start; }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .page-header.partner-page-header {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .page-header.partner-page-header .page-title {
    text-align: center;
    width: 100%;
  }
  .page-header .btn { width: auto; max-width: 100%; }
}

@media (max-width: 575.98px) {
  .brand-logo { height: 56px; }
  .page-title { font-size: 1.35rem; }
  .topbar { padding: .75rem 1rem; }
  .chart-wrap { height: 240px; }
  .auth-card { padding: 1.4rem 1.1rem 1.25rem; border-radius: 20px; }
  .auth-logo { height: 100px; }
  .auth-logo-lg { height: 112px; }
  .home-stats { gap: .45rem; }
  .guest-frame { padding: 1.1rem .85rem 1rem; }
}

/* Aviso (modal página inicial) */
.announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(700px 380px at 85% 90%, rgba(220, 38, 38, 0.18), transparent 50%),
    rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
}
.announcement-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(680px 280px at 10% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(165deg, #0b1224 0%, #070b16 55%, #0a1020 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 1rem 1rem 1.15rem;
}
.announcement-modal__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .65rem;
}
.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.announcement-badge--warn {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.65);
}
.announcement-modal__media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #020617;
}
.announcement-modal__media a {
  display: block;
  cursor: zoom-in;
}
.announcement-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  object-fit: contain;
  background: #020617;
}
.announcement-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-top: 1rem;
}
.announcement-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: #cbd5e1;
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.announcement-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
}
.announcement-btn {
  min-width: 168px;
  border-radius: 999px;
  font-weight: 700;
  padding: .7rem 1.25rem;
}
.announcement-btn--primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.announcement-btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}
@media (max-width: 575.98px) {
  .announcement-modal { padding: .85rem; border-radius: 18px; }
  .announcement-btn { min-width: 100%; }
}

/* Relatórios diários (card branco — contraste alto) */
.report-table-wrap {
  overflow: hidden;
}
.report-table {
  --bs-table-color: #0f172a;
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #f1f5f9;
  margin: 0;
  color: #0f172a;
}
.report-table thead th {
  color: #64748b !important;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap;
  font-weight: 700;
}
.report-table tbody td,
.report-table tfoot td {
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  white-space: nowrap;
  font-weight: 600;
}
.report-table .report-date {
  font-weight: 700;
  color: #1e293b !important;
  background: #f1f5f9;
}
.report-table .report-totals td {
  font-weight: 800;
  background: #eff6ff !important;
  border-top: 2px solid #bfdbfe !important;
  color: #0f172a !important;
}
.report-table tbody tr:hover td {
  background: #f8fafc;
}
.report-table tbody tr:hover .report-date {
  background: #e2e8f0;
}
.stories-slug {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.stories-slug span {
  display: flex;
  align-items: center;
  padding: 0 .85rem;
  background: #f1f5f9;
  border-right: 1px solid var(--border);
  color: #64748b;
  font-size: .82rem;
  white-space: nowrap;
}
.stories-slug .form-control {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.stories-slug .form-control:focus {
  box-shadow: none;
}
@media (max-width: 575.98px) {
  .stories-slug {
    flex-direction: column;
  }
  .stories-slug span {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    min-height: 38px;
  }
}
.stories-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
/* Bootstrap modals no painel escuro — legíveis e acima do backdrop */
body.app-body .modal {
  z-index: 1060;
}
body.app-body .modal-backdrop {
  z-index: 1055;
}
body.app-body .modal-content {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.28);
}
body.app-body .modal-header,
body.app-body .modal-footer {
  border-color: #e2e8f0;
  background: #ffffff;
}
body.app-body .modal-header .btn-close {
  filter: none;
  opacity: 0.65;
}
body.app-body .modal-header .btn-close:hover {
  opacity: 1;
}
body.app-body .modal-title {
  color: #0f172a;
}
body.app-body .modal-body {
  color: #0f172a;
}
body.app-body .modal-body .h6 {
  color: #0f172a;
  font-weight: 600;
}
body.app-body .modal-body dt {
  color: #64748b;
  font-weight: 500;
}
body.app-body .modal-body dd {
  color: #0f172a;
}
body.app-body .modal-body .text-muted {
  color: #64748b !important;
}
body.app-body .modal-body code {
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}
body.app-body .modal-body .form-label {
  color: #334155;
}
body.app-body .modal-body .form-control,
body.app-body .modal-body .form-select,
body.app-body .modal-body textarea.form-control {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}
body.app-body .modal-body .form-text {
  color: #64748b;
}
body.app-body .modal-body strong {
  color: #0f172a;
}

/* Modal de detalhes do saque */
.withdrawal-detail-modal .modal-body {
  padding-top: 1.25rem;
}
.wd-detail-panel {
  display: flex;
  flex-direction: column;
}
.wd-detail-panel__title,
.wd-detail-section__title {
  margin: 0 0 1rem;
  font-weight: 600;
  color: #0f172a;
}
.wd-detail-grid {
  display: grid;
  gap: 0.7rem;
}
.wd-detail-grid__item {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
}
.wd-detail-grid__label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}
.wd-detail-grid__value {
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-word;
}
.wd-detail-code {
  display: inline-block;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.8125rem;
  word-break: break-all;
}
.wd-detail-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.wd-detail-hint {
  color: #64748b;
  font-size: 0.875rem;
}
.wd-detail-notes {
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.5;
}
.wd-pix-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.wd-pix-key {
  flex: 1 1 auto;
  min-width: 0;
}
.wd-proof-upload {
  max-width: 32rem;
}
@media (max-width: 575.98px) {
  .wd-detail-grid__item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.stories-choice {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}
.stories-choice:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}
.stories-choice input {
  margin: 0;
}

