:root {
    --plx-primary:#3A57E8;
    --plx-primary-dark:#2C47C2;
    --plx-text:#0F172A;
    --plx-muted:#64748B;
    --plx-bg:#F7F8FC;
    --plx-success:#065F46;
    --plx-success-bg:#ECFDF5;
    --plx-success-bd:#A7F3D0;
    --plx-error:#991B1B;
    --plx-error-bg:#FEF2F2;
    --plx-error-bd:#FECACA;
}

body {
    background: var(--plx-bg);
}

.plx-wrap {
    font: 400 16px/1.5 Inter, system-ui, sans-serif;
    color: var(--plx-text);
    margin: 20px auto;
    max-width: 680px;
}

.plx-card {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    box-shadow:0 8px 32px rgba(0,0,0,.06);
    padding:20px;
    margin-bottom:20px;
}

.plx-title {
    font-weight:800;
    font-size:22px;
    margin:0 0 12px;
}

.plx-list {
    margin:10px 0 20px 20px;
}

.plx-list li {
    margin:4px 0;
}

.plx-field {
    margin:12px 0;
}

.plx-field label {
    font-weight:600;
    margin-bottom:6px;
    display:block;
}

.plx-field input,
.plx-field select {
    width:100%;
    padding:12px;
    border:1px solid #E5E7EB;
    border-radius:8px;
    font:inherit;
}

.plx-actions {
    display:flex;
    gap:10px;
    margin-top:16px;
}

.plx-btn {
    background: var(--plx-primary);
    color:#fff;
    padding:12px 16px;
    border-radius:10px;
    border:none;
    cursor:pointer;
    font-weight:700;
    transition:background .15s ease;
}

.plx-btn:hover {
    background: var(--plx-primary-dark);
}

.plx-btn.secondary {
    background:#e5e7eb;
    color:#111827;
}

.plx-btn.secondary:hover {
    background:#d1d5db;
}

.plx-stepper {
    display:flex;
    gap:8px;
    margin-bottom:16px;
}

.plx-stepper .dot {
    width:12px;
    height:12px;
    border-radius:50%;
    background:#d1d5db;
}

.plx-stepper .dot.active {
    background: var(--plx-primary);
}

.plx-note {
    font-size:13px;
    color: var(--plx-muted);
}

.plx-notice {
    padding:12px;
    margin-bottom:16px;
    border-radius:8px;
    font-size:14px;
}

.plx-notice.success {
    background: var(--plx-success-bg);
    border:1px solid var(--plx-success-bd);
    color: var(--plx-success);
}

.plx-notice.error {
    background: var(--plx-error-bg);
    border:1px solid var(--plx-error-bd);
    color: var(--plx-error);
}

/* Toast Notification */
.plx-toast {
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    background:#111827;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
    box-shadow:0 12px 40px rgba(0,0,0,.2);
}

.plx-toast.show {
    opacity:1;
}

/* ===============================
   PayLynk Partner Dashboard (Premium)
   =============================== */

.plx-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.plx-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Notes / helper text */
.plx-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}

/* Referral link */
#plx-ref-link {
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 13px;
}

/* Buttons */
.plx-btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.plx-btn.secondary {
  background: #eef2ff;
  color: #3b5bfd;
}

/* WhatsApp Primary Action */
.plx-btn.whatsapp {
  background: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plx-btn.whatsapp::before {
  content: "";
}

/* Earnings grid */
.plx-earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.plx-tile {
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px;
}

.plx-tile-title {
  font-size: 13px;
  color: #6b7280;
}

.plx-tile-amount {
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0;
}

.plx-tile-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

/* Remove HR clutter */
.plx-earnings-grid hr {
  display: none;
}

/* Credits */
.plx-card h2 {
  font-size: 36px;
  margin: 8px 0;
}

/* Referred sellers */
.plx-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plx-list li {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  font-size: 14px;
}

.plx-list li:last-child {
  border-bottom: none;
}

/* Status badges */
.plx-list span {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
}

/* Banking */
.plx-field label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}

.plx-field input,
.plx-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
}

/* ===============================
   Collapsible Cards (Premium)
   =============================== */

.plx-collapsible {
  width: 100%;
  text-align: left;
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chevron */
.plx-collapsible::after {
  content: "▾";
  font-size: 16px;
  transition: transform 0.25s ease;
}

/* Active state */
.plx-collapsible.active::after {
  transform: rotate(180deg);
}

/* Collapsible content */
.plx-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-top: 12px;
}

/* When open */
.plx-collapsible-content.open {
  max-height: 2000px; /* large enough for forms & lists */
}

/* Slight spacing polish */
.plx-collapsible-content .plx-title {
  margin-top: 12px;
}
/* ===============================
   Partner Dashboard Header
   =============================== */

.plx-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}

.plx-welcome {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.plx-name {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 0;
  line-height: 1.2;
}

/* Logout button */
.plx-logout-btn {
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.plx-logout-btn:hover {
  background: #e5e7eb;
}

/* Mobile stacking */
@media (max-width: 480px) {
  .plx-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .plx-header-actions {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .pl2-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pl2-table-wrapper table {
    min-width: 650px;
  }
}

