/* Legacy homepage modals — ported from design.legacy.html */

.auth-modal-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;border:0;background:#292524;color:#d6d3d1;font-size:22px;line-height:1;cursor:pointer}
.auth-modal-panel h3{margin:0 0 8px;font-size:24px;letter-spacing:-.6px}
.auth-sub{margin:0 0 22px;color:#a8a29e;font-size:14px;line-height:1.55}
.auth-modal-panel input[type=email]{width:100%;border:1px solid #44403c;background:#292524;color:#fff;border-radius:999px;padding:14px 18px;font-size:15px;outline:none;box-sizing:border-box}
.auth-modal-panel input[type=email]:focus{border-color:#9b6b43;box-shadow:0 0 0 3px rgba(155,107,67,.25)}
.auth-continue{width:100%;margin-top:12px;background:#fff;color:#1c1917;border:0;border-radius:999px;padding:14px;font-weight:900;font-size:15px;cursor:pointer;font-family:inherit}
.auth-or{display:flex;align-items:center;gap:12px;margin:18px 0;color:#78716c;font-size:13px}
.auth-or:before,.auth-or:after{content:"";flex:1;height:1px;background:#44403c}
.auth-google-wrap{display:flex;justify-content:center;min-height:44px}
.auth-google-wrap iframe,.auth-google-wrap>div{margin:0 auto!important}
.auth-email-only .auth-or,.auth-email-only .auth-google-wrap{display:none}
.auth-google-only .auth-email-block{display:none}
.auth-error{margin:14px 0 0;color:#fca5a5;font-size:13px;min-height:18px}
.auth-note{margin:16px 0 0;color:#78716c;font-size:12px;line-height:1.5;text-align:center}

.feedback-modal-panel{width:90vw;max-width:90vw;height:90vh;max-height:90vh;padding:24px 28px;display:flex;flex-direction:column;overflow:hidden}
.feedback-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px;flex-shrink:0}
.feedback-tabs{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0;margin-bottom:8px}
.feedback-tab{border:1px solid var(--line,#eadccd);background:#fff;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit}
.feedback-tab.active{border-color:var(--brand,#9b6b43);background:#fff3e6;color:#6b4c35}
.feedback-progress{font-size:13px;color:var(--muted,#7c6f64);font-weight:800}
.feedback-strip{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;flex-shrink:0}
.feedback-thumb{min-width:72px;border:1px solid var(--line,#eadccd);border-radius:14px;padding:6px;background:#fff;cursor:pointer;text-align:center;font-size:11px}
.feedback-thumb.active{border-color:var(--brand,#9b6b43);box-shadow:0 0 0 2px rgba(155,107,67,.15)}
.feedback-thumb img{width:56px;height:56px;object-fit:cover;border-radius:10px;display:block;margin:0 auto 4px}
.feedback-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,580px);gap:24px;align-items:stretch}
.feedback-preview.compare{min-height:0;height:100%;border-radius:22px;border:1px solid var(--line,#eadccd);overflow:hidden;background:linear-gradient(135deg,#e5d5c7,#fff4e8 50%,#d8c3b0);display:grid;grid-template-columns:1fr 1fr}
.feedback-preview.compare .half{min-height:0;height:100%}
.feedback-preview.compare .half img{width:100%;height:100%;object-fit:contain;background:#fff9f2}
.feedback-form{background:#fff;border:1px solid var(--line,#eadccd);border-radius:22px;padding:20px 22px;overflow-y:auto;min-height:0;display:flex;flex-direction:column}
.feedback-form h4{margin:0 0 10px;font-size:16px;flex-shrink:0}
.feedback-stars{display:flex;gap:5px;margin:6px 0 12px;flex-wrap:nowrap;align-items:center}
.feedback-stars button{width:34px;height:34px;padding:0;border-radius:10px;border:1px solid var(--line,#eadccd);background:#fff;cursor:pointer;font-size:20px;line-height:1;color:#d8cbb8;flex-shrink:0;font-family:inherit}
.feedback-stars button.active{background:#fff8ee;border-color:#e8c078;color:#e8a830}
.feedback-stars--overall{margin:4px 0 16px}
.feedback-stars--overall button{width:42px;height:42px;font-size:26px;border-radius:12px}
.feedback-dims{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin-bottom:6px}
.feedback-dim{margin-bottom:0;min-width:0}
.feedback-dim label{display:block;font-size:12px;font-weight:800;margin-bottom:4px;color:#59493d;line-height:1.35}
.feedback-dim .feedback-stars{margin:0}
.feedback-check{display:flex;gap:8px;align-items:center;margin:12px 0;font-size:13px;font-weight:700;flex-shrink:0}
.feedback-comment-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;color:#59493d;margin:8px 0 6px}
.feedback-comment{width:100%;min-height:72px;border:1px solid #e8dfd6;border-radius:12px;padding:10px 12px;resize:vertical;font-size:13px;line-height:1.45;box-sizing:border-box}
.feedback-comment:focus{outline:none;border-color:#c49263;box-shadow:0 0 0 3px rgba(196,146,99,.2)}
.feedback-retry-hint{margin:0 0 8px;font-size:12px;color:#7a6558;line-height:1.45}
.feedback-save{width:100%;padding:14px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--brand,#9b6b43),var(--brand2,#d5a36f));color:#fff;font-weight:900;cursor:pointer;font-family:inherit;flex-shrink:0}
.feedback-upsell{margin-top:14px;padding:14px;border-radius:18px;background:#fff7fa;border:1px solid #f0c4d4;font-size:13px;flex-shrink:0}
.feedback-upsell button{margin-top:10px;width:100%;padding:12px;border:0;border-radius:14px;background:linear-gradient(135deg,#bd4d78,#ec7da5);color:#fff;font-weight:900;cursor:pointer;font-family:inherit}

.feedback-prompt-panel{position:relative;width:min(440px,100%);background:#fffdfa;border:1px solid var(--line,#eadccd);border-radius:28px;padding:32px 28px 26px;box-shadow:0 32px 90px rgba(74,48,25,.22);text-align:center}
.feedback-prompt-panel h3{margin:0 0 12px;font-size:22px;letter-spacing:-.5px;color:var(--dark,#2b2118)}
.feedback-prompt-panel p{margin:0 0 22px;font-size:14px;line-height:1.7;color:var(--muted,#7c6f64)}
.feedback-prompt-actions{display:grid;gap:10px}
.feedback-prompt-actions .primary,.feedback-prompt-actions .secondary{width:100%;padding:15px 18px;border-radius:18px;font-size:15px}
.feedback-prompt-actions .secondary{background:#f1e8df;color:#59493d;border:0;font-weight:900;cursor:pointer;font-family:inherit}
.feedback-prompt-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;border:0;background:#fff4e8;color:#8a562c;font-size:22px;line-height:1;cursor:pointer}

.feedback-designer-upsell-panel{position:relative;width:min(460px,100%);background:#fffdfa;border:1px solid #f0c4d4;border-radius:28px;padding:32px 28px 26px;box-shadow:0 32px 90px rgba(189,77,120,.18);text-align:center}
.feedback-designer-upsell-panel h3{margin:0 0 12px;font-size:22px;letter-spacing:-.5px;color:#7a3d55}
.feedback-designer-upsell-panel p{margin:0 0 22px;font-size:14px;line-height:1.75;color:var(--muted,#7c6f64)}
.feedback-designer-upsell-actions{display:grid;gap:10px}
.feedback-designer-upsell-actions .pink,.feedback-designer-upsell-actions .secondary{width:100%;padding:15px 18px;border-radius:18px;font-size:15px}
.feedback-designer-upsell-actions .secondary{background:#f1e8df;color:#59493d;border:0;font-weight:900;cursor:pointer;font-family:inherit}
.feedback-designer-upsell-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;border:0;background:#fff1f5;color:#9f315e;font-size:22px;line-height:1;cursor:pointer}

.preview-progress{z-index:220}
.preview-progress-panel{width:min(520px,100%);max-width:calc(100vw - 32px);overflow:hidden;display:flex;flex-direction:column}
.preview-progress-visual{position:relative;height:220px;flex-shrink:0;background:linear-gradient(135deg,#e8d9cb,#fff6ec);overflow:hidden}
.preview-slideshow{position:absolute;inset:0}
.preview-slide{position:absolute;inset:0;opacity:0;transform:scale(1.04);transition:opacity .7s ease,transform 1.1s ease}
.preview-slide.active{opacity:1;transform:scale(1)}
.preview-slide img{width:100%;height:100%;object-fit:cover;display:block}
.preview-visual-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,14,10,.08),rgba(20,14,10,.42) 78%,rgba(20,14,10,.55));pointer-events:none;z-index:1}
.preview-slide-badge{position:absolute;top:14px;right:14px;z-index:2;background:rgba(255,255,255,.92);border-radius:999px;padding:7px 11px;font-size:11px;font-weight:900;color:#6b4c35}
.preview-visual-caption{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;color:#fff;font-size:13px;font-weight:900;line-height:1.45;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.preview-progress-body{padding:22px 22px 20px;flex-shrink:0}
.preview-progress-body h3{margin:0 0 6px;font-size:20px}
.preview-service-line{margin:0 0 10px;color:#8a562c;font-size:12px;font-weight:900}
.preview-progress-body>p{margin:0 0 12px;color:var(--muted,#7c6f64);font-size:14px;line-height:1.55;min-height:44px}
.preview-edits{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px;min-height:32px}
.preview-edit-chip{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:999px;background:#fff4e8;border:1px solid #ecd1b1;color:#7a4e2c;font-size:11px;font-weight:900}
.preview-edit-chip.active{background:linear-gradient(135deg,var(--brand,#9b6b43),var(--brand2,#d5a36f));color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(155,107,67,.28)}
.preview-edit-chip i{font-style:normal;opacity:.85}
.preview-bar{height:12px;border-radius:999px;background:#f1e8df;overflow:hidden;margin-bottom:12px;position:relative}
.preview-bar>span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--brand,#9b6b43),var(--brand2,#d5a36f));border-radius:999px;transition:width .45s ease;position:relative;z-index:1}
.preview-bar.waiting>span{min-width:18%;animation:previewBarPulse 1.6s ease-in-out infinite}
@keyframes previewBarPulse{0%,100%{opacity:.55}50%{opacity:1}}
.preview-bar.waiting:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);animation:previewBarShine 1.8s linear infinite}
@keyframes previewBarShine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.preview-timer-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;padding:11px 13px;border-radius:16px;background:#fff9f2;border:1px solid var(--line,#eadccd)}
.preview-timer-row span{font-size:12px;color:var(--muted,#7c6f64);font-weight:700}
.preview-timer-row b{font-size:18px;color:var(--dark,#2b2118);letter-spacing:.5px;font-variant-numeric:tabular-nums}
.preview-meta{font-size:12px;color:#8a562c;font-weight:900;line-height:1.5}

@media(max-width:1100px){
  .feedback-body{grid-template-columns:1fr;grid-template-rows:minmax(260px,38vh) auto}
  .feedback-preview.compare{min-height:260px;height:auto;max-height:38vh}
  .feedback-dims{grid-template-columns:1fr}
}
@media(max-width:900px){
  .feedback-modal{padding:12px;align-items:flex-start}
  .feedback-modal-panel{width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:auto;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px 14px;overflow-y:auto}
  .feedback-body{grid-template-columns:1fr;grid-template-rows:auto auto;gap:14px;min-height:0}
  .feedback-preview.compare{min-height:200px;max-height:34vh;height:auto}
  .feedback-preview.compare .half{min-height:180px}
  .feedback-form{overflow:visible;max-height:none;padding:16px}
  .feedback-head{margin-bottom:8px}
  .feedback-dims{grid-template-columns:1fr;gap:10px}
  .feedback-stars{flex-wrap:wrap}
}
@media(max-width:640px){
  .feedback-modal-panel{border-radius:22px;padding:14px 12px}
  .feedback-preview.compare{min-height:180px;max-height:32vh;border-radius:18px}
  .feedback-form{border-radius:18px;padding:14px}
  .feedback-stars--overall button{width:38px;height:38px;font-size:22px}
  .feedback-stars button{width:32px;height:32px;font-size:18px}
}
