/* Painel de cliques — landings Pedal e Clube (/painelclicks) */
:root {
  --pc-bg: #0a1210;
  --pc-surface: #121c18;
  --pc-border: rgba(37, 211, 102, 0.18);
  --pc-text: #f0fdf4;
  --pc-muted: rgba(240, 253, 244, 0.62);
  --pc-neon: #25d366;
  --pc-neon-dim: rgba(37, 211, 102, 0.15);
  --pc-warn: #fbbf24;
  --pc-danger: #f87171;
}

body.pc-ala-clube {
  --pc-bg: #050505;
  --pc-surface: #101010;
  --pc-border: rgba(250, 204, 21, 0.32);
  --pc-text: #fffbea;
  --pc-muted: rgba(255, 251, 234, 0.68);
  --pc-neon: #facc15;
  --pc-neon-dim: rgba(250, 204, 21, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--pc-text);
  background: var(--pc-bg);
}

.pc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2.5rem;
}

.pc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pc-border);
}

.pc-header h1 {
  margin: 0.65rem 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
}

.pc-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--pc-border);
}

.pc-tab {
  border: none;
  background: transparent;
  color: var(--pc-muted);
  border-radius: 9px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.pc-tab:hover {
  color: var(--pc-text);
}

.pc-tab--active {
  background: var(--pc-neon-dim);
  color: var(--pc-neon);
  box-shadow: inset 0 0 0 1px var(--pc-border);
}

.pc-panel h3 small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--pc-muted);
}

.pc-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pc-muted);
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pc-btn {
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  color: var(--pc-text);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pc-btn:hover {
  border-color: rgba(37, 211, 102, 0.45);
}

body.pc-ala-clube .pc-btn:hover {
  border-color: rgba(250, 204, 21, 0.58);
}

.pc-btn--primary {
  background: linear-gradient(180deg, #3ee07a, #25d366);
  color: #052e16;
  border-color: transparent;
}

body.pc-ala-clube .pc-btn--primary {
  background: linear-gradient(180deg, #fde047, #facc15);
  color: #080808;
}

.pc-select {
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  color: var(--pc-text);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
}

.pc-auth {
  max-width: 420px;
  margin: 4rem auto;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
}

.pc-auth h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.pc-auth p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--pc-muted);
  line-height: 1.5;
}

.pc-auth input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--pc-border);
  background: #0a1210;
  color: var(--pc-text);
  font-size: 0.9rem;
}

body.pc-ala-clube .pc-auth input {
  background: #050505;
}

.pc-auth-error {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--pc-danger);
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pc-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
}

.pc-card-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pc-muted);
}

.pc-card-value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.pc-card-value--good {
  color: var(--pc-neon);
}

.pc-card-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--pc-muted);
}

.pc-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 860px) {
  .pc-panels {
    grid-template-columns: 1fr 1fr;
  }
  .pc-panels--wide {
    grid-column: 1 / -1;
  }
}

.pc-panel {
  padding: 1rem;
  border-radius: 14px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
}

.pc-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.pc-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--pc-muted);
}

.pc-hint code {
  font-size: 0.68rem;
  color: rgba(134, 239, 172, 0.9);
}

.pc-bars {
  display: grid;
  gap: 0.55rem;
}

.pc-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
}

.pc-bar-label {
  color: var(--pc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-bar-count {
  font-weight: 700;
  color: var(--pc-text);
}

.pc-bar-track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pc-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d366, #3ee07a);
}

body.pc-ala-clube .pc-bar-fill {
  background: linear-gradient(90deg, #facc15, #fde047);
}

.pc-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 140px;
  padding-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.pc-chart-col {
  flex: 1;
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pc-chart-bar-wrap {
  width: 100%;
  height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.pc-chart-bar-group {
  width: 42%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.pc-chart-value {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  color: var(--pc-text);
}

.pc-chart-value--clicks {
  color: var(--pc-neon);
}

.pc-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}

.pc-chart-bar--views {
  background: rgba(147, 197, 253, 0.75);
}

.pc-chart-bar--clicks {
  background: var(--pc-neon);
}

body.pc-ala-clube .pc-chart-bar--views {
  background: rgba(255, 251, 234, 0.72);
}

.pc-chart-day {
  font-size: 0.66rem;
  color: var(--pc-muted);
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}

.pc-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  color: var(--pc-muted);
}

.pc-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.pc-legend-views::before {
  background: rgba(147, 197, 253, 0.75);
}

.pc-legend-clicks::before {
  background: var(--pc-neon);
}

.pc-table-wrap {
  overflow-x: auto;
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.pc-table th,
.pc-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}

.pc-table th {
  color: var(--pc-muted);
  font-weight: 600;
}

.pc-tag {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pc-tag--view {
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
}

.pc-tag--wa {
  background: var(--pc-neon-dim);
  color: var(--pc-neon);
}

.pc-tag--offers {
  background: rgba(251, 191, 36, 0.15);
  color: var(--pc-warn);
}

.pc-status {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid var(--pc-border);
  color: var(--pc-muted);
}

body.pc-ala-clube .pc-status {
  background: rgba(250, 204, 21, 0.08);
}

.pc-status--error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.pc-hidden {
  display: none !important;
}

.pc-footer {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: rgba(240, 253, 244, 0.38);
  line-height: 1.5;
}

.pc-footer a {
  color: rgba(134, 239, 172, 0.85);
}

body.pc-ala-clube .pc-footer a,
body.pc-ala-clube .pc-hint code {
  color: rgba(250, 204, 21, 0.92);
}

body.pc-ala-home {
  --pc-bg: #090d16;
  --pc-surface: #111827;
  --pc-border: rgba(96, 165, 250, 0.22);
  --pc-text: #eff6ff;
  --pc-muted: rgba(219, 234, 254, 0.62);
  --pc-neon: #60a5fa;
  --pc-neon-dim: rgba(96, 165, 250, 0.14);
}

body {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, var(--pc-neon-dim), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.08), transparent 26rem),
    var(--pc-bg);
}

.pc-bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 25rem);
}

.pc-wrap {
  max-width: 1280px;
}

.pc-eyebrow,
.pc-auth__badge {
  margin: 0 0 0.55rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pc-neon);
}

.pc-auth {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.pc-auth .pc-btn--primary {
  width: 100%;
}

.pc-header {
  padding: 1rem 1.1rem;
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--pc-surface) 88%, transparent);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.pc-header h1 {
  margin-top: 0.8rem;
  letter-spacing: -0.035em;
}

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

.pc-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.pc-card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -28px;
  top: -30px;
  border-radius: 50%;
  background: var(--pc-neon-dim);
  filter: blur(2px);
}

.pc-card--accent,
.pc-card--clicks {
  border-color: color-mix(in srgb, var(--pc-neon) 45%, transparent);
}

.pc-panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.pc-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.pc-panel__head .pc-legend {
  margin: 0 0 0.85rem;
}

.pc-empty {
  margin: 0;
  padding: 0.8rem;
  border-radius: 10px;
  color: var(--pc-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
}

.pc-page-list {
  display: grid;
  gap: 0.5rem;
}

.pc-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0.72rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.025);
}

.pc-page-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pc-page-row > div:last-child {
  text-align: right;
}

.pc-page-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--pc-text);
}

.pc-page-row b {
  font-size: 0.78rem;
  color: var(--pc-neon);
}

.pc-page-row span {
  font-size: 0.66rem;
  color: var(--pc-muted);
}

.pc-tag--click {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
}

.pc-tag--legacy {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.13);
}

.pc-cell-detail {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 1050px) {
  .pc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pc-wrap {
    padding: 0.7rem 0.65rem 2rem;
  }

  .pc-header {
    padding: 0.85rem;
  }

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

  .pc-card {
    min-height: 112px;
    padding: 0.82rem;
  }

  .pc-card-value {
    font-size: 1.42rem;
  }

  .pc-tabs {
    width: 100%;
  }

  .pc-tab {
    flex: 1;
  }
}
