/* ============================================
   PROJECT CREATION WIZARD — STYLES (v2, 10-step)
   ============================================ */

/* Overlay */
.wizard-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url(./login-bg.jpg), url(./theme-pattern.svg);
    background-size: cover, cover, 200px 200px;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, repeat;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center;
    animation: wizFadeIn 0.25s ease;
}
@keyframes wizFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wizard-container {
    width: 96vw; max-width: 940px;
    max-height: 92vh;
    background: #12141b;
    border: 1px solid #1f2230;
    border-radius: 16px;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

/* Header */
.wizard-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #1f2230;
    background: #0e1017;
    flex-shrink: 0;
}
.wizard-header-left { display: flex; align-items: center; gap: 10px; }
.wizard-logo { font-size: 22px; }
.wizard-title { font-weight: 700; font-size: 17px; color: #eef1f7; }
.wizard-header-right { display: flex; align-items: center; gap: 12px; }
.wizard-credits-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 999px;
    background: #101321; border: 1px solid #1f2230;
    font-size: 13px; color: #76c7ff;
}
.wizard-credits-icon { font-size: 14px; }
.wizard-close-btn {
    background: none; border: 1px solid #1f2230; border-radius: 8px;
    color: #a3a7b7; font-size: 18px; padding: 4px 10px; cursor: pointer;
    transition: all 0.15s;
}
.wizard-close-btn:hover { background: #1f2230; color: #eef1f7; }

/* Stepper — 10 dots */
.wizard-stepper {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 14px 12px;
    border-bottom: 1px solid #1f2230;
    background: #0e1017;
    flex-shrink: 0;
    overflow-x: auto;
}
.wiz-step-dot {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 52px; cursor: default;
}
.wiz-dot-num {
    width: 34px; height: 34px;
    border-radius: 50%; border: 2px solid #2a2d3a;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #555;
    background: #0b0c10;
    transition: all 0.2s;
}
.wiz-dot-label { font-size: 13px; color: #555; transition: color 0.2s; }
.wiz-step-dot.active .wiz-dot-num {
    border-color: #76c7ff; color: #76c7ff; background: rgba(118,199,255,0.08);
}
.wiz-step-dot.active .wiz-dot-label { color: #76c7ff; }
.wiz-step-dot.completed .wiz-dot-num {
    border-color: #9dff8c; color: #9dff8c; background: rgba(157,255,140,0.08);
}
.wiz-step-dot.completed .wiz-dot-label { color: #9dff8c; }
.wiz-step-line {
    flex: 1; height: 2px; min-width: 12px; max-width: 36px;
    background: #2a2d3a; margin: 0 2px;
    align-self: center; margin-bottom: 14px;
}

/* Credit banner */
.wiz-credit-banner {
    padding: 8px 20px;
    font-size: 13px;
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.wiz-credit-banner.sufficient { background: rgba(157,255,140,0.06); color: #9dff8c; }
.wiz-credit-banner.insufficient { background: rgba(255,107,107,0.08); color: #ff8c8c; }

/* Body (scrollable) */
.wizard-body {
    flex: 1; overflow-y: auto; padding: 20px 24px;
}

/* Step panels */
.wiz-step-panel { animation: wizFadeIn 0.2s ease; }
.wiz-step-header { margin-bottom: 16px; }
.wiz-step-header h2 { font-size: 20px; margin: 0 0 4px; color: #eef1f7; }
.wiz-step-sub { font-size: 14px; color: #a3a7b7; margin: 0; }
.wiz-credit-tag {
    display: inline-block; padding: 1px 7px; border-radius: 6px;
    background: rgba(118,199,255,0.1); color: #76c7ff;
    font-size: 11px; font-weight: 600;
}
.wiz-step-content { }
.wiz-centered { max-width: 520px; margin: 0 auto; }

/* Inputs */
.wiz-input-group { margin-bottom: 14px; }
.wiz-input-group label {
    display: block; margin-bottom: 5px;
    font-size: 13px; color: #a3a7b7; font-weight: 500;
}
.wiz-input-group input[type="text"],
.wiz-input-group input[type="date"],
.wiz-input-group textarea,
.wiz-input-group select {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1px solid #1f2230; background: #0b0d13; color: #eef1f7;
    font-size: 14px; font-family: inherit;
}
.wiz-input-group input:focus,
.wiz-input-group textarea:focus,
.wiz-input-group select:focus {
    outline: none; border-color: #76c7ff;
}
.wiz-wide { max-width: 480px; margin: 0 auto; }
.wiz-hint { text-align: center; color: #555; font-size: 12px; margin-top: 10px; }

/* Upload zone */
.wiz-upload-zone {
    border: 2px dashed #2a2d3a; border-radius: 12px;
    padding: 40px 20px; text-align: center; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.wiz-upload-zone:hover, .wiz-upload-zone.dragover {
    border-color: #76c7ff; background: rgba(118,199,255,0.03);
}
.wiz-upload-zone.uploaded { border-color: #9dff8c; border-style: solid; }
.wiz-upload-icon { font-size: 36px; margin-bottom: 8px; }
.wiz-upload-text { color: #a3a7b7; font-size: 14px; }
.wiz-cost-estimate {
    margin-top: 12px; padding: 10px 14px; border-radius: 8px;
    background: rgba(118,199,255,0.05); border: 1px solid #1f2230;
    font-size: 13px; color: #a3a7b7;
}

/* Status / spinners */
.wiz-status-line { margin-top: 12px; font-size: 14px; color: #a3a7b7; min-height: 24px; }
.wiz-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #2a2d3a; border-top-color: #76c7ff;
    border-radius: 50%; animation: wizSpin 0.7s linear infinite;
    vertical-align: middle; margin-right: 6px;
}
@keyframes wizSpin { to { transform: rotate(360deg); } }
.wiz-spinner-placeholder { display: inline-block; width: 16px; height: 16px; margin-right: 6px; }
.wiz-check { color: #9dff8c; margin-right: 4px; }
.wiz-info { color: #a3a7b7; font-size: 13px; padding: 12px 0; }

/* Extract checklist */
.wiz-extract-checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wiz-extract-item { font-size: 14px; padding: 8px 12px; border-radius: 8px; background: #0f1118; }
.wiz-extract-summary { font-size: 14px; padding: 10px 0; }

/* Direction grid */
.wiz-direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wiz-direction-col { background: #0f1118; border: 1px solid #1f2230; border-radius: 10px; padding: 14px; }
.wiz-style-desc {
    margin-top: 6px; padding: 8px 10px; border-radius: 6px;
    background: rgba(118,199,255,0.04); color: #a3a7b7; font-size: 12px;
}

/* Radio options (image mode) */
.wiz-image-mode-group { margin-bottom: 8px; }
.wiz-image-mode-title { font-size: 14px; font-weight: 600; color: #eef1f7; margin-bottom: 10px; display: block; }
.wiz-radio-options { display: flex; flex-direction: column; gap: 8px; }
.wiz-radio-option {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-radius: 8px;
    border: 1px solid #1f2230; background: #0f1118;
    cursor: pointer; transition: border-color 0.15s;
}
.wiz-radio-option:hover { border-color: #2a6dff; }
.wiz-radio-option input[type="radio"] { margin-top: 3px; }
.wiz-radio-text { display: flex; flex-direction: column; }
.wiz-radio-text strong { color: #eef1f7; font-size: 14px; }
.wiz-radio-sub { color: #777; font-size: 12px; }
.wiz-action-btn {
    background: linear-gradient(180deg, #2a6dff, #2055c9);
    color: #fff; border: 0; border-radius: 10px;
    padding: 12px 24px; cursor: pointer; font-weight: 600; font-size: 15px;
    transition: opacity 0.15s;
}
.wiz-action-btn:hover { opacity: 0.9; }
.wiz-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Progress bars */
.wiz-progress-container { margin-top: 12px; }
.wiz-progress-bar {
    height: 8px; border-radius: 4px; background: #1f2230; overflow: hidden;
}
.wiz-progress-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #2a6dff, #76c7ff);
    transition: width 0.4s ease;
}
.wiz-progress-text { font-size: 12px; color: #a3a7b7; margin-top: 4px; }

/* Parse results table */
.wiz-table {
    width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px;
}
.wiz-table thead th {
    text-align: left; padding: 6px 10px; border-bottom: 1px solid #1f2230;
    color: #a3a7b7; font-weight: 600;
}
.wiz-table tbody td { padding: 5px 10px; border-bottom: 1px solid #0f1118; color: #eef1f7; }

/* ==========================================
   STEP 5 — Cast & Locations
   ========================================== */
.wiz-cast-tabs {
    display: flex; gap: 4px; margin-bottom: 14px;
    border-bottom: 1px solid #1f2230; padding-bottom: 0;
}
.wiz-cast-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    color: #a3a7b7; font-size: 14px; font-weight: 600;
    padding: 8px 16px; cursor: pointer;
    transition: all 0.15s;
}
.wiz-cast-tab:hover { color: #eef1f7; }
.wiz-cast-tab.active { color: #76c7ff; border-bottom-color: #76c7ff; }

.wiz-cast-toolbar {
    display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px;
}
.wiz-ai-suggest-all-btn {
    background: linear-gradient(180deg, #1a1e2e, #14172a);
    border: 1px solid #2a2d3a; border-radius: 8px;
    color: #76c7ff; font-size: 13px; font-weight: 600;
    padding: 8px 14px; cursor: pointer;
    transition: all 0.15s;
}
.wiz-ai-suggest-all-btn:hover { border-color: #76c7ff; background: rgba(118,199,255,0.06); }
.wiz-ai-suggest-all-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.wiz-assign-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; max-height: 360px; overflow-y: auto;
    padding-right: 4px;
}

.wiz-assign-card {
    background: #0f1118; border: 1px solid #1f2230; border-radius: 10px;
    padding: 12px; display: flex; flex-direction: column; gap: 8px;
    transition: border-color 0.15s;
}
.wiz-assign-card.assigned { border-color: #9dff8c40; }

.wiz-assign-card-header {
    display: flex; align-items: center; gap: 10px;
}
.wiz-assign-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #1a1e2e; border: 1px solid #2a2d3a;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.wiz-assign-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wiz-assign-name { font-weight: 600; font-size: 14px; color: #eef1f7; }
.wiz-assign-desc { font-size: 12px; color: #777; line-height: 1.3; }

.wiz-assign-input-row {
    display: flex; gap: 6px; align-items: center;
}
.wiz-assign-input {
    flex: 1; padding: 7px 10px; border-radius: 6px;
    border: 1px solid #1f2230; background: #0b0d13; color: #eef1f7;
    font-size: 13px; font-family: inherit;
}
.wiz-assign-input:focus { outline: none; border-color: #76c7ff; }
.wiz-assign-input.filled { border-color: #9dff8c40; }

.wiz-ai-suggest-btn {
    background: none; border: 1px solid #2a2d3a; border-radius: 6px;
    color: #76c7ff; font-size: 16px; padding: 5px 8px; cursor: pointer;
    transition: all 0.15s; flex-shrink: 0;
    title: "AI Suggest";
}
.wiz-ai-suggest-btn:hover { border-color: #76c7ff; background: rgba(118,199,255,0.06); }
.wiz-ai-suggest-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.wiz-assign-status {
    font-size: 11px; min-height: 16px;
}
.wiz-assign-status.success { color: #9dff8c; }
.wiz-assign-status.error { color: #ff8c8c; }
.wiz-assign-status.loading { color: #76c7ff; }

/* ==========================================
   STEP 6 — Crew
   ========================================== */
.wiz-crew-toolbar {
    display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px;
}
.wiz-add-crew-btn {
    background: none; border: 1px solid #2a2d3a; border-radius: 8px;
    color: #a3a7b7; font-size: 13px; font-weight: 600;
    padding: 8px 14px; cursor: pointer;
    transition: all 0.15s;
}
.wiz-add-crew-btn:hover { border-color: #76c7ff; color: #eef1f7; }

.wiz-crew-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 380px; overflow-y: auto; padding-right: 4px;
}

.wiz-crew-row {
    display: grid; grid-template-columns: 200px 1fr 36px;
    gap: 8px; align-items: center;
    background: #0f1118; border: 1px solid #1f2230; border-radius: 8px;
    padding: 8px 12px;
}
.wiz-crew-row.filled { border-color: #9dff8c40; }

.wiz-crew-role {
    font-size: 13px; font-weight: 600; color: #a3a7b7;
}
.wiz-crew-role-editable {
    padding: 6px 10px; border-radius: 6px;
    border: 1px solid #1f2230; background: #0b0d13; color: #eef1f7;
    font-size: 13px; font-weight: 600; font-family: inherit;
}

.wiz-crew-name-input {
    padding: 7px 10px; border-radius: 6px;
    border: 1px solid #1f2230; background: #0b0d13; color: #eef1f7;
    font-size: 13px; font-family: inherit;
}
.wiz-crew-name-input:focus { outline: none; border-color: #76c7ff; }

.wiz-crew-remove-btn {
    background: none; border: none; color: #555; font-size: 16px;
    cursor: pointer; padding: 4px;
    transition: color 0.15s;
}
.wiz-crew-remove-btn:hover { color: #ff8c8c; }

.wiz-crew-dept-header {
    font-size: 12px; font-weight: 700; color: #555;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 8px 0 2px 4px; border-bottom: 1px solid #1f2230;
    margin-top: 4px;
}

/* ==========================================
   STEP 10 — Documents & Finish
   ========================================== */
.wiz-docs-section { margin-bottom: 20px; }
.wiz-docs-section-title { font-size: 16px; font-weight: 700; color: #eef1f7; margin: 0 0 10px; }
.wiz-docs-hint { font-size: 13px; color: #777; margin-bottom: 12px; }

.wiz-schedule-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    max-width: 480px;
}

.wiz-docs-group { margin-bottom: 16px; }
.wiz-docs-group-label {
    font-size: 13px; font-weight: 700; color: #a3a7b7;
    margin-bottom: 8px; padding-bottom: 4px;
    border-bottom: 1px solid #1f2230;
}

.wiz-doc-option {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-radius: 8px;
    border: 1px solid #1f2230; background: #0f1118;
    margin-bottom: 6px; cursor: pointer;
    transition: border-color 0.15s;
}
.wiz-doc-option:hover { border-color: #2a2d3a; }
.wiz-doc-option input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.wiz-doc-label {
    font-size: 14px; font-weight: 600; color: #eef1f7;
    display: flex; align-items: center; gap: 6px;
}
.wiz-doc-desc { display: block; font-size: 12px; color: #777; margin-top: 2px; }

.wiz-doc-ai { border-color: rgba(118,199,255,0.12); }
.wiz-doc-ai:hover { border-color: rgba(118,199,255,0.25); }

.wiz-ai-badge {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: rgba(118,199,255,0.1); color: #76c7ff;
    font-size: 10px; font-weight: 700;
}

.wiz-docs-actions { text-align: center; margin-top: 16px; }

.wiz-docs-downloads {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 12px;
}
.wiz-doc-download-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: 8px;
    background: #0f1118; border: 1px solid #1f2230;
}
.wiz-doc-download-name { font-size: 13px; color: #eef1f7; font-weight: 500; }
.wiz-doc-download-link {
    font-size: 13px; color: #76c7ff; text-decoration: none; font-weight: 600;
}
.wiz-doc-download-link:hover { text-decoration: underline; }
.wiz-doc-download-status { font-size: 12px; }
.wiz-doc-download-status.pending { color: #777; }
.wiz-doc-download-status.generating { color: #76c7ff; }
.wiz-doc-download-status.done { color: #9dff8c; }
.wiz-doc-download-status.error { color: #ff8c8c; }

/* Summary (now inside step 10) */
.wiz-summary-content { padding: 8px 0; }
.wiz-summary-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.wiz-summary-icon { font-size: 32px; }
.wiz-summary-header h2 { font-size: 18px; margin: 0; color: #eef1f7; }

.wiz-summary-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-bottom: 16px;
}
.wiz-summary-stat {
    background: #0f1118; border: 1px solid #1f2230; border-radius: 10px;
    padding: 12px; text-align: center;
}
.wiz-summary-stat-value { font-size: 24px; font-weight: 800; color: #76c7ff; }
.wiz-summary-stat-label { font-size: 12px; color: #a3a7b7; margin-top: 2px; }

.wiz-summary-checklist {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.wiz-check-item {
    font-size: 13px; padding: 6px 10px; border-radius: 6px;
    background: #0f1118;
}
.wiz-check-item.done { color: #9dff8c; }
.wiz-check-item.skip { color: #555; }

.wiz-btn-open-project {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #fff; border: 0; border-radius: 12px;
    padding: 14px 36px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s;
}
.wiz-btn-open-project:hover { opacity: 0.9; }

/* Footer nav */
.wizard-footer {
    display: flex; align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #1f2230;
    background: #0e1017;
    flex-shrink: 0;
}
.wiz-footer-spacer { flex: 1; }
.wiz-nav-btn {
    border: none; border-radius: 10px; padding: 14px 28px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: opacity 0.15s;
}
.wiz-nav-back { background: #1f2230; color: #a3a7b7; }
.wiz-nav-back:hover { color: #eef1f7; }
.wiz-nav-skip { background: none; color: #555; margin-right: 8px; }
.wiz-nav-skip:hover { color: #a3a7b7; }
.wiz-nav-next {
    background: linear-gradient(180deg, #2a6dff, #2055c9); color: #fff;
}
.wiz-nav-next:hover { opacity: 0.9; }
.wiz-nav-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* Responsive */
@media (max-width: 700px) {
    .wizard-stepper { padding: 10px 6px; }
    .wiz-dot-label { display: none; }
    .wiz-step-line { min-width: 8px; }
    .wiz-direction-grid { grid-template-columns: 1fr; }
    .wiz-assign-grid { grid-template-columns: 1fr; }
    .wiz-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .wiz-summary-checklist { grid-template-columns: 1fr; }
    .wiz-schedule-row { grid-template-columns: 1fr; }
    .wiz-crew-row { grid-template-columns: 140px 1fr 36px; }
}


/* ============================================================
   Entity Image Controls (Step 5)
   ============================================================ */

.wiz-entity-images-toolbar {
    background: rgba(118, 199, 255, 0.06);
    border: 1px solid rgba(118, 199, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: center;
}

.wiz-entity-img-controls {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}

.wiz-entity-img-preview {
    flex: 0 0 80px;
}

.wiz-entity-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.wiz-entity-thumb-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: 11px;
    color: #a3a7b7;
    text-align: center;
    padding: 4px;
}

.wiz-entity-img-btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiz-img-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    color: #eef1f7;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.wiz-img-btn:hover {
    background: rgba(255,255,255,0.1);
}

.wiz-img-btn.regen {
    border-color: rgba(118, 199, 255, 0.3);
}

.wiz-img-btn.regen:hover {
    background: rgba(118, 199, 255, 0.12);
}

.wiz-img-btn.upload {
    border-color: rgba(157, 255, 140, 0.3);
    cursor: pointer;
}

.wiz-img-btn.upload:hover {
    background: rgba(157, 255, 140, 0.12);
}

/* ============================================================
   Shot Review Cards (Step 8)
   ============================================================ */

.wiz-review-scene {
    margin-bottom: 16px;
}

.wiz-review-scene-head {
    font-size: 15px;
    font-weight: 700;
    color: #76c7ff;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(118, 199, 255, 0.06);
    border-radius: 8px;
}

.wiz-review-meta {
    font-weight: 400;
    color: #a3a7b7;
    font-size: 13px;
}

.wiz-review-shot {
    display: flex;
    gap: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.wiz-review-shot:hover {
    border-color: rgba(118, 199, 255, 0.2);
}

.wiz-review-shot-img {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wiz-review-thumb {
    width: 140px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.wiz-review-thumb-placeholder {
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #a3a7b7;
}

.wiz-review-img-btns {
    display: flex;
    gap: 4px;
}

.wiz-review-shot-details {
    flex: 1;
    min-width: 0;
}

.wiz-review-shot-id {
    font-size: 11px;
    color: #76c7ff;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.wiz-review-label {
    display: block;
    font-size: 11px;
    color: #a3a7b7;
    margin: 4px 0 2px;
}

.wiz-review-input,
.wiz-review-textarea {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: #eef1f7;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.wiz-review-input:focus,
.wiz-review-textarea:focus {
    border-color: rgba(118, 199, 255, 0.4);
    outline: none;
}

.wiz-review-input-sm {
    width: 80px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: #eef1f7;
    font-size: 13px;
}

.wiz-review-input-sm:focus {
    border-color: rgba(118, 199, 255, 0.4);
    outline: none;
}

.wiz-review-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 4px;
}

.wiz-review-cost {
    font-size: 12px;
    color: #9dff8c;
    padding: 6px 0;
}

.wiz-review-shot-status {
    font-size: 11px;
    margin-top: 4px;
    min-height: 14px;
}

@media (max-width: 600px) {
    .wiz-review-shot {
        flex-direction: column;
    }
    .wiz-review-shot-img {
        flex: none;
        width: 100%;
    }
    .wiz-review-thumb,
    .wiz-review-thumb-placeholder {
        width: 100%;
        height: 120px;
    }
    .wiz-entity-img-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ======== Lightbox ======== */
.wiz-lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.85); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    animation: wizFadeIn .2s ease;
}
.wiz-lightbox-content {
    max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column;
    background: var(--wiz-card, #1a1c2e); border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.wiz-lightbox-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.1);
}
.wiz-lightbox-title { font-weight: 600; font-size: 14px; color: #eef1f7; }
.wiz-lightbox-close {
    background: none; border: none; color: #a3a7b7; font-size: 24px;
    cursor: pointer; padding: 0 4px; line-height: 1;
}
.wiz-lightbox-close:hover { color: #ff8c8c; }
.wiz-lightbox-img { max-width: 85vw; max-height: 80vh; object-fit: contain; display: block; }

/* ======== Prompt Editor Modal ======== */
.wiz-prompt-modal {
    width: 560px; max-width: 90vw; background: var(--wiz-card, #1a1c2e);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.1);
}
.wiz-prompt-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.1);
    font-weight: 600; font-size: 14px; color: #eef1f7;
}
.wiz-prompt-modal-body { padding: 16px; }
.wiz-prompt-label { display: block; margin-bottom: 6px; color: #a3a7b7; font-size: 13px; }
.wiz-prompt-textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25);
    color: #eef1f7; font-size: 13px; font-family: inherit; resize: vertical;
    line-height: 1.5;
}
.wiz-prompt-textarea:focus { border-color: var(--wiz-accent, #76c7ff); outline: none; }
.wiz-prompt-hint { margin-top: 8px; font-size: 12px; color: #888; }
.wiz-prompt-modal-footer {
    display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.wiz-prompt-modal-footer .wiz-btn.secondary {
    background: rgba(255,255,255,.08); color: #a3a7b7;
}
.wiz-prompt-modal-footer .wiz-btn.accent {
    background: linear-gradient(135deg, #76c7ff 0%, #5b9de0 100%); color: #000; font-weight: 600;
}

/* ======== Edit Prompt button style ======== */
.wiz-img-btn.prompt {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    color: #a3a7b7; font-size: 12px; border-radius: 6px; padding: 3px 8px;
    cursor: pointer; white-space: nowrap;
}
.wiz-img-btn.prompt:hover { color: #eef1f7; border-color: rgba(255,255,255,.25); }

/* ======== Clickable thumbs cursor ======== */
.wiz-entity-thumb[onclick], .wiz-review-thumb[onclick] { cursor: pointer; transition: opacity .15s; }
.wiz-entity-thumb[onclick]:hover, .wiz-review-thumb[onclick]:hover { opacity: .85; }

/* ======== Actor/Location Suggestion Modals ======== */
.wiz-actor-suggest-modal {
    width: 700px; max-width: 92vw; max-height: 85vh; background: var(--wiz-card, #1a1c2e);
    border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1);
}
.wiz-actor-suggest-body {
    padding: 16px; overflow-y: auto; flex: 1;
}
.wiz-suggestions-list { display: flex; flex-direction: column; gap: 12px; }
.wiz-actor-suggestion-card {
    display: flex; gap: 14px; padding: 12px; border-radius: 10px;
    background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08);
    transition: border-color .15s;
}
.wiz-actor-suggestion-card:hover { border-color: rgba(118,199,255,.3); }
.wiz-actor-photo { flex-shrink: 0; width: 80px; height: 100px; border-radius: 8px; overflow: hidden; }
.wiz-actor-photo img { width: 100%; height: 100%; object-fit: cover; }
.wiz-no-photo {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05); font-size: 28px; color: #666;
}
.wiz-actor-info { flex: 1; min-width: 0; }
.wiz-actor-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.wiz-actor-name { font-weight: 700; font-size: 15px; color: #eef1f7; }
.wiz-popularity { font-size: 12px; color: #a3a7b7; }
.wiz-known-for { font-size: 13px; color: #a3a7b7; margin: 4px 0; }
.wiz-reasoning { font-size: 13px; color: #c0c4d0; line-height: 1.4; margin: 4px 0; }
.wiz-tmdb-link { font-size: 12px; color: var(--wiz-accent, #76c7ff); text-decoration: none; }
.wiz-tmdb-link:hover { text-decoration: underline; }
.wiz-actor-actions { flex-shrink: 0; display: flex; align-items: center; }
.wiz-tier-badge {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    display: inline-block;
}
.wiz-tier-badge.a-list { background: rgba(255,215,0,.15); color: #ffd700; border: 1px solid rgba(255,215,0,.3); }
.wiz-tier-badge.b-list { background: rgba(192,192,192,.15); color: #c0c0c0; border: 1px solid rgba(192,192,192,.3); }
.wiz-tier-badge.rising { background: rgba(118,199,255,.15); color: #76c7ff; border: 1px solid rgba(118,199,255,.3); }

.wiz-char-analysis {
    padding: 10px 14px; margin-bottom: 12px; border-radius: 8px;
    background: rgba(118,199,255,.06); border: 1px solid rgba(118,199,255,.15);
    font-size: 13px; line-height: 1.5; color: #c0c4d0;
}
