/* MatchProfessionale - Frontend CSS */
.mp-search-form{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.mp-search-form select,.mp-search-form input{flex:1;min-width:200px;padding:10px;border:1px solid #ddd;border-radius:6px}
.mp-search-form button{padding:10px 20px;background:#0066cc;color:#fff;border:0;border-radius:6px;cursor:pointer}
.mp-search-form button:hover{background:#0052a3}

.mp-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.mp-pro-card{background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.mp-pro-card h3{margin:0 0 8px;font-size:18px}
.mp-rating{color:#fa0;margin-bottom:6px}
.mp-rating .star{color:#ccc}
.mp-rating .star.filled{color:#fa0}
.mp-rating span:last-child{color:#666;font-size:13px;margin-left:4px}
.mp-category{color:#0066cc;font-size:13px;font-weight:600}
.mp-city{color:#666;font-size:13px}

.mp-form{max-width:700px;background:#fff;padding:24px;border-radius:8px;border:1px solid #e5e5e5}
.mp-field{margin-bottom:16px}
.mp-field label{display:block;margin-bottom:6px;font-weight:600;color:#333}
.mp-field input,.mp-field select,.mp-field textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit;box-sizing:border-box}
.mp-field input:focus,.mp-field select:focus,.mp-field textarea:focus{outline:0;border-color:#0066cc;box-shadow:0 0 0 3px rgba(0,102,204,.1)}
.mp-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.mp-btn{display:inline-block;padding:12px 24px;border:0;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;text-decoration:none;transition:.2s}
.mp-btn-primary{background:#0066cc;color:#fff}
.mp-btn-primary:hover{background:#0052a3}
.mp-btn-secondary{background:#f0f0f0;color:#333}
.mp-btn-secondary:hover{background:#e0e0e0}

.mp-form-result{margin-top:12px;padding:10px;border-radius:6px}
.mp-form-result.success{background:#d4edda;color:#155724}
.mp-form-result.error{background:#f8d7da;color:#721c24}

.mp-dashboard{max-width:1100px}
.mp-dashboard-header{background:#fff;padding:24px;border-radius:8px;border:1px solid #e5e5e5;margin-bottom:24px}
.mp-stats{display:flex;gap:24px;flex-wrap:wrap;margin-top:16px}
.mp-stat{flex:1;min-width:140px;background:#f9fafb;padding:16px;border-radius:6px}
.mp-stat-label{display:block;color:#666;font-size:13px;margin-bottom:4px}
.mp-stat-value{display:block;font-size:24px;font-weight:700;color:#0066cc}

.mp-requests-list,.mp-conversations{display:flex;flex-direction:column;gap:12px}
.mp-request-card{background:#fff;padding:16px;border:1px solid #e5e5e5;border-radius:8px}
.mp-request-card h4{margin:0 0 6px}
.mp-meta{color:#888;font-size:13px;margin-bottom:8px}
.mp-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600}
.mp-badge-success{background:#d4edda;color:#155724}

.mp-conv-item{padding:12px;background:#fff;border:1px solid #e5e5e5;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:8px}
.mp-conv-item:hover{background:#f9fafb}
.mp-unread{margin-left:auto;background:#dc3545;color:#fff;padding:2px 8px;border-radius:10px;font-size:12px}

.mp-chat-window{margin-top:16px;background:#fff;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden}
.mp-chat-messages{height:360px;overflow-y:auto;padding:16px;background:#f9fafb;display:flex;flex-direction:column;gap:8px}
.mp-msg{max-width:70%;padding:8px 12px;border-radius:12px}
.mp-msg-me{align-self:flex-end;background:#0066cc;color:#fff}
.mp-msg-them{align-self:flex-start;background:#fff;border:1px solid #e5e5e5}
.mp-msg-sender{font-size:11px;opacity:.8;margin-bottom:2px}
.mp-msg-time{font-size:11px;opacity:.7;margin-top:4px}
.mp-chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid #e5e5e5}
.mp-chat-input textarea{flex:1;padding:8px;border:1px solid #ddd;border-radius:6px;resize:none;height:48px}

.mp-packages-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.mp-package-card{background:#fff;padding:24px;border:2px solid #e5e5e5;border-radius:10px;text-align:center}
.mp-package-card.mp-subscription{border-color:#0066cc;position:relative}
.mp-package-card h3{margin:0 0 12px;font-size:20px}
.mp-price-tag{font-size:32px;font-weight:800;color:#0066cc;margin-bottom:8px}
.mp-credits-tag{color:#666;font-size:14px;margin-bottom:12px;font-weight:600}
.mp-paypal-container{margin-top:16px;min-height:50px}

.mp-categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.mp-category-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 8px;background:#fff;border:1px solid #e5e5e5;border-radius:8px;text-decoration:none;color:#333;transition:.2s}
.mp-category-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.08);border-color:#0066cc}
.mp-category-icon{font-size:32px}
.mp-category-name{font-weight:600;font-size:13px;text-align:center}

.mp-quotes{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.mp-quote{background:#f9fafb;padding:12px;border-radius:6px;border:1px solid #e5e5e5}
.mp-price{margin-left:auto;font-weight:700;color:#0066cc}
.mp-rating-small{color:#fa0;font-size:13px;margin-left:8px}

@media(max-width:600px){
    .mp-field-row{grid-template-columns:1fr}
    .mp-search-form{flex-direction:column}
    .mp-stats{flex-direction:column}
}

/* GDPR */
.mp-consent-box{background:#f8f9fa;border:1px solid #e5e5e5;border-radius:8px;padding:14px;margin:14px 0}
.mp-consent-box .mp-checkbox{margin-bottom:8px}
.mp-consent-box .mp-checkbox label{display:flex;align-items:flex-start;gap:8px;font-weight:400;font-size:13px;line-height:1.4;cursor:pointer}
.mp-consent-box .mp-checkbox input{margin-top:3px;width:auto}
.mp-consent-box .mp-checkbox a{color:#0066cc}
.mp-consent-note{font-size:12px;color:#666;margin-top:10px;line-height:1.4;font-style:italic}

.mp-privacy-tools{max-width:800px}
.mp-privacy-card{background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:20px;margin-bottom:16px}
.mp-privacy-card h3{margin:0 0 8px;font-size:18px}
.mp-btn-danger{background:#dc3545;color:#fff}
.mp-btn-danger:hover{background:#c82333}
.mp-consents-table{width:100%;border-collapse:collapse;margin-top:10px}
.mp-consents-table th,.mp-consents-table td{padding:8px;border-bottom:1px solid #eee;text-align:left;font-size:13px}
.mp-consents-table th{background:#f9fafb;font-weight:600}

/* ===== SOCIAL LOGIN ===== */
.mp-social-login{max-width:400px;margin:20px auto}
.mp-social-divider{text-align:center;position:relative;margin:24px 0;color:#999;font-size:13px}
.mp-social-divider::before{content:'';position:absolute;top:50%;left:0;right:0;height:1px;background:#e5e5e5}
.mp-social-divider span{background:#fff;padding:0 12px;position:relative}
.mp-social-btn{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 16px;margin-bottom:10px;border-radius:8px;text-decoration:none;font-weight:600;font-size:14px;transition:.2s;border:1px solid transparent}
.mp-social-google{background:#fff;color:#3c4043;border-color:#dadce0}
.mp-social-google:hover{background:#f8f9fa;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.mp-social-facebook{background:#1877f2;color:#fff}
.mp-social-facebook:hover{background:#166fe5;color:#fff}
.mp-social-note{font-size:11px;color:#999;text-align:center;margin-top:14px}

/* ===== AVATAR UPLOADER ===== */
.mp-avatar-uploader{display:flex;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.mp-avatar-preview{width:96px;height:96px;border-radius:50%;background:#f0f0f0 center/cover;border:3px solid #e5e5e5;display:flex;align-items:center;justify-content:center;font-size:36px;color:#999;flex-shrink:0}
.mp-gallery-uploader{margin:14px 0}
.mp-gallery-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-bottom:12px}
.mp-gallery-item{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#f0f0f0}
.mp-gallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.mp-gallery-remove{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.7);color:#fff;border:0;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center}

/* ===== CATEGORIES MULTI-CHECKBOX ===== */
.mp-categories-grid-checkbox{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:8px 0}
.mp-cat-check{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;background:#fff;border:2px solid #e5e5e5;border-radius:8px;cursor:pointer;transition:.15s;text-align:center}
.mp-cat-check:hover{border-color:#0066cc}
.mp-cat-check.selected,.mp-cat-check:has(input:checked){border-color:#0066cc;background:#eff6ff}
.mp-cat-check input{position:absolute;opacity:0;pointer-events:none}
.mp-cat-check .mp-cat-icon{font-size:24px}
.mp-cat-check .mp-cat-label{font-size:12px;font-weight:600;color:#333}
.mp-help{font-size:12px;color:#666;margin-top:6px}

/* ===== CHAT WHATSAPP-LIKE ===== */
.mp-chat-app{display:grid;grid-template-columns:320px 1fr;height:600px;border:1px solid #e5e5e5;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 20px rgba(0,0,0,.05)}
.mp-chat-sidebar{border-right:1px solid #e5e5e5;display:flex;flex-direction:column;background:#f8f9fa}
.mp-chat-search{padding:12px;background:#fff;border-bottom:1px solid #e5e5e5}
.mp-chat-search input{width:100%;padding:8px 12px;border:1px solid #e5e5e5;border-radius:18px;font-size:13px;box-sizing:border-box}
.mp-chat-conversations{flex:1;overflow-y:auto}
.mp-conv-item{display:flex;gap:12px;padding:12px;border-bottom:1px solid #eee;cursor:pointer;transition:.15s}
.mp-conv-item:hover{background:#fff}
.mp-conv-item.active{background:#e8f0fe}
.mp-conv-avatar{width:48px;height:48px;border-radius:50%;background:#0066cc center/cover;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;flex-shrink:0}
.mp-conv-info{flex:1;min-width:0}
.mp-conv-top{display:flex;justify-content:space-between;align-items:baseline}
.mp-conv-top strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.mp-conv-time{font-size:11px;color:#888;flex-shrink:0;margin-left:6px}
.mp-conv-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:2px}
.mp-conv-preview{font-size:13px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.mp-conv-unread{background:#25d366;color:#fff;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:700;margin-left:6px}
.mp-empty{text-align:center;color:#999;padding:20px;font-size:13px}

.mp-chat-main{display:flex;flex-direction:column;background:#e5ddd5;position:relative}
.mp-chat-placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:#666;background:#f0eee5}
.mp-chat-conversation{display:flex;flex-direction:column;height:100%}
.mp-chat-header{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#075e54;color:#fff;flex-shrink:0}
.mp-chat-back{display:none;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}
.mp-chat-header-avatar{width:40px;height:40px;border-radius:50%;background:#fff center/cover;color:#075e54;display:flex;align-items:center;justify-content:center;font-weight:700}
.mp-chat-header-info{flex:1}
.mp-chat-header-name{font-size:15px}
.mp-chat-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:4px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><circle cx='10' cy='10' r='0.5' fill='%23000' opacity='0.03'/></svg>");background-color:#e5ddd5}

.mp-msg{display:flex;margin-bottom:2px}
.mp-msg-me{justify-content:flex-end}
.mp-msg-them{justify-content:flex-start}
.mp-msg-bubble{max-width:75%;padding:6px 10px 6px 12px;border-radius:8px;position:relative;box-shadow:0 1px 1px rgba(0,0,0,.06);word-wrap:break-word}
.mp-msg-me .mp-msg-bubble{background:#dcf8c6;border-top-right-radius:0}
.mp-msg-them .mp-msg-bubble{background:#fff;border-top-left-radius:0}
.mp-msg-text{font-size:14px;color:#303030;line-height:1.4;white-space:pre-wrap;word-break:break-word}
.mp-msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:2px;font-size:11px;color:#888}
.mp-msg-status{font-size:13px;letter-spacing:-2px;color:#999}
.mp-msg-status.read{color:#4fc3f7}
.mp-msg-image img{max-width:240px;border-radius:6px;display:block;margin-bottom:4px}
.mp-msg-file{display:inline-block;background:rgba(0,0,0,.05);padding:8px 12px;border-radius:6px;color:#075e54;text-decoration:none;font-size:13px;margin-bottom:4px}

.mp-chat-input{display:flex;align-items:flex-end;gap:8px;padding:10px;background:#f0f0f0;border-top:1px solid #e5e5e5;flex-shrink:0}
.mp-chat-input textarea{flex:1;border:0;background:#fff;border-radius:22px;padding:10px 16px;font-size:14px;font-family:inherit;resize:none;max-height:120px;min-height:44px;line-height:1.4;outline:none;box-sizing:border-box}
.mp-attach-btn,.mp-send-btn{width:44px;height:44px;border-radius:50%;border:0;background:#075e54;color:#fff;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:.15s}
.mp-attach-btn{background:#f0f0f0;color:#666}
.mp-attach-btn:hover{background:#e0e0e0}
.mp-send-btn:hover{background:#0a8068}
.mp-send-btn:disabled{background:#ccc;cursor:not-allowed}

@media(max-width:768px){
    .mp-chat-app{grid-template-columns:1fr;height:80vh}
    .mp-chat-sidebar.hide-mobile{display:none}
    .mp-chat-main{display:none}
    .mp-chat-main.show-mobile{display:flex}
    .mp-chat-back{display:block}
}

/* ===== PROFILO PUBBLICO PRO RICCO ===== */
.mp-pro-public{max-width:900px;margin:0 auto}
.mp-pro-cover{height:200px;background:linear-gradient(135deg,#0066cc,#003d7a) center/cover;border-radius:12px 12px 0 0;margin-bottom:-50px}
.mp-pro-header{background:#fff;padding:20px;border-radius:0 0 12px 12px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.mp-pro-avatar-lg{width:120px;height:120px;border-radius:50%;border:4px solid #fff;background:#f0f0f0 center/cover;margin-top:-80px;display:inline-block;vertical-align:bottom;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.mp-pro-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.mp-pro-badge{display:inline-block;padding:4px 10px;background:#e8f0fe;color:#0066cc;border-radius:14px;font-size:12px;font-weight:600}

/* ===== BADGE VERIFICATO ===== */
.mp-verified-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border-radius:12px;font-size:11px;font-weight:700;letter-spacing:.3px;vertical-align:middle;margin-left:6px;box-shadow:0 1px 3px rgba(16,185,129,.3)}

/* ===== PREFERITI ===== */
.mp-fav-btn{background:transparent;border:0;cursor:pointer;font-size:22px;padding:6px;line-height:1;transition:transform .15s}
.mp-fav-btn:hover{transform:scale(1.2)}
.mp-fav-btn.active{filter:drop-shadow(0 0 6px rgba(239,68,68,.4))}
.mp-favorites-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:20px 0}
.mp-pro-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;text-align:center;position:relative;transition:.2s}
.mp-pro-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateY(-2px)}
.mp-pro-card-avatar{width:80px;height:80px;border-radius:50%;background:#f0f0f0 center/cover;margin:0 auto 10px}
.mp-pro-card h4{margin:8px 0;font-size:15px}
.mp-pro-card-cat,.mp-pro-card-city{font-size:13px;color:#666;margin:4px 0}
.mp-pro-card .mp-fav-btn{position:absolute;top:8px;right:8px}

/* ===== COUPON ===== */
.mp-coupon-box{display:flex;gap:8px;margin:12px 0;align-items:stretch}
.mp-coupon-input{flex:1;padding:10px 14px;border:1px solid #d1d5db;border-radius:8px;text-transform:uppercase;font-family:monospace;font-weight:600;letter-spacing:1px}
.mp-coupon-apply{padding:10px 20px;background:#0066cc;color:#fff;border:0;border-radius:8px;cursor:pointer;font-weight:600}
.mp-coupon-apply:hover{background:#0052a3}
.mp-coupon-msg{margin-top:6px;font-size:13px}
.mp-coupon-msg.success{color:#10b981;font-weight:600}
.mp-coupon-msg.error{color:#ef4444}

/* ===== STRIPE BUTTON ===== */
.mp-btn-stripe{background:linear-gradient(135deg,#635bff,#4f46e5);color:#fff;font-weight:600;border:0;padding:12px 24px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:.2s}
.mp-btn-stripe:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(99,91,255,.3)}
.mp-btn-stripe:disabled{opacity:.6;cursor:not-allowed}

/* ===== VERIFICATION FORM ===== */
.mp-verification-box{background:#fffbeb;border:1px solid #fbbf24;border-radius:12px;padding:20px;margin:20px 0}
.mp-verification-box h3{margin-top:0}

/* ===== HOMEPAGE WIDGET [mp_homepage] ===== */
.mp-homepage-widget{max-width:1100px;margin:0 auto;padding:0 16px;font-family:inherit}

/* Counter stats */
.mp-hw-stats{display:flex;justify-content:center;gap:0;margin:40px 0;background:linear-gradient(135deg,#0052a3,#0066cc,#0080ff);border-radius:16px;padding:40px 32px;flex-wrap:wrap}
.mp-hw-counter{flex:1;min-width:180px;text-align:center;padding:16px 24px;position:relative}
.mp-hw-counter+.mp-hw-counter::before{content:'';position:absolute;left:0;top:20%;height:60%;width:1px;background:rgba(255,255,255,.2)}
.mp-hw-number{display:block;font-size:56px;font-weight:800;color:#fff;line-height:1;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.mp-hw-counter--main .mp-hw-number{font-size:72px;color:#fff}
.mp-hw-label{display:block;color:rgba(255,255,255,.8);font-size:14px;margin-top:8px;text-transform:uppercase;letter-spacing:.8px;font-weight:600}

/* Titolo professionisti */
.mp-hw-pros-title{text-align:center;font-size:26px;font-weight:700;color:#1f2937;margin:48px 0 24px}

/* Grid professionisti */
.mp-hw-pros-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;margin-bottom:40px}

.mp-hw-pro-card{display:flex;flex-direction:column;align-items:center;gap:0;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px 16px 20px;text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s;text-align:center;position:relative;overflow:hidden}
.mp-hw-pro-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#0066cc,#0080ff);opacity:0;transition:.2s}
.mp-hw-pro-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,102,204,.12);color:inherit}
.mp-hw-pro-card:hover::before{opacity:1}

.mp-hw-pro-avatar{width:88px;height:88px;border-radius:50%;background:#0066cc center/cover;color:#fff;font-size:32px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:14px;position:relative;flex-shrink:0;box-shadow:0 4px 12px rgba(0,102,204,.2)}
.mp-hw-pro-verified{position:absolute;bottom:2px;right:2px;width:22px;height:22px;background:#10b981;border-radius:50%;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff}

.mp-hw-pro-info{display:flex;flex-direction:column;gap:5px;width:100%}
.mp-hw-pro-name{font-size:15px;font-weight:700;color:#1f2937;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mp-hw-pro-cat{font-size:12px;color:#0066cc;font-weight:600;background:#eff6ff;padding:3px 10px;border-radius:12px;display:inline-block;margin-top:2px}
.mp-hw-pro-city{font-size:12px;color:#6b7280}
.mp-hw-pro-rating{font-size:14px;color:#f59e0b;letter-spacing:1px}
.mp-hw-pro-rating small{color:#9ca3af;font-size:11px}

/* CTA */
.mp-hw-cta{text-align:center;margin:8px 0 48px}
.mp-hw-cta-btn{display:inline-block;background:linear-gradient(135deg,#0052a3,#0066cc);color:#fff;padding:16px 40px;border-radius:50px;text-decoration:none;font-weight:700;font-size:16px;transition:.2s;box-shadow:0 4px 16px rgba(0,102,204,.25)}
.mp-hw-cta-btn:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,102,204,.35);color:#fff}

/* Responsive */
@media(max-width:640px){
    .mp-hw-stats{gap:0;padding:28px 16px}
    .mp-hw-counter{min-width:140px}
    .mp-hw-number{font-size:40px}
    .mp-hw-counter--main .mp-hw-number{font-size:52px}
    .mp-hw-pros-grid{grid-template-columns:repeat(2,1fr);gap:12px}
    .mp-hw-pro-card{padding:16px 10px}
    .mp-hw-pro-avatar{width:64px;height:64px;font-size:24px}
}

/* ===== AUTH FORMS (Login / Registrazione) ===== */
.mp-auth-box { max-width: 480px; margin: 40px auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 36px 40px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.mp-auth-title { font-size: 24px; font-weight: 700; color: #1f2937; margin: 0 0 4px; }
.mp-auth-sub { color: #6b7280; font-size: 14px; margin: 0 0 20px; }
.mp-auth-links { margin-top: 20px; font-size: 13px; color: #6b7280; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mp-auth-links a { color: #0066cc; }

/* Password field */
.mp-pwd-wrap { position: relative; display: flex; }
.mp-pwd-wrap input { flex: 1; padding-right: 40px; }
.mp-pwd-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 16px; color: #9ca3af; }
.mp-pwd-strength { height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.mp-pwd-bar { height: 100%; width: 0; transition: width .3s, background .3s; border-radius: 2px; }

/* Email hint */
.mp-email-hint { display: block; font-size: 12px; margin-top: 4px; }
.mp-email-hint.valid   { color: #10b981; }
.mp-email-hint.invalid { color: #ef4444; }

/* Full-width button */
.mp-btn-full { width: 100%; justify-content: center; margin-top: 8px; }
.mp-btn-sm { font-size: 13px; padding: 6px 14px; }

/* Consents */
.mp-consents { margin: 16px 0; }

/* ===== DASHBOARD PRO — NUOVI STILI ===== */
.mp-dashboard-header { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); flex-wrap: wrap; }
.mp-dashboard-avatar { width: 72px; height: 72px; border-radius: 50%; background: #0066cc center/cover; flex-shrink: 0; }
.mp-dashboard-header-info { flex: 1 }
.mp-dashboard-header-info h2 { margin: 0; font-size: 22px; }
.mp-dashboard-city { margin: 4px 0 0; color: #6b7280; font-size: 14px; }
.mp-dash-section-title { font-size: 18px; font-weight: 700; color: #1f2937; margin: 28px 0 14px; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; }

/* Banner verifica */
.mp-verify-banner { display: flex; align-items: center; gap: 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.mp-verify-banner.pending { background: #fefce8; border-color: #fde68a; }
.mp-verify-icon { font-size: 28px; flex-shrink: 0; }
.mp-verify-banner strong { display: block; font-size: 15px; margin-bottom: 2px; }
.mp-verify-banner p { margin: 0; font-size: 13px; color: #6b7280; }
.mp-verify-banner .mp-btn { margin-left: auto; flex-shrink: 0; }

/* Alert warning */
.mp-alert { display: flex; align-items: center; padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; }
.mp-alert-warn { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }

/* Stats orizzontali */
.mp-stats { display: flex; gap: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 20px; }
.mp-stat { flex: 1; padding: 18px 16px; text-align: center; border-right: 1px solid #f0f0f0; }
.mp-stat:last-child { border-right: 0; }
.mp-stat-value { display: block; font-size: 22px; font-weight: 700; color: #1f2937; }
.mp-stat-label { display: block; font-size: 12px; color: #9ca3af; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* Request cards migliorate */
.mp-request-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.mp-request-card-head { margin-bottom: 8px; }
.mp-request-card-head h4 { margin: 0 0 4px; font-size: 16px; }
.mp-request-meta { font-size: 13px; color: #6b7280; }
.mp-request-desc { font-size: 14px; color: #374151; margin: 8px 0 12px; }

/* Conversazioni preview */
.mp-conversations-preview { display: flex; flex-direction: column; gap: 8px; }
.mp-conv-preview-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; text-decoration: none; color: inherit; transition: .15s; }
.mp-conv-preview-item:hover { border-color: #0066cc; background: #eff6ff; }
.mp-conv-preview-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-conv-preview-info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-conv-preview-info span { font-size: 13px; color: #6b7280; }
.mp-conv-preview-info small { font-size: 12px; color: #9ca3af; }
.mp-unread-badge { background: #0066cc; color: #fff; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 700; }

/* Sezione verifica in dashboard */
.mp-verify-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; margin-top: 24px; }

/* ===== AUTH — nuovi stili ===== */
.mp-auth-box--wide { max-width: 600px; }
.mp-auth-box--pro  { max-width: 720px; }
.mp-auth-section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #6b7280; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.mp-auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.mp-auth-footer { text-align: center; font-size: 13px; color: #6b7280; margin-top: 20px; }
.mp-auth-footer a { color: #0066cc; font-weight: 600; }
.mp-auth-logged { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 14px 18px; font-size: 14px; }
.mp-email-status { font-size: 12px; font-weight: 600; }
.mp-email-status.valid   { color: #10b981; }
.mp-email-status.invalid { color: #ef4444; }
.mp-pwd-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mp-pwd-bar { height: 4px; border-radius: 2px; transition: width .3s, background .3s; width: 0; min-width: 0; flex: 1; background: #e5e7eb; }
.mp-pwd-label { font-size: 11px; font-weight: 600; flex-shrink: 0; }
.mp-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.mp-consents { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.mp-consent-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #374151; cursor: pointer; }
.mp-consent-line a { color: #0066cc; }
.mp-checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.mp-checkbox-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* Stile pagine wp-login disabilitato — aggiungiamo un banner se qualcuno arriva comunque */
.mp-wp-login-blocked { text-align:center; padding: 60px 20px; }

/* ===== TASTO LOGOUT ===== */
.mp-btn-logout {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: .15s;
}
.mp-btn-logout:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Header actions (più bottoni affiancati) */
.mp-dashboard-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}

/* Avatar con iniziale (senza foto) */
.mp-dashboard-avatar--initials {
    background: linear-gradient(135deg, #0066cc, #0080ff);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard cliente — link rapidi */
.mp-client-quick-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.mp-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: .15s;
    position: relative;
}
.mp-quick-link:hover {
    border-color: #0066cc;
    color: #0066cc;
    background: #eff6ff;
}

/* Quote items nella dashboard cliente */
.mp-quotes-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mp-quote-item  { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; }
.mp-quote-pro   { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mp-quote-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #0066cc center/cover;
    color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mp-quote-price  { font-weight: 700; color: #059669; margin-left: 6px; }
.mp-quote-msg    { font-size: 13px; color: #6b7280; margin: 0 0 10px; }
.mp-quotes-count { font-size: 14px; color: #374151; margin-bottom: 8px; }
.mp-no-quotes    { font-size: 13px; color: #9ca3af; margin-top: 6px; }
.mp-empty-state  { text-align: center; padding: 32px 20px; color: #6b7280; }
.mp-empty-state p { margin-bottom: 16px; }

/* ===== VERIFICA EMAIL ===== */
.mp-verify-notice {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-verify-ok    { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.mp-verify-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.mp-verify-warn  { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }

/* Box "controlla email" dopo la registrazione */
.mp-check-email-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin-top: 16px;
}
.mp-check-email-box .mp-check-icon { font-size: 48px; margin-bottom: 12px; }
.mp-check-email-box h3 { margin: 0 0 8px; color: #1e40af; }
.mp-check-email-box p  { color: #3730a3; font-size: 14px; margin: 0 0 16px; }

/* Form reinvio email */
.mp-resend-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}
.mp-resend-form input {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    min-width: 220px;
}

/* Blocco "email non verificata" nel login */
.mp-not-verified-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 12px;
    font-size: 13px;
}
.mp-not-verified-box strong { display: block; margin-bottom: 6px; color: #92400e; }

/* ===== CONTATTI CLIENTE (dopo acquisto) ===== */
.mp-client-contacts {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-client-contacts strong { color: #065f46; }
.mp-client-contacts a { color: #047857; font-weight: 600; text-decoration: none; }
.mp-client-contacts a:hover { text-decoration: underline; }

/* Badge annuncio completo */
.mp-badge-full {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== NUOVE FUNZIONALITÀ CLIENT/PRO ===== */
.mp-request-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.mp-request-actions-head { display:flex; gap:6px; flex-shrink:0; }
.mp-btn-danger { background:#fff; color:#ef4444; border:1px solid #ef4444; }
.mp-btn-danger:hover { background:#fef2f2; }
.mp-btn-success { background:#d1fae5; color:#065f46; border:1px solid #6ee7b7; }

/* Counter preventivi nelle card pro */
.mp-quotes-counter { display:inline-block; font-size:12px; color:#6b7280; background:#f3f4f6; padding:3px 10px; border-radius:12px; margin-bottom:8px; }
.mp-quotes-counter strong { color:#0066cc; }

/* Stato preventivo accettato/rifiutato */
.mp-quote-accepted { border-color:#6ee7b7 !important; background:#f0fdf4 !important; }
.mp-quote-rejected { opacity:.55; }
.mp-badge-closed { background:#f3f4f6; color:#6b7280; font-size:11px; padding:2px 8px; border-radius:10px; margin-left:6px; vertical-align:middle; }

/* Azioni sui preventivi */
.mp-quote-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* Contatti professionista nel preventivo */
.mp-pro-contacts { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.mp-contact-chip { display:inline-flex; align-items:center; gap:4px; background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; border-radius:20px; padding:4px 12px; font-size:12px; font-weight:600; text-decoration:none; }
.mp-contact-chip:hover { background:#dbeafe; }

/* Zona pericolosa */
.mp-danger-zone { background:#fff5f5; border:1px solid #fee2e2; border-radius:12px; padding:20px 24px; margin-top:28px; }
.mp-danger-zone h3 { margin:0 0 8px; font-size:15px; color:#991b1b; }
.mp-danger-zone p { font-size:13px; color:#7f1d1d; margin-bottom:16px; }

/* Modale modifica richiesta */
.mp-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); z-index:9999; display:flex; align-items:center; justify-content:center; }
.mp-modal-box { background:#fff; border-radius:12px; padding:28px; width:90%; max-width:520px; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.mp-modal-box h3 { margin:0 0 20px; }
.mp-modal-actions { display:flex; gap:8px; align-items:center; margin-top:16px; }

/* ===== SATISPAY ===== */
.mp-payment-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mp-satispay-btn {
    background: #E21E26;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mp-satispay-btn:hover  { background: #c01019; }
.mp-satispay-btn:disabled { opacity: .6; cursor: not-allowed; }
.mp-payment-success-banner {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #065f46;
}

/* ===== PROFILO PUBBLICO PROFESSIONISTA ===== */
.mp-pro-public-profile { max-width: 900px; margin: 0 auto; }
.mp-profile-cover {
    background: linear-gradient(135deg, #0066cc, #0080ff);
    min-height: 180px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    background-size: cover;
    background-position: center;
}
.mp-profile-cover-overlay {
    background: rgba(0,0,0,.4);
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 20px 24px;
}
.mp-profile-avatar-wrap { flex-shrink: 0; }
.mp-profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #0066cc center/cover;
    display: flex; align-items: center; justify-content: center;
}
.mp-profile-avatar--initials { color:#fff; font-size:32px; font-weight:700; }
.mp-profile-header-info { color: #fff; }
.mp-profile-name { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: #fff; }
.mp-profile-cats { margin: 0 0 4px; font-size: 14px; color: rgba(255,255,255,.85); }
.mp-profile-location { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.mp-verified-badge { background: #10b981; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }

.mp-profile-body { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
@media (max-width: 680px) { .mp-profile-body { grid-template-columns: 1fr; } }

.mp-profile-section { margin-bottom: 28px; }
.mp-profile-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; }
.mp-profile-rating { font-size: 18px; margin-bottom: 20px; }

.mp-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 8px; }
.mp-gallery-thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; display: block; transition: .2s; }
.mp-gallery-thumb:hover img { transform: scale(1.04); }

.mp-review-card { background: #f9fafb; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.mp-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.mp-review-stars { font-size: 14px; }
.mp-review-date { font-size: 12px; color: #9ca3af; margin-left: auto; }
.mp-review-text { font-size: 14px; color: #374151; margin: 0; }

.mp-profile-contact-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; position: sticky; top: 20px; }
.mp-profile-contact-card h4 { margin: 0 0 12px; }

.mp-pro-profile-link { color: #0066cc; text-decoration: none; }
.mp-pro-profile-link:hover { text-decoration: underline; }

/* Star rating nel modale */
.mp-star-rating { display: flex; flex-direction: column; gap: 6px; }
.mp-star-rating label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.mp-star-rating label:hover { background: #eff6ff; }
.mp-star-rating input[type=radio] { cursor: pointer; }
