/* ============================================
   PASANG IKLAN / LISTING WIZARD STYLES
   ============================================ */

.page-header-sm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 100px 0 40px;
    color: var(--white);
}

.page-header-sm .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header-sm .page-subtitle {
    opacity: 0.9;
}

/* Wizard Section */
.wizard-section {
    padding: 40px 0 80px;
    background: var(--light);
    min-height: 100vh;
}

/* Progress Steps */
.wizard-progress {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.step-link {
    text-decoration: none;
}

.step-link.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.55;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-500);
    transition: var(--transition);
}

.step-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step.completed .step-label {
    color: var(--success);
}

/* Wizard Form */
.wizard-form {
    max-width: 1000px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-card {
    position: relative;
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-card-busy {
    pointer-events: none;
}

.step-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    backdrop-filter: blur(3px);
}

.step-card-overlay-body {
    width: min(100%, 560px);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(4, 157, 181, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.step-card-overlay-body .spinner-border {
    color: var(--primary);
    flex-shrink: 0;
}

.step-card-overlay-body strong {
    display: block;
    color: var(--dark);
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.step-header h3 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-header h3 i {
    color: var(--primary);
}

.step-header p {
    color: var(--gray-600);
    margin: 0;
}

.api-hint-box {
    background: #f3f7fa;
    border: 1px solid #dbe5ee;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.step-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.step-actions-primary {
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    border-top: 1px solid var(--gray-200);
}

.step-actions-primary > .btn.btn-primary {
    min-width: 220px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(4, 157, 181, 0.16);
}

.step-links-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.step-links-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.step-status-alert {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    border-width: 1px;
}

.wizard-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.wizard-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
}

.wizard-context-chip i {
    color: #0f766e;
}

.wizard-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.wizard-primary-action {
    min-width: 180px;
    justify-content: center;
}

.listing-category-group .form-select {
    min-height: 48px;
}

.listing-category-group .btn-refresh-icon {
    width: 48px;
    min-width: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.duplicate-box,
.history-box,
.transfer-box {
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

/* Property Type Grid */
.property-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.type-option input {
    display: none;
}

.type-card {
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.type-card i {
    font-size: 1.75rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.5rem;
}

.type-card span {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.type-option input:checked + .type-card {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.05);
}

.type-option input:checked + .type-card i {
    color: var(--primary);
}

.type-option input:checked + .type-card span {
    color: var(--primary);
}

/* Spec Input */
.spec-input label {
    display: block;
    margin-bottom: 0.25rem;
}

.spec-input .input-group {
    border-radius: 0.75rem;
    overflow: hidden;
}

.spec-input .btn {
    padding: 0.5rem 0.75rem;
}

.spec-input .form-control {
    text-align: center;
    font-weight: 600;
}

/* Facilities Checkboxes */
.facilities-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.facility-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.facility-check input {
    display: none;
}

.facility-check i {
    color: var(--gray-500);
    font-size: 1.1rem;
}

.facility-check span {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.facility-check:hover {
    border-color: var(--primary);
}

.facility-check input:checked + span,
.facility-check:has(input:checked) {
    background: rgba(4, 157, 181, 0.05);
    border-color: var(--primary);
}

.facility-check:has(input:checked) i {
    color: var(--primary);
}

/* Owner Type Options */
.owner-type-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.owner-type input {
    display: none;
}

.owner-card {
    padding: 1.5rem 2rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.owner-card i {
    font-size: 2rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.5rem;
}

.owner-card span {
    font-weight: 500;
    color: var(--gray-700);
}

.owner-type input:checked + .owner-card {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.05);
}

.owner-type input:checked + .owner-card i {
    color: var(--primary);
}

/* Relationship Options */
.relationship-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.relationship-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.relationship-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.relationship-check span {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.relationship-check:has(input:checked) {
    background: rgba(4, 157, 181, 0.05);
    border-color: var(--primary);
}

/* File Upload Box */
.file-upload-box {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.02);
}

.file-upload-box i {
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.file-upload-box p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.file-upload-box small {
    color: var(--gray-500);
}

/* Map Pin Container */
.map-pin-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 350px;
}

#propertyLocationMap {
    height: 100%;
    width: 100%;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

/* Main Photo Upload */
.main-photo-upload {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: var(--transition);
}

.main-photo-upload:hover {
    border-color: var(--primary);
}

.upload-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-placeholder small {
    color: var(--gray-500);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Gallery Upload */
.gallery-upload {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.add-photo-btn {
    aspect-ratio: 1;
    border: 2px dashed var(--gray-300);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.add-photo-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.add-photo-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.add-photo-btn span {
    font-size: 0.75rem;
}

/* Video Upload */
.video-upload-options .nav-tabs {
    border: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.video-upload-options .nav-link {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    color: var(--gray-600);
    padding: 0.5rem 1rem;
}

.video-upload-options .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.video-upload-box {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

/* Document Upload */
.document-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 0.75rem;
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.doc-info {
    flex: 1;
}

.doc-name {
    display: block;
    font-weight: 500;
    color: var(--dark);
}

.doc-info small {
    color: var(--gray-500);
}

/* Description Editor */
.description-editor {
    border: 1px solid var(--gray-300);
    border-radius: 1rem;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--light);
    border-bottom: 1px solid var(--gray-200);
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

.toolbar-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.toolbar-divider {
    width: 1px;
    background: var(--gray-300);
    margin: 0 0.25rem;
}

.ai-assist-btn {
    width: auto;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.ai-assist-btn:hover {
    color: var(--white);
    opacity: 0.9;
}

.editor-textarea {
    border: none;
    resize: vertical;
    min-height: 200px;
}

.editor-textarea:focus {
    box-shadow: none;
}

/* AI Suggestions */
.ai-suggestions-box {
    background: linear-gradient(135deg, rgba(4, 157, 181, 0.05), rgba(6, 193, 221, 0.05));
    border: 1px solid var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
}

.ai-suggestions-box h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.suggestion-item:hover {
    box-shadow: var(--shadow);
}

.suggestion-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    flex: 1;
}

.btn-use {
    padding: 0.35rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

/* Commission Type Options */
.commission-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.commission-type input {
    display: none;
}

.commission-card {
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.commission-card i {
    font-size: 2rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.commission-card .title {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.commission-card small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.commission-type input:checked + .commission-card {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.05);
}

.commission-type input:checked + .commission-card i {
    color: var(--primary);
}

/* Urgency Options */
.urgency-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.urgency-check input {
    display: none;
}

.urgency-check span {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.badge-normal {
    background: var(--light);
    color: var(--gray-700);
}

.badge-urgent {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-hot {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.urgency-check input:checked + .badge-normal {
    background: var(--primary);
    color: var(--white);
}

.urgency-check input:checked + .badge-urgent {
    background: #ffc107;
    color: var(--dark);
}

.urgency-check input:checked + .badge-hot {
    background: var(--danger);
    color: var(--white);
}

/* Preview Section */
.preview-section {
    background: var(--light);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.preview-section h6 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wizard-navigation .btn {
    padding: 0.875rem 2rem;
    font-weight: 500;
}

.btn-publish {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    font-size: 1.1rem;
    padding: 1rem 3rem !important;
}

.btn-publish:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Success Icon */
.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-icon i {
    font-size: 3rem;
    color: var(--white);
}

/* Step Hover Effect for Clickable */
.step {
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
    z-index: -1;
}

.step:hover::before {
    background: rgba(4, 157, 181, 0.1);
}

.step:hover .step-number {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Gallery Photo */
.gallery-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-photo .btn-remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

/* ====================
   MOBILE-FIRST RESPONSIVE
   ==================== */

/* Mobile (default) */
.page-header-sm {
    padding: 80px 0 30px;
}

.page-header-sm .page-title {
    font-size: 1.5rem;
}

.page-header-sm .page-subtitle {
    font-size: 0.875rem;
}

.wizard-progress {
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wizard-progress::-webkit-scrollbar {
    display: none;
}

.progress-line {
    top: 16px;
    left: 25px;
    right: 25px;
    height: 3px;
}

.steps {
    min-width: 500px;
    padding: 0 5px;
}

.step-number {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
}

.step-label {
    font-size: 0.65rem;
    max-width: 60px;
    white-space: normal;
    line-height: 1.2;
}

.step-card {
    padding: 1.25rem;
    border-radius: 1rem;
}

.step-card-overlay {
    padding: 0.9rem;
}

.step-card-overlay-body {
    align-items: flex-start;
    gap: 0.75rem;
}

.step-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.step-header h3 {
    font-size: 1.1rem;
}

.step-header p {
    font-size: 0.85rem;
}

/* Property Type Grid Mobile */
.property-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.type-card {
    padding: 0.875rem 0.5rem;
}

.type-card i {
    font-size: 1.25rem;
}

.type-card span {
    font-size: 0.75rem;
}

/* Spec Input Mobile */
.spec-input .input-group {
    border-radius: 0.5rem;
}

.spec-input .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.spec-input .form-control {
    font-size: 0.875rem;
    padding: 0.375rem;
}

/* Facilities Mobile */
.facilities-checkboxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.facility-check {
    padding: 0.625rem;
}

.facility-check i {
    font-size: 0.9rem;
}

.facility-check span {
    font-size: 0.75rem;
}

/* Owner Type Mobile */
.owner-type-options {
    flex-direction: column;
    gap: 0.75rem;
}

.owner-card {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.owner-card i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* File Upload Mobile */
.file-upload-box {
    padding: 1.5rem 1rem;
}

.file-upload-box i {
    font-size: 2rem;
}

.file-upload-box p {
    font-size: 0.875rem;
}

/* Map Mobile */
.map-pin-container {
    height: 250px;
}

/* Main Photo Mobile */
.main-photo-upload {
    height: 200px;
}

.upload-placeholder i {
    font-size: 2rem;
}

/* Gallery Mobile */
.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* Video Upload Mobile */
.video-upload-box {
    padding: 1.5rem 1rem;
}

/* Document Upload Mobile */
.doc-item {
    flex-wrap: wrap;
    padding: 0.875rem;
}

.doc-icon {
    width: 40px;
    height: 40px;
}

.doc-icon i {
    font-size: 1.25rem;
}

.doc-name {
    font-size: 0.875rem;
}

/* Description Editor Mobile */
.editor-toolbar {
    flex-wrap: wrap;
    gap: 0.125rem;
    padding: 0.375rem;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
}

.ai-assist-btn {
    width: auto;
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

.editor-textarea {
    min-height: 150px;
    font-size: 0.875rem;
}

/* AI Suggestions Mobile */
.ai-suggestions-box {
    padding: 1rem;
}

.suggestion-item {
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item p {
    font-size: 0.85rem;
}

/* Commission Type Mobile */
.commission-type-options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.commission-card {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.commission-card i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Urgency Options Mobile */
.urgency-options {
    gap: 0.5rem;
}

.urgency-check span {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
}

/* Navigation Buttons Mobile */
.wizard-navigation {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.wizard-navigation .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.btn-publish {
    font-size: 1rem !important;
    padding: 0.875rem 1.5rem !important;
}

/* Form Controls Mobile */
.form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.875rem;
}

.input-group-text {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

/* Relationship Options Mobile */
.relationship-check {
    padding: 0.875rem;
}

.relationship-check span {
    font-size: 0.875rem;
}

/* Preview Section Mobile */
.preview-section {
    padding: 1rem;
}

/* ====================
   TABLET (768px+)
   ==================== */
@media (min-width: 768px) {
    .page-header-sm {
        padding: 100px 0 40px;
    }
    
    .page-header-sm .page-title {
        font-size: 2rem;
    }
    
    .page-header-sm .page-subtitle {
        font-size: 1rem;
    }
    
    .steps {
        min-width: auto;
    }
    
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
        max-width: none;
    }
    
    .step-card {
        padding: 2rem;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .type-card {
        padding: 1.25rem;
    }
    
    .type-card i {
        font-size: 1.75rem;
    }
    
    .type-card span {
        font-size: 0.9rem;
    }
    
    .facilities-checkboxes {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .owner-type-options {
        flex-direction: row;
    }
    
    .owner-card {
        flex-direction: column;
        text-align: center;
        min-width: 120px;
    }
    
    .owner-card i {
        margin-bottom: 0.5rem;
    }
    
    .map-pin-container {
        height: 350px;
    }
    
    .main-photo-upload {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .commission-type-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .commission-card {
        flex-direction: column;
        text-align: center;
    }
    
    .commission-card i {
        margin-bottom: 0.75rem;
    }
    
    .wizard-navigation {
        flex-direction: row;
    }
    
    .wizard-navigation .btn {
        width: auto;
        padding: 0.875rem 2rem;
    }
    
    .suggestion-item {
        flex-direction: row;
    }
}

/* ====================
   DESKTOP (992px+)
   ==================== */
@media (min-width: 992px) {
    .step-card {
        padding: 2.5rem;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .editor-textarea {
        min-height: 200px;
    }
}

/* ====================
   SMALL MOBILE (360px)
   ==================== */
@media (max-width: 360px) {
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .progress-line {
        top: 14px;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .type-card {
        padding: 0.625rem 0.375rem;
    }
    
    .type-card i {
        font-size: 1rem;
    }
    
    .type-card span {
        font-size: 0.7rem;
    }
    
    .facilities-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.upload-progress-box {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 44%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d5e7f5;
    border-radius: 0.95rem;
    padding: 0.95rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.upload-progress-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.upload-progress-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.upload-progress-track {
    height: 0.56rem;
    border-radius: 999px;
    background: #e7eef7;
    overflow: hidden;
}

.upload-progress-track .progress-bar {
    border-radius: 999px;
    transition: width 0.25s ease-in-out;
}

.upload-progress-bar-image {
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

.upload-progress-bar-doc {
    background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
}

.upload-progress-meta {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
}

.upload-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background:
        radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.18), transparent 36%),
        radial-gradient(circle at 84% 82%, rgba(16, 185, 129, 0.12), transparent 34%),
        rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.upload-lock-card {
    width: min(520px, 100%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1.1rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
    padding: 1.35rem 1.3rem;
    text-align: center;
}

.upload-lock-icon-wrap {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
}

.upload-lock-subtitle {
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.upload-lock-progress-label {
    text-align: left;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.38rem;
}

.upload-lock-warning {
    font-size: 0.78rem;
    color: #b91c1c;
    font-weight: 600;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.65rem;
    padding: 0.45rem 0.55rem;
}

body.upload-lock-active {
    overflow: hidden;
}

/* Compact variant for upload progress UI on mobile */
@media (max-width: 576px) {
    .upload-progress-box {
        border-radius: 0.78rem;
        padding: 0.62rem 0.66rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .upload-progress-head {
        gap: 0.4rem;
    }

    .upload-progress-title {
        font-size: 0.78rem;
        font-weight: 700;
    }

    .upload-progress-value {
        font-size: 0.67rem;
        padding: 0.16rem 0.42rem;
    }

    .upload-progress-track {
        height: 0.43rem;
        margin-top: 0.34rem !important;
    }

    .upload-progress-meta {
        margin-top: 0.34rem !important;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .upload-lock-overlay {
        padding: 0.74rem;
        align-items: flex-end;
        opacity: 0;
    }

    .upload-lock-card {
        width: 100%;
        border-radius: 0.95rem;
        padding: 0.92rem 0.82rem;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
        transform: translateY(22px);
        opacity: 0;
    }

    .upload-lock-card h5 {
        font-size: 0.98rem;
    }

    .upload-lock-subtitle {
        font-size: 0.79rem;
        margin-bottom: 0.66rem;
    }

    .upload-lock-icon-wrap {
        width: 2.42rem;
        height: 2.42rem;
        margin-bottom: 0.64rem !important;
    }

    .upload-lock-icon-wrap .spinner-border {
        width: 1.12rem;
        height: 1.12rem;
        border-width: 0.14em;
    }

    .upload-lock-progress-label {
        font-size: 0.7rem;
        margin-bottom: 0.28rem;
    }

    .upload-lock-card .progress.upload-progress-track {
        margin-bottom: 0.58rem !important;
    }

    .upload-lock-warning {
        margin-top: 0.6rem !important;
        font-size: 0.68rem;
        border-radius: 0.56rem;
        padding: 0.34rem 0.42rem;
    }

    .quill-editor-host {
        min-height: 220px;
    }

    .quill-editor-host .ql-container.ql-snow {
        min-height: 170px;
        font-size: 0.88rem;
    }

    .upload-lock-overlay.is-active {
        animation: uploadOverlayFadeInMobile 240ms ease forwards;
    }

    .upload-lock-overlay.is-active .upload-lock-card {
        animation: uploadCardSlideInMobile 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .upload-lock-overlay.is-exiting {
        animation: uploadOverlayFadeOutMobile 220ms ease forwards;
    }

    .upload-lock-overlay.is-exiting .upload-lock-card {
        animation: uploadCardSlideOutMobile 220ms ease forwards;
    }
}

@media (max-width: 420px) {
    .upload-progress-title {
        max-width: 62%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .upload-progress-meta {
        font-size: 0.66rem;
    }
}

@keyframes uploadOverlayFadeInMobile {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes uploadOverlayFadeOutMobile {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes uploadCardSlideInMobile {
    from {
        transform: translateY(22px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes uploadCardSlideOutMobile {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(16px);
        opacity: 0;
    }
}

/* Step5 editor */
.quill-editor-wrapper {
    border: 1px solid #dbe3ea;
    border-radius: 0.8rem;
    background: #fff;
    overflow: hidden;
}

.quill-editor-host {
    min-height: 260px;
}

.quill-editor-host .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e4ebf2;
    background: #f8fafc;
}

.quill-editor-host .ql-container.ql-snow {
    border: 0;
    min-height: 210px;
    font-family: inherit;
    font-size: 0.95rem;
}

.description-preview-box {
    margin-top: 0.25rem;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 0.7rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.86rem;
    color: #334155;
}

/* ====================
   STEP 4 UPLOAD - CLEAN LAYOUT
   ==================== */
.wizard-form-upload {
    max-width: 1080px;
}

.wizard-form-upload .upload-step-card {
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.wizard-form-upload .upload-step-header {
    margin-bottom: 1.15rem;
    padding-bottom: 0.9rem;
}

.wizard-form-upload .upload-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.wizard-form-upload .upload-header-title {
    min-width: 0;
}

.wizard-form-upload .upload-step-header h3 {
    font-size: 1.12rem;
    margin-bottom: 0.36rem;
}

.wizard-form-upload .upload-step-header p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    word-break: break-word;
}

.wizard-form-upload .upload-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.wizard-form-upload .upload-header-actions .btn {
    border-radius: 0.62rem;
    min-width: 136px;
}

.wizard-form-upload .upload-tab-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    background: #eff5fb;
    border: 1px solid #dbe5ef;
    border-radius: 0.72rem;
    padding: 0.32rem;
}

.wizard-form-upload .upload-tab-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 700;
    border-radius: 0.58rem;
    padding: 0.44rem 0.66rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    transition: all 0.2s ease;
}

.wizard-form-upload .upload-tab-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}

.wizard-form-upload .upload-tab-btn.active {
    background: linear-gradient(135deg, #0ea5b7 0%, #0b7d8a 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(14, 165, 183, 0.26);
}

.wizard-form-upload .upload-tab-count {
    border-radius: 999px;
    padding: 0.04rem 0.43rem;
    background: rgba(100, 116, 139, 0.16);
    font-size: 0.72rem;
    line-height: 1.2;
}

.wizard-form-upload .upload-tab-btn.active .upload-tab-count {
    background: rgba(255, 255, 255, 0.24);
}

.wizard-form-upload .upload-section-card {
    border: 1px solid #d7e0ea;
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wizard-form-upload .upload-form-grid .form-label {
    font-size: 0.83rem;
    margin-bottom: 0.32rem;
    font-weight: 600;
}

.wizard-form-upload .upload-form-grid .form-control {
    border-radius: 0.62rem;
    min-height: 40px;
}

.wizard-form-upload .upload-inline-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wizard-form-upload .upload-inline-metrics span {
    font-size: 0.79rem;
    color: #475569;
    background: #eef4fb;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.wizard-form-upload .upload-actions-row .btn {
    min-width: 136px;
    border-radius: 0.65rem;
    font-weight: 600;
}

.wizard-form-upload .upload-limit-alert {
    border-radius: 0.7rem;
    font-size: 0.82rem;
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.wizard-form-upload .upload-mini-list {
    border: 1px dashed #cfe0ef;
    border-radius: 0.88rem;
    padding: 0.72rem;
    margin-bottom: 0.8rem;
    background: #fbfdff;
}

.wizard-form-upload .upload-mini-empty {
    border: 1px dashed #d8e5f2;
    border-radius: 0.72rem;
    padding: 0.92rem 0.8rem;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
}

.wizard-form-upload .upload-image-list,
.wizard-form-upload .upload-doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.62rem;
}

.wizard-form-upload .upload-mini-card {
    border: 1px solid #d9e6f2;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.62rem;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.65rem;
    align-items: start;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.wizard-form-upload .upload-mini-thumb {
    width: 76px;
    height: 76px;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid #d6e3f0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf4fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-form-upload .upload-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-form-upload .upload-mini-thumb i {
    font-size: 1.25rem;
    color: #6b7280;
}

.wizard-form-upload .upload-mini-thumb.doc i {
    font-size: 1.5rem;
    color: #dc2626;
}

.wizard-form-upload .upload-mini-content {
    min-width: 0;
    display: grid;
    gap: 0.32rem;
}

.wizard-form-upload .upload-mini-title {
    font-size: 0.84rem;
    line-height: 1.32;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-form-upload .upload-mini-title a {
    color: #0f172a;
    text-decoration: none;
}

.wizard-form-upload .upload-mini-title a:hover {
    color: #0284c7;
}

.wizard-form-upload .upload-mini-meta {
    font-size: 0.74rem;
    color: #64748b;
}

.wizard-form-upload .upload-mini-actions {
    margin-top: 0.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.wizard-form-upload .upload-mini-actions .btn {
    border-radius: 0.52rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.71rem;
}

.wizard-form-upload .upload-cover-badge {
    border-radius: 999px;
    font-size: 0.68rem;
    align-self: center;
}

.wizard-form-upload .upload-meta-editor {
    border-radius: 0.86rem;
    padding: 0.85rem;
    border: 1px solid #d9e4ef;
    background: #f8fbff;
}

.wizard-form-upload .upload-pager {
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.wizard-form-upload .upload-pager .btn {
    min-width: 66px;
    border-radius: 0.55rem;
}

.wizard-form-upload .upload-footer-actions {
    justify-content: flex-end;
    align-items: center;
    border-top: 1px dashed #dbe4ef;
    padding-top: 0.8rem;
}

.wizard-form-upload .upload-footer-actions .btn {
    border-radius: 0.62rem;
    min-width: 136px;
}

@media (max-width: 991.98px) {
    .wizard-form-upload .upload-step-card {
        padding: 1rem;
    }

    .wizard-form-upload .upload-image-list,
    .wizard-form-upload .upload-doc-list {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .wizard-form-upload .upload-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-form-upload .upload-header-actions {
        width: 100%;
    }

    .wizard-form-upload .upload-header-actions .btn {
        min-width: 0;
        flex: 1 1 0;
    }

    .wizard-form-upload .upload-tab-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wizard-form-upload .upload-tab-btn {
        justify-content: center;
    }

    .wizard-form-upload .upload-step-header h3 {
        font-size: 1rem;
    }

    .wizard-form-upload .upload-section-card {
        padding: 0.72rem;
    }

    .wizard-form-upload .upload-actions-row .btn {
        min-width: 0;
        flex: 1 1 0;
    }

    .wizard-form-upload .upload-image-list,
    .wizard-form-upload .upload-doc-list {
        grid-template-columns: 1fr;
    }

    .wizard-form-upload .upload-mini-card {
        grid-template-columns: 70px 1fr;
        padding: 0.55rem;
        gap: 0.52rem;
    }

    .wizard-form-upload .upload-mini-thumb {
        width: 70px;
        height: 70px;
    }

    .wizard-form-upload .upload-footer-actions {
        justify-content: stretch;
    }

    .wizard-form-upload .upload-footer-actions .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .wizard-form-upload .upload-step-card {
        padding: 0.82rem;
    }

    .wizard-form-upload .upload-step-header p {
        font-size: 0.75rem;
    }

    .wizard-form-upload .upload-inline-metrics span {
        font-size: 0.74rem;
    }

    .wizard-form-upload .upload-mini-actions .btn {
        font-size: 0.68rem;
    }
}

/* ============================================
   PRIMARY STEP 5
   ============================================ */

.primary-step5-form-wrap {
    max-width: 1120px;
}

.primary-variant-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.primary-variant-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #1f2937;
    border-radius: 0.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.primary-variant-tab-btn:hover {
    border-color: var(--primary);
}

.primary-variant-tab-btn.active {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.1);
    color: #0f172a;
}

.primary-variant-tab-btn.incomplete {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(255, 247, 237, 0.95);
}

.primary-variant-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
}

.primary-variant-tab-remove {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.primary-variant-panel {
    border: 1px solid #dbe3ea;
    border-radius: 0.85rem;
    padding: 1rem;
    background: #f9fbfd;
}

.primary-variant-section-head h6 {
    font-size: 1rem;
}

.primary-variant-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.08);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
}

.primary-variant-empty {
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.primary-variant-quickhint {
    max-width: 540px;
}

.primary-variant-stat-card {
    height: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.primary-variant-stat-card strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.primary-variant-stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.primary-image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
}

.primary-image-picker-item {
    border: 1px solid #dbe3ea;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.4rem;
    text-align: left;
    transition: all 0.2s ease;
}

.primary-image-picker-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 0.55rem;
    display: block;
    margin-bottom: 0.4rem;
}

.primary-image-picker-item span {
    display: block;
    font-size: 0.74rem;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-image-picker-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(4, 157, 181, 0.25);
    background: rgba(4, 157, 181, 0.06);
}

.publish-checklist-card {
    height: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.publish-checklist-card.is-ready {
    border-color: rgba(22, 163, 74, 0.22);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.9), #ffffff);
}

.publish-checklist-card.is-missing {
    border-color: rgba(220, 38, 38, 0.16);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.92), #ffffff);
}

.publish-checklist-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.publish-checklist-missing {
    line-height: 1.5;
}

.publish-checklist-cta {
    min-width: 168px;
}

.publish-success-card .success-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.25rem 0.25rem;
}

.publish-success-card .success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.publish-success-card .share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.publish-success-card .copy-item {
    border: 1px solid #dce7ef;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff;
}

.publish-success-card .copy-text {
    font-size: 0.93rem;
    color: #203046;
    line-height: 1.45;
}

.wizard-guide-box {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.82);
    padding: 0.75rem 0.9rem;
}

.wizard-guide-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.wizard-guide-summary-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.wizard-guide-icon {
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
}

.wizard-guide-toggle {
    padding: 0;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.wizard-guide-toggle:hover {
    color: var(--accent);
    text-decoration: underline;
}

.wizard-guide-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #d7e0ea;
}

.wizard-guide-list {
    display: grid;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .step-actions-primary-mobile-sticky {
        position: sticky;
        bottom: 0.75rem;
        z-index: 6;
        padding: 0.9rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    }

    .publish-success-card .success-head {
        align-items: flex-start;
    }

    .publish-success-card .copy-item {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-guide-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .wizard-guide-toggle {
        padding-left: 1.55rem;
    }
}

@media (max-width: 991.98px) {
    .primary-step5-form-wrap {
        max-width: 100%;
    }

    .primary-variant-panel {
        padding: 0.85rem;
    }

    .primary-image-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primary-variant-stat-card strong {
        font-size: 0.95rem;
    }

    .primary-variant-tab-badge {
        font-size: 0.63rem;
    }
}

@media (max-width: 575.98px) {
    .step-actions-primary {
        align-items: stretch;
    }

    .step-actions-primary > .btn.btn-primary {
        width: 100%;
        min-width: 0;
    }

    .step-links-row {
        width: 100%;
        justify-content: flex-start;
    }

    .step-links-label {
        width: 100%;
    }

    .step-links-row .btn {
        flex: 1 1 100%;
    }

    .wizard-context-chips {
        gap: 0.5rem;
    }

    .wizard-context-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .wizard-top-actions {
        width: 100%;
        justify-content: stretch;
    }

    .wizard-top-actions .btn {
        width: 100%;
    }

    .primary-variant-tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.65rem;
    }

    .primary-image-picker-item img {
        height: 82px;
    }

    .publish-checklist-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .publish-checklist-cta {
        width: 100%;
        min-width: 0;
    }

    .upload-mini-actions {
        width: 100%;
    }

    .upload-mini-actions .btn {
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 0;
    }

    .upload-pager {
        align-items: stretch;
    }

    .upload-pager .btn {
        flex: 1 1 100%;
    }
}
