:root {
  --green-neon: #3dffbb;
  --green-dark: #03241a;
  --black: #010602;
  --text-light: #f6fff9;
  --text-muted: rgba(246, 255, 249, 0.7);
  --border: rgba(61, 255, 187, 0.25);
}

* {
  box-sizing: border-box;
}

.dashboard-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 2.5rem 4vw 4rem;
  background: rgba(2, 6, 3, 0.9);
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(61, 255, 187, 0.12), transparent 40%), #020b07;
  color: var(--text-light);
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-header h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: rgba(61, 255, 187, 0.8);
}

.muted {
  margin: 0;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 0.8rem;
}

button {
  font-family: inherit;
}

button.primary,
button.ghost {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

button.primary {
  background: linear-gradient(120deg, rgba(61, 255, 187, 0.3), rgba(26, 188, 156, 0.6));
  color: var(--black);
  border-color: rgba(61, 255, 187, 0.8);
  box-shadow: 0 10px 25px rgba(61, 255, 187, 0.35);
}

button.ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.25);
}

.summary-grid,
.panels-grid,
.charts-panel {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}

.summary-grid article {
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(61, 255, 187, 0.3);
  background: linear-gradient(145deg, rgba(61, 255, 187, 0.08), rgba(6, 36, 24, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.summary-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.summary-grid h2 {
  margin: 0.5rem 0;
  font-size: 1.8rem;
  color: var(--green-neon);
}

.trials-panel {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 6, 5, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.trials-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trials-panel-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-neon);
}

.trials-panel-body {
  margin-top: 1rem;
}

.trials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trial-info strong {
  display: block;
  color: #f6fff9;
  font-size: 1rem;
}

.trial-info span {
  color: rgba(246, 255, 249, 0.7);
  font-size: 0.85rem;
}

.trial-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.trial-range {
  font-size: 0.85rem;
  color: rgba(246, 255, 249, 0.7);
  margin: 6px 0 0;
}

.trial-remaining {
  font-size: 0.85rem;
  color: rgba(61, 255, 187, 0.9);
  margin: 2px 0 0;
}

.trial-date {
  font-size: 0.78rem;
  color: rgba(246, 255, 249, 0.6);
}

.trial-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.trial-status-active {
  background: rgba(61, 255, 187, 0.2);
  color: #3dffbb;
}

.trial-status-converted {
  background: rgba(255, 193, 7, 0.25);
  color: #ffd54f;
}

.trial-status-cancelled {
  background: rgba(255, 82, 82, 0.28);
  color: #ff8a80;
}

.empty-state {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.trial-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(61, 255, 187, 0.25);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #3dffbb, #1aac80);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: rgba(246, 255, 249, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.trial-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(61, 255, 187, 0.25);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #3dffbb, #1aac80);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: rgba(246, 255, 249, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.charts-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.period-selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  grid-column: 1 / -1;
}
.period-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.period-buttons button {
  border: 1px solid rgba(61, 255, 187, 0.4);
  background: rgba(2, 6, 3, 0.6);
  color: var(--text-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.period-buttons button.active {
  background: rgba(61, 255, 187, 0.9);
  color: var(--black);
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.paginated-panel {
  background: rgba(2, 6, 3, 0.9);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(61, 255, 187, 0.2);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.paginated-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-stack {
  display: grid;
  gap: 0.9rem;
}

.card-stack .credits-card,
.card-stack .subscriber-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(61, 255, 187, 0.15);
}

.card-stack strong {
  font-size: 1.05rem;
  color: var(--green-neon);
}

.card-stack span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.pagination-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.pagination-controls button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(61, 255, 187, 0.5);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.balance-panel {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.balance-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(61, 255, 187, 0.2), rgba(26, 188, 156, 0.1));
  border: 1px solid rgba(61, 255, 187, 0.4);
  box-shadow: 0 20px 40px rgba(61, 255, 187, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(61, 255, 187, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.balance-decoration {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(61, 255, 187, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.balance-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(61, 255, 187, 0.2);
  color: var(--green-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(61, 255, 187, 0.2);
}

.balance-icon svg {
  width: 100%;
  height: 100%;
}

.balance-content .eyebrow {
  margin-bottom: 0.5rem;
}

.balance-content h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 2.8rem;
  color: var(--green-neon);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(61, 255, 187, 0.3);
}

.balance-content .muted {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.pix-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(2, 6, 3, 0.85);
  border: 1px solid rgba(61, 255, 187, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.pix-card:hover {
  border-color: rgba(61, 255, 187, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.pix-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(61, 255, 187, 0.15);
}

.pix-icon {
  width: 40px;
  height: 40px;
  padding: 0.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(61, 255, 187, 0.2), rgba(26, 188, 156, 0.15));
  color: var(--green-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pix-icon svg {
  width: 100%;
  height: 100%;
}

.pix-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 600;
}

.pix-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pix-card form {
  display: grid;
  gap: 1rem;
}

.pix-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(246, 255, 249, 0.9);
}

.pix-card label span {
  font-weight: 500;
  margin-left: 0.2rem;
}

.pix-card input {
  border: 1px solid rgba(61, 255, 187, 0.2);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.pix-card input:focus {
  outline: none;
  border-color: rgba(61, 255, 187, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(61, 255, 187, 0.1);
}

.pix-card input::placeholder {
  color: rgba(246, 255, 249, 0.4);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: var(--green-neon);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}

.input-wrapper input {
  padding-left: 2.5rem;
  width: 100%;
}

.withdraw-note {
  display: block;
  margin-top: 0.35rem;
}

.withdraw-hint {
  margin: 0.5rem 0 0;
}

.pix-submit-btn {
  border: none;
  background: linear-gradient(135deg, var(--green-neon), rgba(26, 188, 156, 0.9));
  color: var(--black);
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(61, 255, 187, 0.3);
  margin-top: 0.5rem;
}

.pix-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(61, 255, 187, 0.4);
}

.pix-submit-btn:active {
  transform: translateY(0);
}

.pix-submit-btn svg {
  width: 18px;
  height: 18px;
}

.pix-submit-btn.loading {
  opacity: 0.65;
  cursor: not-allowed;
}

.pix-submit-btn svg.spin {
  animation: spin 1s linear infinite;
}

.form-feedback.is-highlight {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #3dffbb;
}

.form-feedback.is-highlight.error {
  color: #ffb5b5;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.chart {
  flex-wrap: wrap;
}

.chart .bar {
  min-width: 40px;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .charts-panel {
    grid-template-columns: 1fr;
  }
  .period-buttons {
    flex-wrap: wrap;
  }
  .cards-section {
    grid-template-columns: 1fr;
  }
  .pagination-controls {
    justify-content: space-between;
  }
}

.chart-card {
  background: rgba(2, 6, 3, 0.85);
  border-radius: 1.4rem;
  padding: 1.5rem;
  border: 1px solid rgba(61, 255, 187, 0.25);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.chart-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-card h3 {
  margin: 0;
}

.chart-card canvas {
  width: 100% !important;
  height: 280px !important;
  max-height: 280px;
}

.channel-card {
  background: rgba(2, 6, 3, 0.85);
  border-radius: 1.4rem;
  padding: 1.5rem;
  border: 1px solid rgba(61, 255, 187, 0.25);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.chip {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(61, 255, 187, 0.2);
  color: var(--text-light);
}

.chip.subt {
  background: rgba(255, 255, 255, 0.1);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  min-height: 150px;
}

.chart .bar {
  flex: 1;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(61, 255, 187, 0.7), rgba(2, 6, 3, 0.5));
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.chart .bar span {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-light);
}

.chart-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.paginated-panel {
  background: rgba(2, 6, 3, 0.9);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(61, 255, 187, 0.2);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.paginated-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-stack {
  display: grid;
  gap: 0.9rem;
}

.card-stack .client-card,
.card-stack .activity-card,
.card-stack .credits-card,
.card-stack .subscriber-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(61, 255, 187, 0.15);
}

.credits-card span:nth-child(2),
.subscriber-card span:nth-child(2) {
  color: #fff;
}

.subscriber-card span:nth-child(3),
.subscriber-card span:nth-child(4),
.credits-card span:nth-child(3),
.credits-card span:nth-child(4) {
  color: var(--text-muted);
}

.card-stack strong {
  font-size: 1.05rem;
  color: var(--green-neon);
}

.card-stack span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.pagination-controls button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(61, 255, 187, 0.5);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.cards-section .chip {
  background: rgba(255, 255, 255, 0.05);
}
.panels-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 1.5rem;
}

.clients-panel,
.activity-panel {
  background: rgba(2, 6, 3, 0.9);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(61, 255, 187, 0.2);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.clients-panel header,
.activity-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.client-list {
  display: grid;
  gap: 0.85rem;
}

.client-card,
.activity-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(61, 255, 187, 0.1);
}

.client-card strong,
.activity-card strong {
  display: block;
  font-size: 1rem;
  color: var(--green-neon);
}

.client-card span,
.activity-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.activity-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.activity-meta {
  text-align: right;
}

.activity-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-feedback {
  min-height: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Affiliate Links Panel */
.affiliate-links-panel {
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(2, 6, 3, 0.85);
  border: 1px solid rgba(61, 255, 187, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.affiliate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(61, 255, 187, 0.15);
  flex-wrap: wrap;
}

.affiliate-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.affiliate-icon {
  width: 48px;
  height: 48px;
  padding: 0.7rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(61, 255, 187, 0.25), rgba(26, 188, 156, 0.15));
  color: var(--green-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(61, 255, 187, 0.2);
  flex-shrink: 0;
}

.affiliate-icon svg {
  width: 100%;
  height: 100%;
}

.affiliate-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-light);
  font-weight: 600;
}

.affiliate-code-display {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(61, 255, 187, 0.15), rgba(26, 188, 156, 0.1));
  border: 1px solid rgba(61, 255, 187, 0.3);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(61, 255, 187, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.code-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.whatsapp-config,
.pixel-config {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.whatsapp-config-row,
.pixel-config-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.whatsapp-config input,
.pixel-config input {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(61, 255, 187, 0.35);
  background: rgba(1, 6, 5, 0.3);
  color: #ffffff;
}

.whatsapp-config {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.whatsapp-config-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.whatsapp-config input {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(61, 255, 187, 0.35);
  background: rgba(1, 6, 5, 0.3);
  color: #ffffff;
}


.trial-links {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.trial-link-card {
  background: rgba(5, 12, 8, 0.85);
  border: 1px solid rgba(61, 255, 187, 0.25);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.trial-link-card-header h4 {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  color: #ffffff;
}

.trial-link {
  color: inherit;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-all;
  display: block;
}

.trial-link:hover {
  border-color: rgba(61, 255, 187, 0.9);
}

.trial-link .highlight-code {
  background: rgba(61, 255, 187, 0.15);
  padding: 0 0.2rem;
  border-radius: 4px;
}

.trial-link .highlight-wpp {
  color: #2fe1b2;
  font-weight: 600;
}

.affiliate-code {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-neon);
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(61, 255, 187, 0.5);
  font-family: 'Courier New', monospace;
}

.affiliate-period-selector {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.period-tab {
  flex: 1;
  min-width: 120px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 187, 0.3);
  background: rgba(2, 6, 3, 0.6);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.period-tab:hover {
  border-color: rgba(61, 255, 187, 0.5);
  background: rgba(61, 255, 187, 0.1);
}

.period-tab.active {
  background: linear-gradient(135deg, var(--green-neon), rgba(26, 188, 156, 0.9));
  color: var(--black);
  border-color: var(--green-neon);
  box-shadow: 0 8px 20px rgba(61, 255, 187, 0.3);
}

.affiliate-plans-container {
  position: relative;
  min-height: 400px;
}

.affiliate-plans-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  animation: fadeIn 0.3s ease;
}

.affiliate-plans-grid.active {
  display: grid;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(61, 255, 187, 0.08), rgba(6, 36, 24, 0.6));
  border: 1px solid rgba(61, 255, 187, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 255, 187, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plan-header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(61, 255, 187, 0.15);
}

.plan-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(61, 255, 187, 0.15);
  color: var(--green-neon);
  border: 1px solid rgba(61, 255, 187, 0.3);
  margin-bottom: 0.8rem;
}

.plan-badge.premium {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-neon);
  margin: 0.5rem 0;
  text-shadow: 0 0 15px rgba(61, 255, 187, 0.3);
}

.plan-commission {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.plan-commission strong {
  color: var(--green-neon);
  font-weight: 700;
}

.plan-link-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-link {
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(61, 255, 187, 0.15);
  border-radius: 0.8rem;
  overflow: hidden;
}

.link-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.5;
  font-family: 'Courier New', monospace;
}

.highlight-code {
  color: var(--green-neon);
  font-weight: 700;
  background: rgba(61, 255, 187, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-shadow: 0 0 10px rgba(61, 255, 187, 0.5);
  border: 1px solid rgba(61, 255, 187, 0.3);
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 187, 0.3);
  background: rgba(61, 255, 187, 0.1);
  color: var(--green-neon);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.copy-btn:hover {
  background: rgba(61, 255, 187, 0.2);
  border-color: rgba(61, 255, 187, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(61, 255, 187, 0.2);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn.copied {
  background: linear-gradient(135deg, var(--green-neon), rgba(26, 188, 156, 0.9));
  color: var(--black);
  border-color: var(--green-neon);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .affiliate-links-panel {
    padding: 1.5rem;
  }

  .affiliate-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .affiliate-code-display {
    width: 100%;
    justify-content: center;
  }

  .affiliate-period-selector {
    flex-direction: column;
  }

  .period-tab {
    width: 100%;
  }

  .affiliate-plans-grid {
    grid-template-columns: 1fr;
  }

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

  .balance-card {
    padding: 1.5rem;
  }

  .balance-content h3 {
    font-size: 2.2rem;
  }

  .pix-card {
    padding: 1.5rem;
  }
}
}
