/* ── PAP Dashboard Styles ──────────────────────────────────────────────── */

.pap-dashboard {
    font-family: 'Georgia', serif;
    max-width: 860px;
    color: #333;
}

/* Header */
.pap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2D5A27;
    color: #fff;
    padding: 24px 28px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.pap-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #fff;
    border: none;
    padding: 0;
}
.pap-header p {
    margin: 0;
    opacity: .8;
    font-size: 14px;
}
.pap-tier-badge {
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
    border: 2px solid rgba(255,255,255,.3);
}

/* Stats Row */
.pap-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.pap-stat-card {
    background: #f6faf3;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pap-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A27;
}
.pap-stat-label {
    font-size: 12px;
    color: #888;
}

/* Sections */
.pap-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.pap-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #2D5A27;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}
.pap-top-tier {
    background: #f0f7ee;
    border-color: #a8d5a2;
    color: #2D5A27;
    font-size: 15px;
    font-weight: 500;
}

/* Progress Bar */
.pap-progress-bar {
    background: #e8f5e9;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}
.pap-progress-fill {
    background: linear-gradient(90deg, #4A9047, #2D5A27);
    height: 100%;
    border-radius: 20px;
    transition: width .6s ease;
}

/* Referral Code */
.pap-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f7ee;
    border: 2px dashed #2D5A27;
    border-radius: 8px;
    padding: 16px 20px;
    width: fit-content;
}
.pap-code {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #2D5A27;
    font-family: 'Courier New', monospace;
}
.pap-copy-btn {
    background: #2D5A27;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.pap-copy-btn:hover { background: #4A9047; }
.pap-link { color: #2D5A27; font-size: 13px; word-break: break-all; }

/* Share Buttons */
.pap-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pap-share-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity .2s;
}
.pap-share-btn:hover { opacity: .85; }
.pap-share-wa   { background: #25D366; color: #fff; }
.pap-share-ig   { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.pap-share-fb   { background: #1877F2; color: #fff; }
.pap-share-copy { background: #555; color: #fff; }

/* Tables */
.pap-table-wrap { overflow-x: auto; }
.pap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pap-table th {
    background: #f6faf3;
    color: #2D5A27;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #c8e6c9;
}
.pap-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.pap-table tr:last-child td { border-bottom: none; }

.pap-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.pap-status-credited  { background: #e8f5e9; color: #2D5A27; }
.pap-status-pending   { background: #fff8e1; color: #f57f17; }
.pap-status-cancelled { background: #fce4ec; color: #c62828; }

.pap-tx-credit { color: #2D5A27; font-weight: 600; }
.pap-tx-debit  { color: #c62828; font-weight: 600; }

.pap-empty {
    text-align: center;
    color: #aaa;
    padding: 20px;
    font-style: italic;
    font-size: 14px;
}

/* Opt-In Form */
.pap-optin { text-align: center; }
.pap-optin-hero {
    background: #2D5A27;
    color: #fff;
    padding: 32px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.pap-optin-hero h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.pap-optin-hero p  { margin: 0; opacity: .85; font-size: 15px; }
.pap-optin-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.pap-benefit {
    background: #f6faf3;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
}
.pap-benefit span { display: block; font-size: 28px; font-weight: 700; color: #2D5A27; }
.pap-benefit small { font-size: 12px; color: #888; }
.pap-optin-form { margin-top: 16px; }
.pap-optin-form p { color: #555; font-size: 14px; margin-bottom: 8px; }

/* Not Eligible */
.pap-not-eligible {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
}
.pap-preview-benefits {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.pap-preview-benefits ul { list-style: none; padding: 0; }
.pap-preview-benefits li { padding: 6px 0; font-size: 14px; color: #444; }

/* CTA Button */
.pap-btn-primary {
    display: inline-block;
    background: #2D5A27;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s;
    margin-top: 12px;
}
.pap-btn-primary:hover { background: #4A9047; }

/* Responsive */
@media (max-width: 600px) {
    .pap-stats-row { grid-template-columns: repeat(2, 1fr); }
    .pap-header    { flex-direction: column; gap: 12px; text-align: center; }
    .pap-code-box  { flex-direction: column; }
    .pap-optin-benefits { flex-direction: column; align-items: center; }
}
