:root{--hdsp-navy:#07172d;--hdsp-navy2:#0f2745;--hdsp-gold:#c9a96e;--hdsp-gold2:#d9b84c;--hdsp-ink:#0d1b34;--hdsp-muted:#68748a;--hdsp-line:#e4e9f2;--hdsp-bg:#f5f7fb;--hdsp-card:#fff;--hdsp-green:#16a34a;--hdsp-blue:#2563eb;--hdsp-orange:#f59e0b;--hdsp-red:#ef4444}.hdsp-form,.hdsp-dashboard{background:#fff;border:1px solid #e7e0d5;border-radius:18px;padding:0;box-shadow:0 14px 40px rgba(0,0,0,.07);overflow:hidden}.hdsp-form-head{background:#0f1f35;color:#fff;padding:30px}.hdsp-form-head span{display:inline-flex;background:#c9a96e;color:#0f1f35;border-radius:999px;padding:6px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:800}.hdsp-form-head h2{margin:14px 0 8px;color:#fff;font-size:30px}.hdsp-form-head p{margin:0;color:#dbe4f2;max-width:760px}.hdsp-section{padding:26px 30px;border-bottom:1px solid #eee7dd}.hdsp-section.no-border{border-bottom:0}.hdsp-section h3,.hdsp-section h2{margin:0 0 12px;color:#0f1f35}.hdsp-help,.hdsp-form small{display:block;color:#7a8496;font-size:13px;margin-top:6px}.hdsp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:18px}.hdsp-form p{margin:0}.hdsp-form label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#7a7060;margin-bottom:7px;font-weight:700}.hdsp-form input,.hdsp-form textarea,.hdsp-form select{width:100%;border:1px solid #d8d0c4;border-radius:10px;padding:13px 14px;background:#fafafa;font-size:15px}.hdsp-checkgrid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px}.hdsp-checkgrid label{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #dce3ee;border-radius:12px;padding:12px 14px;text-transform:none;letter-spacing:0;font-size:14px;color:#0f1f35;cursor:pointer}.hdsp-checkgrid input{width:auto}.hdsp-checkgrid label:has(input:checked){background:#fff8e7;border-color:#c9a96e}.hdsp-btn{margin:26px 30px 30px;background:#c9a96e;color:#0f1f35;border:0;border-radius:10px;padding:15px 26px;font-weight:800;cursor:pointer;font-size:15px}.hdsp-btn:hover{filter:brightness(.95)}.hdsp-notice,.hdsp-alert{background:#effaf3;border:1px solid #b7ebc6;border-radius:12px;padding:14px 16px;margin:0 0 18px;color:#116329}.hdsp-alert.warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.hdsp-portal-message{background:#fff;border:1px solid var(--hdsp-line);border-radius:18px;padding:28px}.hdsp-portal-v33{display:grid;grid-template-columns:280px minmax(0,1fr);background:var(--hdsp-bg);border-radius:22px;overflow:hidden;border:1px solid #dfe6f1;box-shadow:0 22px 55px rgba(7,23,45,.12);min-height:720px}.hdsp-portal-sidebar{background:linear-gradient(180deg,var(--hdsp-navy),#06101f);color:#fff;padding:22px;display:flex;flex-direction:column;gap:22px}.hdsp-brand{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.12)}.hdsp-logo{width:44px;height:44px;border-radius:12px;background:#1d4ed8;display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:inset 0 0 0 3px rgba(255,255,255,.12)}.hdsp-brand strong{display:block;font-size:18px;line-height:1.2}.hdsp-brand small{display:block;color:#aebbd0;text-transform:uppercase;letter-spacing:.12em;font-size:10px;margin-top:3px}.hdsp-portal-sidebar nav{display:flex;flex-direction:column;gap:6px}.hdsp-portal-sidebar nav a{display:flex;align-items:center;gap:10px;color:#d7dfed;text-decoration:none;border-radius:12px;padding:12px 13px;font-weight:700}.hdsp-portal-sidebar nav a:hover,.hdsp-portal-sidebar nav a.active{background:#1f5de8;color:#fff}.hdsp-help-card{margin-top:auto;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:16px}.hdsp-help-card strong{display:block;margin-bottom:6px}.hdsp-help-card p{font-size:13px;color:#c8d2e2;margin:0;line-height:1.5}.hdsp-portal-main{padding:28px;min-width:0}.hdsp-hero{background:linear-gradient(135deg,var(--hdsp-navy2),#0c1e38);color:#fff;border-radius:20px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.hdsp-hero h1{color:#fff;font-size:32px;margin:10px 0 8px;line-height:1.1}.hdsp-hero p{color:#dbe7f8;margin:0}.hdsp-pill{display:inline-flex;align-items:center;border:1px solid rgba(201,169,110,.6);color:#f5cf72;border-radius:999px;padding:6px 13px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;font-size:11px}.hdsp-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hdsp-action,.hdsp-mini-action{display:inline-flex;align-items:center;justify-content:center;background:var(--hdsp-gold2);color:#07172d!important;text-decoration:none!important;border-radius:12px;padding:13px 18px;font-weight:900;border:0}.hdsp-action.secondary{background:#fff;color:#07172d!important}.hdsp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.hdsp-kpis div,.hdsp-panel{background:#fff;border:1px solid var(--hdsp-line);border-radius:18px;box-shadow:0 10px 28px rgba(7,23,45,.06)}.hdsp-kpis div{padding:20px}.hdsp-kpis small{display:block;text-transform:uppercase;letter-spacing:.12em;color:#65758d;font-size:11px;font-weight:900}.hdsp-kpis strong{display:block;color:#07172d;font-size:36px;margin:4px 0;line-height:1}.hdsp-kpis span{display:block;color:#7b8798;font-size:13px}.hdsp-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.hdsp-panel{padding:22px;margin-bottom:18px}.hdsp-panel h2{color:#07172d;font-size:24px;margin:0 0 12px}.hdsp-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:15px}.hdsp-profile-list{display:grid;grid-template-columns:150px 1fr;gap:12px;margin:0}.hdsp-profile-list.wide{grid-template-columns:210px 1fr}.hdsp-profile-list dt{color:#64748b;font-weight:900}.hdsp-profile-list dd{margin:0;color:#07172d}.hdsp-quick-actions{display:grid;grid-template-columns:1fr;gap:10px}.hdsp-quick-actions a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:#0f3ea8;background:#f8fbff;border:1px solid #dfe7f4;border-radius:12px;padding:12px 14px;font-weight:800}.hdsp-quick-actions a:after{content:'→'}.hdsp-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--hdsp-line);border-radius:14px;overflow:hidden;background:#fff}.hdsp-table th{background:#f8fafc;color:#4c5d74;text-align:left;text-transform:uppercase;letter-spacing:.08em;font-size:11px;padding:13px}.hdsp-table td{border-top:1px solid var(--hdsp-line);padding:14px;color:#25344d}.hdsp-table-link{font-weight:900;color:#1d4ed8;text-decoration:none}.hdsp-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#edf4ff;color:#1d4ed8;padding:5px 10px;font-size:12px;font-weight:900;text-transform:capitalize}.hdsp-status.status-publish,.hdsp-status.status-verified,.hdsp-status.status-vip{background:#ecfdf3;color:#15803d}.hdsp-status.status-pending{background:#fff7ed;color:#c2410c}.hdsp-status.status-draft,.hdsp-status.status-standard{background:#f1f5f9;color:#475569}.hdsp-empty-state{background:#f8fafc;border:1px dashed #cad5e5;border-radius:16px;padding:28px;text-align:center;color:#64748b;font-weight:700}.hdsp-import-panel .hdsp-code,.hdsp-code{background:#07172d;color:#e5edf8;border-radius:14px;padding:18px;overflow:auto}.hdsp-import-panel input[type=file]{display:block;border:1px dashed #b8c6d8;background:#f8fbff;border-radius:16px;padding:24px;width:100%;margin:18px 0}@media(max-width:980px){.hdsp-portal-v33{grid-template-columns:1fr}.hdsp-portal-sidebar{position:relative}.hdsp-portal-sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.hdsp-hero,.hdsp-panel-head{flex-direction:column;align-items:flex-start}.hdsp-kpis,.hdsp-grid-2{grid-template-columns:1fr 1fr}.hdsp-form-grid,.hdsp-checkgrid{grid-template-columns:1fr}}@media(max-width:640px){.hdsp-portal-main{padding:16px}.hdsp-kpis,.hdsp-grid-2{grid-template-columns:1fr}.hdsp-portal-sidebar nav{grid-template-columns:1fr}.hdsp-hero h1{font-size:25px}.hdsp-profile-list,.hdsp-profile-list.wide{grid-template-columns:1fr}.hdsp-form-head,.hdsp-section{padding:22px}.hdsp-btn{margin:22px}}

/* v3.3.1 Frontend Product Editor */
.hdsp-row-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hdsp-row-actions .hdsp-table-link{display:inline-flex;align-items:center;padding:4px 8px;border-radius:6px;background:#eef4ff;text-decoration:none;font-weight:700}
.hdsp-row-actions .hdsp-table-link:hover{background:#dbeafe}
.hdsp-product-form small{display:block;margin-top:6px;color:#64748b}

/* v3.3.2 Product Image Fix */
.hdsp-products-table .hdsp-product-thumb-cell{width:86px}
.hdsp-product-thumb{width:64px;height:64px;border-radius:12px;background:#f3f6fb;border:1px solid #dfe6f1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hdsp-product-thumb-img{width:100%;height:100%;object-fit:cover;display:block}
.hdsp-product-thumb-placeholder{font-size:10px;color:#7b8798;text-align:center;line-height:1.2;padding:6px}
.hdsp-image-editor{margin-top:18px;margin-bottom:18px}
.hdsp-image-editor label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#7a7060;margin-bottom:7px;font-weight:700}
.hdsp-current-image{width:220px;min-height:140px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px}
.hdsp-current-image-img{max-width:100%;height:auto;border-radius:12px;display:block}
.hdsp-current-image-placeholder{color:#64748b;font-size:13px;font-weight:700;text-align:center}

/* v3.5 Analytics + Supplier Score + Gallery */
.hdsp-score-panel{text-align:center}
.hdsp-score-circle{width:150px;height:150px;border-radius:50%;margin:12px auto 18px;background:conic-gradient(var(--hdsp-gold2) 0 75%, #e5edf8 75% 100%);display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 0 12px #fff,0 12px 28px rgba(7,23,45,.1)}
.hdsp-score-circle strong{font-size:46px;line-height:1;color:var(--hdsp-navy)}
.hdsp-score-circle span{font-weight:900;color:#64748b}
.hdsp-badges{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.hdsp-badges span{display:inline-flex;align-items:center;background:#fff8e7;border:1px solid #e6c56d;color:#705115;border-radius:999px;padding:8px 12px;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.hdsp-gallery-preview{margin:18px 0}
.hdsp-gallery-preview>label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#7a7060;margin-bottom:8px;font-weight:700}
.hdsp-gallery-grid{display:grid;grid-template-columns:repeat(4,80px);gap:10px}
.hdsp-gallery-grid div{width:80px;height:80px;border-radius:12px;border:1px solid #dfe6f1;background:#f8fafc;overflow:hidden;display:flex;align-items:center;justify-content:center}
.hdsp-gallery-grid img{width:100%;height:100%;object-fit:cover;display:block}
.hdsp-gallery-empty{background:#f8fafc;border:1px dashed #cad5e5;border-radius:12px;padding:16px;color:#64748b;font-weight:700;display:inline-flex}
.hdsp-form input[type=file]{background:#f8fbff;border:1px dashed #b8c6d8}

/* v3.5.4 AI product image redesign */
.hdsp-ai-option,
.hdsp-ai-redesign-form{
  margin:12px 0 18px;
  padding:14px 16px;
  border:1px solid rgba(201,161,77,.35);
  background:linear-gradient(135deg,rgba(201,161,77,.10),rgba(14,28,51,.04));
  border-radius:14px;
}
.hdsp-ai-option label{font-weight:700;display:block;margin-bottom:6px;}
.hdsp-ai-option small,
.hdsp-ai-redesign-form small{display:block;margin-top:8px;color:#64748b;line-height:1.45;}
.hdsp-ai-redesign-form .hdsp-mini-action{border:0;cursor:pointer;}


/* v3.5.4 Supplier AI Image Studio */
.hdsp-ai-studio{margin:18px 0;padding:18px;border:1px solid #d8e0ee;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.hdsp-ai-studio-head{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}.hdsp-ai-studio-head strong{font-size:16px}.hdsp-ai-studio-head small{color:#667085}.hdsp-ai-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}.hdsp-ai-actions form,.hdsp-ai-idea form{margin:0}.hdsp-ai-ideas{margin-top:12px}.hdsp-ai-idea-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:10px}.hdsp-ai-idea{padding:10px;border:1px solid #edf1f7;border-radius:14px;background:#fafafa}.hdsp-ai-idea img{width:100%;height:160px;object-fit:cover;border-radius:12px;display:block;margin-bottom:10px}@media(max-width:780px){.hdsp-ai-idea-grid{grid-template-columns:1fr}.hdsp-ai-idea img{height:auto}}

/* v3.5.4 AI Studio action links: avoids nested form conflicts inside supplier product edit form */
.hdsp-ai-studio a.hdsp-mini-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;}
.hdsp-ai-studio a.hdsp-mini-action.hdsp-ai-is-loading{opacity:.65;pointer-events:none;}
.hdsp-ai-studio a.hdsp-mini-action.hdsp-ai-is-loading:after{content:' ';width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:hdsp-spin .8s linear infinite;}
@keyframes hdsp-spin{to{transform:rotate(360deg)}}

.hdsp-ai-status{margin:12px 0 14px;padding:10px 12px;border-radius:10px;border:1px solid #d9e3f7;background:#f7faff;color:#34405a;font-size:13px;font-weight:600}
.hdsp-ai-status-running{border-color:#f2d48a;background:#fff9e8;color:#7a5411}
.hdsp-ai-status-done{border-color:#bfe7c7;background:#f0fff4;color:#1f6b35}
.hdsp-ai-status-failed{border-color:#ffc4c4;background:#fff2f2;color:#9b1c1c}
