/* ── Party Directory — Frontend Styles ── */
:root {
    --pd-primary: #4f46e5;
    --pd-primary-hover: #4338ca;
    --pd-secondary: #8b5cf6;
    --pd-success: #10b981;
    --pd-warning: #f59e0b;
    --pd-danger: #ef4444;
    --pd-text: #1e293b;
    --pd-text-light: #64748b;
    --pd-bg: #f8fafc;
    --pd-card: #ffffff;
    --pd-border: #e2e8f0;
    --pd-radius: 12px;
    --pd-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --pd-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ── Forms ── */
.pd-form {
    max-width: 800px;
}

.pd-form fieldset {
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--pd-card);
}

.pd-form legend {
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0.5rem;
    color: var(--pd-text);
}

.pd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pd-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pd-col-full {
    grid-column: 1 / -1;
}

.pd-form-row label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--pd-text);
}

.pd-input,
.pd-select,
.pd-textarea {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--pd-border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.pd-input:focus,
.pd-select:focus,
.pd-textarea:focus {
    outline: none;
    border-color: var(--pd-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* State select dropdown styling */
.pd-state-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
    font-weight: 500;
}

.pd-state-select option:first-child {
    color: #94a3b8;
    font-weight: 400;
}

.pd-state-select option {
    padding: 8px 12px;
    font-size: 14px;
    color: #1e293b;
}

.pd-input-sm {
    max-width: 120px;
}

.pd-select-sm {
    max-width: 100px;
}

.pd-textarea {
    resize: vertical;
    min-height: 80px;
}

.pd-input-file {
    padding: 0.4rem;
}

/* ── Buttons ── */
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.4;
}

.pd-btn:hover {
    transform: translateY(-1px);
}

.pd-btn:active {
    transform: translateY(0);
}

.pd-btn-primary {
    background: var(--pd-primary);
    color: #fff;
}

.pd-btn-primary:hover {
    background: var(--pd-primary-hover);
    color: #fff;
}

.pd-btn-outline {
    background: transparent;
    border: 1px solid var(--pd-border);
    color: var(--pd-text);
}

.pd-btn-outline:hover {
    border-color: var(--pd-primary);
    color: var(--pd-primary);
}

.pd-btn-danger {
    background: var(--pd-danger);
    color: #fff;
}

.pd-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.pd-btn-lg {
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
}

/* ── Badges ── */
.pd-badge {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.pd-badge-basic {
    background: #e0e7ff;
    color: #3730a3;
}

.pd-badge-pro {
    background: #fef3c7;
    color: #92400e;
}

.pd-badge-premium {
    background: #ede9fe;
    color: #5b21b6;
}

.pd-badge-publish,
.pd-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.pd-badge-pending,
.pd-badge-trialing {
    background: #fef3c7;
    color: #92400e;
}

.pd-badge-draft,
.pd-badge-canceled {
    background: #fee2e2;
    color: #991b1b;
}

.pd-badge-new {
    background: #dbeafe;
    color: #1e40af;
}

.pd-badge-read {
    background: #e0e7ff;
    color: #3730a3;
}

.pd-badge-replied {
    background: #d1fae5;
    color: #065f46;
}

.pd-plan-badge {
    min-width: auto;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.pd-badge-closed {
    background: #f1f5f9;
    color: #475569;
}

.pd-badge-completed {
    background: #d1fae5;
    color: #065f46;
}

/* ── Notices ── */
.pd-notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pd-notice .dashicons {
    flex-shrink: 0;
}

.pd-notice strong,
.pd-notice span,
.pd-notice p {
    overflow-wrap: anywhere;
}

.pd-notice-success {
    background: #d1fae5;
    color: #065f46;
}

.pd-notice-error {
    background: #fee2e2;
    color: #991b1b;
}

.pd-notice-info {
    background: #dbeafe;
    color: #1e40af;
}

.pd-notice-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ── Card / Table ── */
.pd-card {
    background: var(--pd-card);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.5rem;
}

.pd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pd-card-header h3 {
    margin: 0;
}

.pd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pd-section-header h2 {
    margin: 0;
}

.pd-table {
    width: 100%;
    border-collapse: collapse;
}

.pd-table th,
.pd-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--pd-border);
    font-size: 0.875rem;
}

.pd-table th {
    font-weight: 600;
    color: var(--pd-text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pd-table tbody tr:hover {
    background: var(--pd-bg);
}

/* ── Empty State ── */
.pd-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--pd-text-light);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1.5px dashed #e2e8f0;
}

.pd-empty-state .dashicons {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: #a5b4fc;
    opacity: 1;
}

.pd-empty-state h3 {
    color: var(--pd-text);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.pd-empty-state p {
    max-width: 380px;
    margin: 0 auto 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Upgrade Notice ── */
.pd-upgrade-notice {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 480px;
    margin: 2rem auto;
}

.pd-upgrade-icon {
    margin-bottom: 1rem;
}

.pd-upgrade-icon .dashicons {
    font-size: 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    color: var(--pd-text-light);
    opacity: 0.4;
}

.pd-upgrade-notice h3 {
    margin-bottom: 0.5rem;
}

.pd-upgrade-notice p {
    color: var(--pd-text-light);
    margin-bottom: 1.5rem;
}

/* ── Checkbox Grid ── */
.pd-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.pd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    cursor: pointer;
}

/* ── Media Preview ── */
.pd-media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.pd-preview-item {
    position: relative;
}

.pd-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.pd-preview-item label {
    display: block;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.25rem;
}

/* ── Search ── */
.pd-search-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.pd-search-form {
    margin-bottom: 2rem;
}

.pd-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    background: var(--pd-card);
    padding: 1.25rem;
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
}

.pd-search-row .pd-input,
.pd-search-row .pd-select {
    flex: 1;
    min-width: 140px;
}

.pd-results-count {
    font-size: 0.9rem;
    color: var(--pd-text-light);
    margin-bottom: 1rem;
}

/* ── Vendor Grid ── */
.pd-vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pd-vendor-card {
    display: flex;
    flex-direction: column;
}

.pd-vendor-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pd-vendor-view-btn {
    margin-top: auto !important;
}

.pd-vendor-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.28s, transform 0.28s;
    position: relative;
    border: 1px solid #e8edf5;
}

.pd-vendor-card:hover {
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.12);
    transform: translateY(-4px);
}

/* Card Save/Heart Button — simple floating heart, override Astra */
.pd-card-save-btn {
    position: absolute !important;
    top: 0.65rem !important;
    right: 0.65rem !important;
    z-index: 4 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s, color 0.2s !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #fff;
}

.pd-card-save-btn:hover {
    transform: scale(1.15) !important;
    color: #dc2626 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.pd-card-save-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

.pd-card-save-btn .pd-heart-svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.pd-card-save-btn.pd-card-saved {
    color: #dc2626 !important;
    background: transparent !important;
}

.pd-card-save-btn.pd-card-saved .pd-heart-svg {
    animation: pd-heart-pop 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

@keyframes pd-heart-pop {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.3)
    }

    100% {
        transform: scale(1)
    }
}

/* Share buttons on single vendor page — override Astra theme button styles */
.pdsv2-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.pdsv2-share-copy {
    background: #64748b !important;
}

.pdsv2-share-copy:hover,
.pdsv2-share-copy:focus {
    background: #475569 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pd-vendor-featured {
    border-color: var(--pd-warning);
}

.pd-featured-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.04em;
}

/* Image area — fixed height */
.pd-vendor-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #f1f5f9);
    height: 200px;
}

.pd-vendor-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pd-vendor-card:hover .pd-vendor-thumb {
    transform: scale(1.05);
}

.pd-vendor-thumb-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
    text-decoration: none;
}

/* Body — product grid style */
.pd-vendor-body {
    padding: 0.85rem 1rem 1rem;
}

.pd-vendor-name {
    margin: 0 0 0.35rem;
    font-size: 1.125rem !important;
    font-weight: 700;
    line-height: 1.3;
}

.pd-vendor-name a {
    color: #0f172a;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-vendor-name a:hover {
    color: var(--pd-primary);
}

/* Category tags in body */
.pd-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.4rem;
}

.pd-card-cat-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    white-space: nowrap;
}

.pd-card-price-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Service tags in body */
.pd-card-svcs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.45rem;
}

.pd-card-svc-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    white-space: nowrap;
}

.pd-card-svc-more {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.1rem 0.3rem;
}

/* Location line */
.pd-card-loc {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.pd-card-loc svg {
    flex-shrink: 0;
}

.pd-card-loc span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Old meta (hidden, kept for backward compat) */
.pd-vendor-cats {
    display: none;
}

.pd-vendor-meta {
    display: none;
}

.pd-cat-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
}

.pd-vendor-distance {
    font-size: 0.78rem;
    color: var(--pd-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pd-card-response-time {
    font-size: 0.73rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.pd-card-response-time svg {
    color: #059669;
    flex-shrink: 0;
}

.pd-vendor-view-btn {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    background: #0f172a !important;
    color: #fff !important;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

.pd-vendor-view-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    color: #fff !important;
}

.pd-vendor-view-btn:visited,
.pd-vendor-view-btn:active,
.pd-vendor-view-btn:focus {
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Pagination ── */
.pd-pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 2rem;
}

.pd-page-link {
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    color: var(--pd-text);
    text-decoration: none;
    font-size: 0.875rem;
}

.pd-page-link:hover {
    border-color: var(--pd-primary);
    color: var(--pd-primary);
}

.pd-page-active {
    background: var(--pd-primary);
    color: #fff !important;
    border-color: var(--pd-primary);
}

/* ── Auth Forms ── */
.pd-auth-wrap {
    max-width: 480px;
    margin: 3rem auto;
    background: var(--pd-card);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 50px -12px rgba(79, 70, 229, 0.15);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.pd-auth-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pd-auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pd-auth-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.pd-auth-logo {
    margin-bottom: 0.75rem;
    position: relative;
}

.pd-auth-logo svg {
    opacity: 0.9;
}

.pd-auth-subtitle {
    opacity: 0.8;
    font-size: 0.92rem;
    position: relative;
    margin: 0;
}

.pd-auth-body {
    padding: 2rem 2.25rem 2.25rem;
}

.pd-auth-body .pd-form {
    max-width: none;
}

.pd-auth-body .pd-form-row {
    margin-bottom: 1.15rem;
}

.pd-auth-body .pd-form-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}

.pd-auth-body .pd-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.8rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.pd-auth-body .pd-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    letter-spacing: 0.02em;
    transition: all 0.25s;
}

.pd-auth-body .pd-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
    opacity: 0.95;
}

.pd-auth-body .pd-notice {
    margin-bottom: 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.pd-auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--pd-text-light);
}

.pd-auth-link a {
    color: var(--pd-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.pd-auth-link a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.pd-auth-forgot-link {
    text-align: center;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.88rem;
}

.pd-auth-forgot-link a {
    color: var(--pd-primary);
    text-decoration: none;
    font-weight: 600;
}

.pd-auth-forgot-link a:hover {
    text-decoration: underline;
}

.pd-form-row-check {
    margin-top: -0.25rem;
}

.pd-form-row-check label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--pd-text-light);
    cursor: pointer;
}

.pd-form-row-check input[type="checkbox"] {
    accent-color: var(--pd-primary);
    width: 16px;
    height: 16px;
}

.pd-btn-full {
    width: 100%;
}

/* Input with icon */
.pd-input-icon {
    position: relative;
}

.pd-input-icon svg,
.pd-input-icon .dashicons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.pd-input-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pd-input-icon .pd-input {
    padding-left: 42px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #f8fafc;
}

.pd-input-icon .pd-input:focus {
    background: #fff;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.pd-input-icon:focus-within svg,
.pd-input-icon:focus-within .dashicons {
    color: #4f46e5;
}

/* ── Registration Multi-Step ── */
.pd-register-wrap {
    max-width: 740px;
    margin: 3rem auto;
    background: var(--pd-card);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 50px -12px rgba(79, 70, 229, 0.15);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.pd-register-wrap .pd-auth-header {
    padding: 2.5rem 2.5rem 2rem;
}

.pd-register-wrap .pd-auth-header h2 {
    margin: 0 0 0.3rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.pd-register-wrap .pd-auth-logo svg {
    opacity: 0.9;
}

.pd-register-wrap .pd-form {
    padding: 2rem 2.25rem 2.25rem;
    max-width: none;
}

.pd-register-wrap .pd-auth-link {
    padding: 0 2.25rem 2rem;
}

.pd-register-wrap .pd-notice {
    margin: 0 2.25rem 0;
    border-radius: 12px;
    font-size: 0.85rem;
}

.pd-reg-header {
    background: linear-gradient(135deg, var(--pd-primary) 0%, var(--pd-secondary) 100%);
    padding: 2rem 2.5rem 1.5rem;
    text-align: center;
    color: #fff;
}

.pd-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 1.25rem;
}

.pd-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.pd-step-current {
    background: #fff;
    color: var(--pd-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.pd-step-done {
    background: var(--pd-success);
    color: #fff;
}

.pd-step-line {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.pd-step-line-done {
    background: rgba(255, 255, 255, 0.8);
}

.pd-reg-body {
    padding: 2rem 2.25rem;
}

.pd-reg-step {
    display: none;
    animation: pdFadeIn 0.35s ease;
}

.pd-reg-step.pd-reg-step-active {
    display: block;
}

/* Customer step — shown via inline style from JS */
#pd-reg-step-customer {
    animation: pdFadeIn .35s ease;
}

#pd-reg-step-customer .pd-reg-section-title {
    text-align: center;
}

#pd-reg-step-customer .pd-reg-section-desc {
    text-align: center;
}

@keyframes pdFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pd-reg-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--pd-text);
    letter-spacing: -0.01em;
}

.pd-reg-section-desc {
    font-size: 0.88rem;
    color: var(--pd-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Step indicator — horizontal bar layout */
.pd-step-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-radius: 14px;
    border: 1px solid #e0e7ff;
}

.pd-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.pd-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pd-border);
    color: var(--pd-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.pd-step-current {
    background: var(--pd-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.pd-step-done {
    background: var(--pd-success);
    color: #fff;
}

.pd-step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pd-text-light);
}

.pd-step-current~.pd-step-label,
.pd-step-indicator:has(.pd-step-current) .pd-step-label {
    color: var(--pd-primary);
}

.pd-step-line {
    flex: 1;
    height: 2px;
    background: var(--pd-border);
    border-radius: 2px;
    margin: 0 0.75rem;
}

.pd-step-line-done {
    background: var(--pd-success);
}

/* Plan Selection Cards (Registration) */
.pd-plans-register {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.pd-plan-selectable {
    border: 2px solid var(--pd-border);
    border-radius: 16px;
    padding: 1.5rem 1.1rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--pd-card);
}

.pd-plan-selectable:hover {
    border-color: #a5b4fc;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.12);
    transform: translateY(-3px);
}

.pd-plan-selected {
    border-color: var(--pd-primary) !important;
    background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18), 0 8px 25px rgba(79, 70, 229, 0.12);
    transform: translateY(-3px);
}

.pd-plan-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

/* Plan name / price inside selector */
.pd-plan-selectable h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--pd-text);
}

.pd-plan-price-wrap {
    margin-bottom: 0.35rem;
}

.pd-plan-selectable .pd-plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pd-primary);
    line-height: 1;
}

.pd-plan-selectable .pd-plan-period {
    font-size: 0.8rem;
    color: var(--pd-text-light);
    font-weight: 400;
}

.pd-plan-trial {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--pd-success);
    font-weight: 700;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 0.35rem;
}

.pd-plan-selectable .pd-plan-features {
    font-size: 0.82rem;
    text-align: left;
    margin: 0.75rem 0 0;
}

.pd-plan-selectable .pd-plan-features li {
    padding: 0.22rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
}

/* No CSS ::before — dashicon in PHP handles the tick/cross */
.pd-feature-no {
    color: var(--pd-text-light);
    opacity: 0.5;
}

.pd-feature-no .dashicons {
    color: var(--pd-danger) !important;
    opacity: 0.6;
}

.pd-plan-selectable .pd-plan-features .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--pd-success);
}

.pd-plan-select-check {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pd-primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pd-plan-selected .pd-plan-select-check {
    display: flex;
}

/* Registration nav / terms */
.pd-reg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    gap: 1rem;
}

.pd-reg-nav .pd-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    transition: all 0.25s;
}

.pd-reg-nav .pd-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.pd-reg-nav .pd-btn-outline {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.2s;
}

.pd-reg-nav .pd-btn-outline:hover {
    border-color: #a5b4fc;
    color: #4f46e5;
    background: #f5f3ff;
}

.pd-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--pd-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.pd-terms-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--pd-primary);
    width: 16px;
    height: 16px;
}

.pd-terms-row a {
    color: var(--pd-primary);
    font-weight: 600;
}

/* Shared responsive safety for frontend forms */
.pd-form input,
.pd-form select,
.pd-form textarea,
.pd-form button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Terms row wrapper and link wrapping */
.pd-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.5;
}

.pd-terms-row .pd-checkbox-label {
    display: inline;
    line-height: 1.5;
}

.pd-terms-row .pd-checkbox-label input[type="checkbox"] {
    vertical-align: top;
    margin-right: 8px;
}

/* Role chooser: keep tablet two-column, mobile single-column */
.pd-reg-type-toggle,
.pd-role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Listing form CTA alignment and button behavior */
.pd-listing-submit {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.pd-listing-submit .pd-btn {
    width: auto;
}

@media (max-width: 640px) {
    .pd-plans-register {
        grid-template-columns: 1fr;
    }

    .pd-auth-body,
    .pd-reg-body {
        padding: 1.5rem;
    }

    .pd-register-wrap {
        margin: 1rem;
        border-radius: 16px;
    }

    .pd-register-wrap .pd-form {
        padding: 1.5rem;
    }

    .pd-register-wrap .pd-auth-link {
        padding: 0 1.5rem 1.5rem;
    }

    .pd-auth-wrap {
        margin: 1.5rem auto;
        border-radius: 16px;
    }

    .pd-auth-body {
        padding: 1.5rem 1.75rem;
    }

    .pd-auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .pd-auth-header h2 {
        font-size: 1.35rem;
    }

    .pd-form-grid {
        grid-template-columns: 1fr;
    }

    .pd-step-header {
        padding: 0.75rem 1rem;
    }

    .pd-reg-nav {
        flex-direction: column;
    }

    .pd-reg-nav .pd-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .pd-auth-header h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .pd-reg-type-btn .pd-reg-type-lbl {
        font-size: 0.84rem;
        line-height: 1.25;
        word-break: normal;
    }

    .pd-plan-selectable h4 {
        font-size: 1rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .pd-reg-type-toggle,
    .pd-role-options {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .pd-plan-selectable {
        padding: 1.2rem 1rem 1.1rem;
    }

    .pd-listing-submit {
        justify-content: stretch;
    }

    .pd-listing-submit .pd-btn {
        width: 100%;
    }

    .pd-card h2,
    .pd-card h3,
    .pd-card h4 {
        font-size: 1.05rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .pd-btn {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .pd-notice {
        padding: 0.85rem 0.95rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .pd-auth-forgot-link {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .pd-terms-row {
        display: block;
    }

    .pd-terms-row .pd-checkbox-label {
        display: block;
    }

    .pd-step-header,
    .pd-stepper {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 14px;
        overflow: hidden;
    }

    .pd-step-header .pd-step-indicator {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .pd-step-header .pd-step-label {
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .pd-step-header .pd-step-line {
        flex: 0 0 16px;
        margin: 14px 0 0;
    }

    .pd-auth-header h2,
    .pd-reg-section-title,
    .pd-listing-title,
    .pd-section-header h2 {
        font-size: 1.35rem;
        line-height: 1.2;
        word-break: normal;
    }

    .pd-plan-badge {
        max-width: fit-content;
    }

    .pd-card {
        padding: 1rem;
    }

    .pd-card h2,
    .pd-card h3,
    .pd-card h4 {
        font-size: 0.98rem;
    }

    .pd-btn {
        font-size: 0.82rem;
        padding: 0.7rem 0.95rem;
    }

    .pd-notice {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* ── Quote Form ── */
.pd-quote-wrap {
    background: var(--pd-card);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.pd-quote-wrap h3 {
    margin-top: 0;
}

/* ── Subscription Cards ── */
.pd-subscription>h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pd-subscription>p {
    color: var(--pd-text-light);
    font-size: 0.925rem;
    margin-bottom: 0;
}

/* Trial pill on subscription page cards */
.pd-trial-pill {
    display: inline-block;
    font-size: 0.72rem;
    color: #059669;
    font-weight: 700;
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 100px;
    margin-top: 4px;
}

/* Small note below upgrade button */
.pd-trial-cta-note {
    font-size: 0.76rem;
    color: #6b7280;
    text-align: center;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

/* Status pill in sub-info */
.pd-status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pd-status-trialing {
    background: #dbeafe;
    color: #1e40af;
}

.pd-status-active {
    background: #d1fae5;
    color: #065f46;
}

.pd-status-canceled,
.pd-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.pd-status-past_due {
    background: #fef3c7;
    color: #92400e;
}

/* Trial info box in sub-info */
.pd-trial-info-box {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.875rem;
}

.pd-trial-info-box p {
    margin: 0.2rem 0;
}

.pd-trial-note-line {
    margin-top: 0.4rem !important;
    color: #3b82f6;
    font-size: 0.8rem;
}

.pd-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.pd-plan-card {
    background: var(--pd-card);
    border: 2px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.pd-plan-card:hover {
    border-color: var(--pd-primary);
    box-shadow: var(--pd-shadow-lg);
    transform: translateY(-3px);
}

.pd-plan-current {
    border-color: var(--pd-success);
    background: linear-gradient(180deg, #f0fdf4 0%, var(--pd-card) 100%);
}

.pd-plan-current::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.pd-plan-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--pd-text);
}

.pd-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pd-primary);
    line-height: 1;
}

.pd-plan-price .pd-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--pd-text-light);
}

.pd-plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.25rem;
    font-size: 0.875rem;
    color: var(--pd-text-light);
    text-align: left;
}

.pd-plan-features li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Remove CSS ::before — dashicons in PHP are the sole indicator */
.pd-plan-features li .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--pd-success);
}

.pd-badge-active {
    background: #d1fae5;
    color: #065f46;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.pd-btn-full {
    width: 100%;
    justify-content: center;
}

.pd-sub-info {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--pd-bg);
    border-radius: 8px;
    border: 1px solid var(--pd-border);
    font-size: 0.9rem;
    color: var(--pd-text-light);
}

.pd-sub-info p {
    margin: 0.25rem 0;
}

.pd-sub-info strong {
    color: var(--pd-text);
}

/* ── Community ── */
.pd-community-feed {
    max-width: 720px;
}

.pd-community-post {
    background: var(--pd-card);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.pd-community-meta {
    font-size: 0.8rem;
    color: var(--pd-text-light);
    margin-bottom: 0.5rem;
}

/* ── Listing Form ── */
.pd-listing-header {
    margin-bottom: 1.75rem;
}

.pd-listing-title {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
    color: var(--pd-text);
}

.pd-listing-title .dashicons {
    color: var(--pd-primary);
    font-size: 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
}

.pd-listing-subtitle {
    color: var(--pd-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.pd-listing-section {
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.pd-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pd-border);
}

.pd-section-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd-text);
}

.pd-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--pd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pd-required {
    color: var(--pd-danger);
    font-size: 0.9em;
}

.pd-field-hint {
    font-size: 0.78rem;
    color: var(--pd-text-light);
    font-weight: 400;
    margin-left: 0.4rem;
}

.pd-char-count {
    font-size: 0.75rem;
    color: var(--pd-text-light);
    display: block;
    text-align: right;
    margin-top: 4px;
}

/* Location chips */
.pd-location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pd-loc-chip {
    padding: 5px 14px;
    border: 1.5px solid var(--pd-border);
    border-radius: 100px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--pd-text-light);
    user-select: none;
}

.pd-loc-chip:hover {
    border-color: var(--pd-primary);
    color: var(--pd-primary);
}

.pd-loc-selected {
    background: var(--pd-primary);
    border-color: var(--pd-primary);
    color: #fff !important;
}

/* Category pills */
.pd-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pd-cat-pill {
    padding: 5px 14px;
    border: 1.5px solid var(--pd-border);
    border-radius: 100px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--pd-text);
    user-select: none;
}

.pd-cat-pill:hover {
    border-color: var(--pd-secondary);
    color: var(--pd-secondary);
}

.pd-cat-active {
    background: var(--pd-secondary);
    border-color: var(--pd-secondary);
    color: #fff !important;
}

/* Service tag input */
.pd-tag-input-wrap {
    border: 1.5px solid var(--pd-border);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    cursor: text;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-tag-input-wrap:focus-within {
    border-color: var(--pd-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.pd-svc-chips {
    display: contents;
}

.pd-svc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: #4f46e5;
    padding: 5px 8px 5px 12px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #e0e7ff;
    transition: all 0.15s;
}

.pd-svc-chip:hover {
    background: #e0e7ff;
}

.pd-svc-chip button {
    background: rgba(79, 70, 229, .1) !important;
    border: none !important;
    color: #7c3aed !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s !important;
    box-shadow: none !important;
    text-indent: 0 !important;
    margin: 0 !important;
}

.pd-svc-chip button:hover {
    color: #fff !important;
    background: var(--pd-danger) !important;
}

/* Service dropdown selector */
.pd-svc-dropdown {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.84rem;
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 2px !important;
    min-width: 130px;
    flex-shrink: 0;
    box-shadow: none !important;
    appearance: auto;
    -webkit-appearance: auto;
}

.pd-svc-dropdown:focus {
    outline: none !important;
    box-shadow: none !important;
}

.pd-tag-input {
    border: none !important;
    outline: none !important;
    background: transparent;
    font-size: 0.875rem;
    min-width: 160px;
    flex: 1;
    padding: 4px 0;
    box-shadow: none !important;
}

/* Upload area */
.pd-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 2rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}

.pd-upload-area:hover {
    border-color: var(--pd-primary);
    background: #f5f3ff;
}

.pd-upload-area .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    color: var(--pd-primary);
}

.pd-upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pd-text);
}

.pd-upload-hint {
    font-size: 0.75rem;
    color: var(--pd-text-light);
}

.pd-input-file-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.pd-media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.pd-preview-item {
    position: relative;
}

.pd-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--pd-border);
}

.pd-remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--pd-danger);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pd-remove-img input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pd-remove-img .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Submit row */
.pd-listing-submit {
    padding: 1rem 0 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.pd-btn-lg .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pd-form-grid {
        grid-template-columns: 1fr;
    }

    .pd-search-row {
        flex-direction: column;
    }

    .pd-search-row .pd-input,
    .pd-search-row .pd-select {
        min-width: auto;
    }

    .pd-vendor-grid {
        grid-template-columns: 1fr;
    }

    .pd-plans-grid {
        grid-template-columns: 1fr;
    }

    .pd-auth-wrap {
        margin: 1rem;
        padding: 1.5rem;
    }

    .pd-listing-section {
        padding: 1.15rem;
    }
}