/* Zevonix Partners — front-end portal */

.zpart-form,
.zpart-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2433;
    max-width: 960px;
    margin: 0 auto;
}

.zpart-form { background: #fff; border: 1px solid #e0e3e8; border-radius: 12px; padding: 24px; }
.zpart-form h2 { margin: 0 0 16px; }
.zpart-form .zpart-row { margin-bottom: 16px; }
.zpart-form label { display: block; font-weight: 600; font-size: 14px; }
.zpart-form input[type="text"],
.zpart-form input[type="email"],
.zpart-form input[type="url"],
.zpart-form input[type="tel"],
.zpart-form input[type="password"],
.zpart-form textarea,
.zpart-form select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd1d9;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 4px;
    box-sizing: border-box;
    font-family: inherit;
}
.zpart-form input:focus,
.zpart-form textarea:focus,
.zpart-form select:focus {
    outline: 0;
    border-color: #10A7F3;
    box-shadow: 0 0 0 3px rgba(16, 167, 243, 0.15);
}

/* Two-column row wrapper — collapses to single column under 600px */
.zpart-form .zpart-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 600px) {
    .zpart-form .zpart-cols { grid-template-columns: 1fr; gap: 0; }
}

.zpart-form .zpart-form-note {
    margin-top: 16px;
    font-size: 13px;
    color: #58606e;
    line-height: 1.5;
    text-align: center;
}

/* Login form bits */
.zpart-form .zpart-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}
.zpart-form .zpart-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}
.zpart-form .zpart-form-link {
    color: #10A7F3;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}
.zpart-form .zpart-form-link:hover { text-decoration: underline; }

/* Cloudflare Turnstile widget — center it inside the form */
.zpart-form #zsc-turnstile-wrap,
.zpart-form .cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 8px 0 16px;
}
.zpart-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 12px;
}
.zpart-form-inline label { flex: 1 1 200px; }

.zpart-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #ccd1d9;
    background: #f5f6f8;
    cursor: pointer;
    font-size: 14px;
}
.zpart-btn-primary { background: #10A7F3; border-color: #10A7F3; color: #fff; }
.zpart-btn-primary:hover { background: #0d8ed1; }

.zpart-notice {
    background: #f5f6f8;
    border-left: 4px solid #10A7F3;
    padding: 12px 16px;
    border-radius: 4px;
}

.zpart-msg { min-height: 1.2em; margin: 8px 0; color: #1a8754; font-weight: 600; }
.zpart-msg.is-error { color: #dc3545; }

/* Submit button + inline status message */
.zpart-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.zpart-submit-row .zpart-msg {
    margin: 0;
    flex: 1 1 auto;
}

.zpart-dashboard-header { margin-bottom: 16px; }
.zpart-dashboard-header h2 { margin: 0 0 8px; }
.zpart-dashboard-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.zpart-dashboard-greeting h2 { margin: 0; }
.zpart-dashboard-signout {
    font-size: 14px;
    color: #58606e;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #ccd1d9;
    border-radius: 6px;
    transition: all .15s ease;
}
.zpart-dashboard-signout:hover {
    color: #fff;
    background: #58606e;
    border-color: #58606e;
}

.zpart-tabs { display: flex; gap: 4px; margin: 16px 0; border-bottom: 1px solid #e0e3e8; }
.zpart-tab {
    background: none;
    border: 0;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #58606e;
}
.zpart-tab.is-active { color: #10A7F3; border-bottom-color: #10A7F3; }

.zpart-panel { display: none; }
.zpart-panel.is-active { display: block; }

.zpart-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; }
.zpart-metric {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.zpart-metric strong { display: block; font-size: 24px; }
.zpart-metric span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #58606e; margin-top: 4px; }

/* Overview hero: total earnings + strategy reminder */
.zpart-headline {
    background: linear-gradient(135deg, #10A7F3 0%, #0d8ed1 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(16, 167, 243, 0.18);
}
.zpart-headline-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.zpart-headline-amount { font-size: 36px; font-weight: 700; margin-top: 6px; }
.zpart-headline-sub { font-size: 13px; margin-top: 6px; opacity: 0.92; }

/* Earnings breakdown cards (Pending / Approved / Paid) */
.zpart-earnings-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.zpart-earn-card {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #b58900; /* pending: amber */
}
.zpart-earn-card span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #58606e; }
.zpart-earn-card strong { display: block; font-size: 24px; margin: 4px 0; color: #1d2433; }
.zpart-earn-card em { display: block; font-size: 12px; color: #58606e; font-style: normal; }
.zpart-earn-card--approved { border-left-color: #10A7F3; }
.zpart-earn-card--paid     { border-left-color: #1a8754; }

/* Empty state shown when partner has zero clicks */
.zpart-empty-state {
    background: #fff;
    border: 1px dashed #ccd1d9;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
}
.zpart-empty-state a { color: #10A7F3; }

/* Status pill used inside the leads + commissions tables */
.zpart-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #888;
}
.zpart-pill--new       { background: #5d6470; }
.zpart-pill--converted { background: #1a8754; }
.zpart-pill--rejected,
.zpart-pill--duplicate { background: #b9bcc1; }
.zpart-pill--pending   { background: #b58900; }
.zpart-pill--approved  { background: #10A7F3; }
.zpart-pill--paid      { background: #1a8754; }
.zpart-pill--held,
.zpart-pill--voided    { background: #b9bcc1; }

.zpart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #fff;
}
.zpart-table th, .zpart-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e3e8;
    font-size: 14px;
}
.zpart-table th { background: #f5f6f8; font-weight: 600; }
.zpart-table tr:hover td { background: #fafbfc; }

.zpart-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.zpart-banner strong { font-weight: 700; }
.zpart-banner span { flex: 1; color: #58606e; }
.zpart-banner-warn { background: #fff8e6; border: 1px solid #f0c674; }
.zpart-banner-ok   { background: #e6f7ec; border: 1px solid #1a8754; }

.zpart-link-generator {
    background: #fff; border: 1px solid #e0e3e8; border-radius: 12px; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.zpart-link-out { display: flex; gap: 8px; }
.zpart-link-out input { flex: 1; padding: 10px 12px; font-family: monospace; border: 1px solid #ccd1d9; border-radius: 8px; }

.zpart-stat { font-weight: 700; }
