/* ========================================
   SERVICE DISPATCH — SaaS Dashboard CSS
   Shared by Vendor + Client dashboards
   ======================================== */

/* --- Layout: Sidebar + Main --- */
.sd-saas-wrap {
    display: flex;
    min-height: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

/* --- Sidebar --- */
.sd-saas-sidebar {
    width: 250px;
    min-width: 250px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
}

.sd-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sd-sidebar-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
}

.sd-sidebar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sd-sidebar-info strong {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-sidebar-info span {
    font-size: 10px;
    color: #64748b;
}

.sd-sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    background: none;
}

.sd-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

.sd-nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.sd-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sd-nav-badge {
    margin-left: auto;
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sd-nav-cta {
    margin-top: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80 !important;
    border: 1px dashed rgba(74, 222, 128, 0.3);
}

.sd-nav-cta:hover {
    background: rgba(34, 197, 94, 0.2);
}

.sd-sidebar-footer {
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sd-nav-logout {
    color: #ef4444 !important;
}

.sd-nav-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* --- Main Content --- */
.sd-saas-main {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
    overflow-y: auto;
}

.sd-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sd-main-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* --- Stats Row --- */
.sd-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sd-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.sd-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.sd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sd-stat-blue .sd-stat-icon { background: #dbeafe; color: #2563eb; }
.sd-stat-orange .sd-stat-icon { background: #ffedd5; color: #ea580c; }
.sd-stat-green .sd-stat-icon { background: #dcfce7; color: #16a34a; }

.sd-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.sd-stat-label {
    font-size: 13px;
    color: #64748b;
}

/* --- Content Card --- */
.sd-content-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sd-content-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px;
}

/* --- Lists --- */
.sd-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.15s;
}

.sd-list-row:hover {
    background: #f8fafc;
}

/* Client overview: recent requests are buttons — sync tracker on click */
button.sd-list-row.sd-client-recent-row {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    margin: 0;
    box-sizing: border-box;
}

button.sd-list-row.sd-client-recent-row:focus {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

button.sd-list-row.sd-client-recent-row.is-selected {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

button.sd-list-row.sd-client-recent-row.is-selected:hover {
    background: #dbeafe;
}

.sd-tracker-heading {
    margin-bottom: 16px;
}

.sd-tracker-heading h3 {
    margin: 0 0 6px;
}

.sd-tracker-job-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.sd-tracker-job-label--empty {
    display: none;
}

.sd-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-list-info {
    flex: 1;
    min-width: 0;
}

.sd-list-info strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
}

.sd-list-info span {
    font-size: 11px;
    color: #94a3b8;
}

.sd-list-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    max-width: 100%;
    justify-content: flex-end;
}

.sd-list-mini-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
}

.sd-job-taken-notice {
    font-size: 13px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 10px;
}

.sd-jc-pending-dispatch {
    margin: 0 0 12px;
    font-size: 13px;
}

/* --- Badges --- */
.sd-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.sd-badge-green { background: #dcfce7; color: #16a34a; }
.sd-badge-orange { background: #ffedd5; color: #ea580c; }
.sd-badge-red { background: #fef2f2; color: #ef4444; }

.sd-urgency-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.sd-urgency-tag.urgent { background: #fef2f2; color: #ef4444; }
.sd-urgency-tag.priority { background: #fffbeb; color: #d97706; }

/* --- Job Grid --- */
.sd-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.sd-job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.15s;
}

.sd-job-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.sd-card-urgent { border-left: 4px solid #ef4444; }
.sd-card-priority { border-left: 4px solid #f59e0b; }

.sd-jc-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.sd-jc-top .sd-badge {
    margin-left: auto;
}

.sd-jc-id {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.sd-jc-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
}

.sd-jc-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px;
}

.sd-jc-field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 3px;
}

.sd-jc-work-details {
    margin-top: -4px;
}

.sd-jc-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #475569;
}

.sd-jc-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-jc-meta .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.sd-jc-pay {
    font-weight: 700;
    color: #059669 !important;
}

.sd-jc-details-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.sd-jc-details-box > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-jc-details-box .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.sd-jc-photos {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.sd-jc-photos a {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}

.sd-jc-photos a:hover { border-color: #3b82f6; }
.sd-jc-photos img { width: 100%; height: 100%; object-fit: cover; }

/* --- Actions --- */
.sd-jc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.sd-jc-claim-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-jc-claim-row .sd-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    justify-content: center;
}

.sd-jc-actions .sd-job-details-btn {
    justify-content: center;
}

.sd-list-details-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 0 !important;
}

/* --- Job details modal (vendor) --- */
.sd-job-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.sd-job-modal-overlay.sd-open {
    opacity: 1;
}

.sd-job-modal {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    margin: auto 0;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.sd-job-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sd-job-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.sd-job-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.sd-job-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sd-job-modal-meta {
    font-size: 12px;
    color: #64748b;
    padding: 0 22px 12px;
}

.sd-job-modal-body {
    padding: 0 22px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.sd-job-modal-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 16px;
    white-space: pre-wrap;
}

.sd-job-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}

.sd-job-modal-table th,
.sd-job-modal-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.sd-job-modal-table th {
    width: 38%;
    color: #64748b;
    font-weight: 600;
}

.sd-job-modal-table td {
    color: #1e293b;
}

.sd-job-modal-files h4 {
    font-size: 13px;
    margin: 12px 0 8px;
    color: #475569;
}

.sd-job-modal-files ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
}

.sd-job-modal-files a {
    color: #2563eb;
}

.sd-job-modal-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sd-job-modal-photos a {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sd-job-modal-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-job-modal-discussion {
    margin-top: 16px;
    padding: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.sd-job-modal-discussion h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
}

.sd-job-modal-discussion-note {
    font-size: 13px;
    color: #78350f;
    margin: 0 0 10px;
}

.sd-job-modal-discussion-locked {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
}

.sd-job-modal-discussion-locked .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sd-discussion-thread--modal {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.sd-vendor-discussion-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.sd-job-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 22px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

.sd-job-modal-footer .sd-btn {
    flex: 1 1 auto;
    justify-content: center;
}

.sd-job-modal-loading,
.sd-job-modal-error {
    padding: 32px 22px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.sd-btn .dashicons { font-size: 15px; width: 15px; height: 15px; }
.sd-btn-primary { background: #3b82f6; color: #fff; }
.sd-btn-primary:hover { background: #2563eb; color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.sd-btn-success { background: #22c55e; color: #fff; }
.sd-btn-success:hover { background: #16a34a; color: #fff; }
.sd-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.sd-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.sd-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Progress --- */
.sd-progress-wrap { margin-top: 6px; }
.sd-progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.sd-progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.sd-progress-text { font-size: 11px; color: #94a3b8; }

/* --- Tables --- */
.sd-table {
    width: 100%;
    border-collapse: collapse;
}

.sd-table thead th {
    background: #f8fafc;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.sd-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.sd-table tbody tr:hover { background: #fafbfc; }

/* --- Overview Grid --- */
.sd-overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

/* --- Tracker --- */
.sd-tracker {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 24px;
}

.sd-tracker::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}

.sd-tracker-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 9px 0;
    position: relative;
}

.sd-tracker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    position: absolute;
    left: -24px;
    top: 11px;
    z-index: 1;
}

.sd-tracker-step.completed .sd-tracker-dot { background: #22c55e; border-color: #22c55e; }
.sd-tracker-step.current .sd-tracker-dot { background: #3b82f6; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }

.sd-tracker-info { display: flex; flex-direction: column; }
.sd-tracker-info strong { font-size: 13px; color: #1e293b; }
.sd-tracker-step.pending .sd-tracker-info strong { color: #94a3b8; }
.sd-tracker-info span { font-size: 12px; color: #64748b; }
.sd-tracker-step.pending .sd-tracker-info span { color: #cbd5e1; }

/* --- Admin Feedback --- */
.sd-admin-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.sd-admin-feedback strong { display: block; margin-bottom: 4px; }
.sd-admin-feedback p { margin: 0; }

.sd-admin-feedback.rejected { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.sd-admin-feedback.needs-revision { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.sd-admin-feedback:not(.rejected):not(.needs-revision) { background: #eff6ff; border: 1px solid #93c5fd; color: #1e3a8a; }

/* --- Empty State --- */
.sd-empty-state {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
}

.sd-empty-state .dashicons { font-size: 40px; width: 40px; height: 40px; color: #cbd5e1; margin-bottom: 12px; }
.sd-empty-state h3 { color: #64748b; margin: 0 0 8px; font-size: 16px; }
.sd-empty-state p { color: #94a3b8; margin: 0; font-size: 14px; }

/* --- Forms --- */
.sd-form-group { margin-bottom: 18px; }
.sd-form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.sd-input { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.sd-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.sd-input:disabled { background: #f9fafb; color: #6b7280; }

.sd-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.sd-checkbox-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all 0.15s; }
.sd-checkbox-item:hover { background: #f8fafc; border-color: #93c5fd; }

/* --- Notices --- */
.sd-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.sd-notice-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.sd-muted { color: #94a3b8; font-style: italic; text-align: center; padding: 24px; }

/* --- WooCommerce My Account (sd_vendor): one sidebar, no top WC nav --- */
.sd-wc-vendor-account-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 560px;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.sd-wc-vendor-account-wrap .sd-saas-sidebar {
    align-self: stretch;
}

.sd-vendor-wc-main.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    padding: 28px 32px !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    background: #f8fafc;
}

body.sd-vendor-wc-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

.sd-sidebar-nav-divider {
    height: 1px;
    margin: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
}

.sd-sidebar-nav-heading {
    display: block;
    padding: 6px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

/* --- Login / Access --- */
.sd-login-prompt { display: flex; justify-content: center; align-items: center; min-height: 400px; }
.sd-login-card { text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 48px; max-width: 400px; }
.sd-login-card .dashicons { font-size: 48px; width: 48px; height: 48px; color: #94a3b8; margin-bottom: 12px; }
.sd-login-card h2 { color: #1e293b; margin-bottom: 8px; }
.sd-login-card p { color: #64748b; margin-bottom: 20px; }
.sd-access-denied { text-align: center; padding: 60px 20px; }
.sd-access-denied h2 { color: #ef4444; }

/* --- Profile verification / onboarding --- */
.sd-sidebar-status-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 6px;
}
.sd-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff !important;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}
.sd-verification-needed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 999px;
    background: #d97706;
    color: #fff !important;
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.35);
}
.sd-sidebar-completion-hint {
    font-size: 11px;
    font-weight: 500;
    color: #fbbf24 !important;
}
.sd-nav-cta-locked {
    opacity: 0.85;
}
.sd-profile-gate {
    text-align: center;
    padding: 40px 28px;
    max-width: 560px;
    margin: 0 auto;
}
.sd-profile-gate-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #f59e0b;
    margin-bottom: 12px;
}
.sd-profile-gate h3 { color: #1e293b; margin-bottom: 10px; }
.sd-profile-gate p { color: #64748b; line-height: 1.55; margin-bottom: 20px; }
.sd-profile-card,
.sd-profile-fluent-wrap { margin-bottom: 20px; }
.sd-profile-completion {
    margin: 16px 0 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.sd-profile-completion-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}
.sd-profile-completion-head strong { color: #0f172a; font-size: 18px; }
.sd-profile-completion-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.sd-profile-completion-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.35s ease;
}
.sd-profile-verified-msg {
    margin: 14px 0 0;
    font-size: 14px;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sd-profile-verified-msg .dashicons { color: #22c55e; }
.sd-content-card--nested {
    background: #f8fafc;
    border-style: dashed;
}
.sd-profile-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sd-profile-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}
.sd-profile-summary-list li:last-child { border-bottom: none; }
.sd-profile-summary-list span { color: #64748b; }
.sd-profile-fluent-wrap .fluentform {
    margin-top: 12px;
}

/* --- Celebration / Verification Modal --- */
.sd-celebration-root {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.sd-celebration-root.sd-celebration-visible {
    opacity: 1;
    pointer-events: auto;
}
.sd-celebration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.sd-confetti-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.sd-celebration-panel {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sd-celebration-visible .sd-celebration-panel {
    transform: scale(1) translateY(0);
}
.sd-celebration-badge-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
}
.sd-celebration-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}
.sd-celebration-text {
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px;
}
.sd-celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}
.sd-celebration-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.sd-celebration-btn {
    font-size: 16px;
    padding: 12px 36px;
    border-radius: 12px;
    min-width: 160px;
}

/* --- Locked form (post-submission) --- */
.sd-form-locked .fluentform input,
.sd-form-locked .fluentform textarea,
.sd-form-locked .fluentform select,
.sd-form-locked .fluentform .ff-el-form-check input,
.sd-form-locked .fluentform .choices,
.sd-form-locked .fluentform .ff-el-ratings {
    pointer-events: none !important;
    opacity: 0.7;
    background-color: #f8fafc !important;
    cursor: not-allowed !important;
}
.sd-form-locked .fluentform .ff_submit_btn_wrapper {
    display: none !important;
}
.sd-form-locked .fluentform .ff-btn-submit,
.sd-form-locked .fluentform button[type="submit"] {
    display: none !important;
}
.sd-form-locked-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.sd-form-locked-msg .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #d97706;
}

/* Hide arrow icons / decorators in Fluent Forms submit buttons */
.sd-profile-fluent-wrap .ff-btn-submit .ff-icon,
.sd-profile-fluent-wrap .ff-btn-submit svg,
.sd-profile-fluent-wrap .ff-btn-submit img.ff-btn-md,
.sd-profile-fluent-wrap .ff-btn-submit .dashicons,
.sd-profile-fluent-wrap .ff-btn-submit i {
    display: none !important;
}
.sd-profile-fluent-wrap .ff-btn-submit::after {
    content: none !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .sd-saas-wrap,
    .sd-wc-vendor-account-wrap { flex-direction: column; }
    .sd-saas-sidebar { width: 100%; min-width: 100%; }
    .sd-sidebar-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px 10px; }
    .sd-nav-item { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
    .sd-nav-label { display: none; }
    .sd-nav-item .dashicons { font-size: 20px; width: 20px; height: 20px; }
    .sd-sidebar-footer { display: none; }
    .sd-saas-main { padding: 20px 16px; }
    body.sd-vendor-wc-account .sd-sidebar-nav .sd-nav-label { display: inline; }
    body.sd-vendor-wc-account .sd-sidebar-nav-heading { display: block; }
    body.sd-vendor-wc-account .sd-sidebar-footer { display: block; }
    body.sd-vendor-wc-account .sd-vendor-wc-main.woocommerce-MyAccount-content { padding: 20px 16px !important; }
    .sd-overview-grid { grid-template-columns: 1fr; }
    .sd-job-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .sd-stats-row { grid-template-columns: 1fr; }
    .sd-sidebar-header { display: none; }
    .sd-nav-badge { display: none; }
}
