.post-builder-shell {
    width: 100%;
    padding: clamp(1rem, 2.5vw, 2.75rem);
}

.post-builder {
    --post-heading: var(--bs-body-color, #1e1a2c);
    --post-muted: var(--bs-secondary-color, #6f6c82);
    --post-border: rgba(20, 12, 42, 0.15);
    --post-surface: rgba(4, 0, 21, 0.02);
    --post-surface-alt: rgba(4, 0, 21, 0.04);
    --post-pill-bg: rgba(255, 255, 255, 0.92);
    --post-pill-text: #231c3b;
    --post-pill-border: rgba(31, 16, 56, 0.2);
    --post-primary: #c12dd8;
    --post-secondary: #ff2d8f;
    color: var(--post-heading);
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 2rem);
}

.post-builder.post-theme-dark {
    --post-heading: #ffffff;
    --post-muted: rgba(255, 255, 255, 0.75);
    --post-border: rgba(255, 255, 255, 0.25);
    --post-surface: rgba(15, 13, 26, 0.85);
    --post-surface-alt: rgba(20, 18, 33, 0.65);
    --post-pill-bg: rgba(255, 255, 255, 0.12);
    --post-pill-text: #ffffff;
    --post-pill-border: rgba(255, 255, 255, 0.25);
}

.post-builder h5,
.post-builder h6,
.post-builder label {
    color: var(--post-heading);
}

.post-builder p,
.post-builder .text-muted {
    color: var(--post-muted) !important;
}

.post-step-section {
    border-radius: 24px;
    border: 1px solid var(--post-border);
    padding: 32px 34px;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.post-step-section > .form-group + .form-group {
    margin-top: 1.5rem;
}

.post-builder.post-theme-dark .post-step-section {
    background: transparent;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .post-builder-shell {
        padding: 1.25rem 1rem;
    }

    .post-step-section {
        padding: 24px 20px;
    }
}

.post-summary-bar {
    background: var(--post-surface-alt);
    gap: 0.5rem;
    border-radius: 20px;
    border: 1px solid var(--post-pill-border);
}

.post-builder > .border-bottom {
    border-color: var(--post-border) !important;
}

.post-summary-label {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--post-muted);
    margin-right: 1rem;
}

.post-stepper {
    gap: 1rem;
    flex-wrap: wrap;
}

.post-stepper-item {
    border: 1px solid var(--post-pill-border);
    background: var(--post-pill-bg);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.post-stepper-item .step-index {
    font-weight: 700;
    margin-right: 0.5rem;
}

.post-stepper-item .step-label {
    font-weight: 600;
}

.post-stepper-item.active {
    background: linear-gradient(135deg, var(--post-primary), var(--post-secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(193, 45, 216, 0.25);
}

.post-stepper-item.completed {
    border-color: var(--post-primary);
    color: var(--post-primary);
}

.post-summary-bar + .post-step-section {
    margin-top: 32px;
}

.summary-pill {
    border: 1px solid var(--post-pill-border);
    background: var(--post-pill-bg);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    color: var(--post-pill-text);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.summary-pill .pill-value {
    font-weight: 600;
}

.summary-pill.summary-pill-warning {
    background: rgba(255,193,7,0.18);
    color: #ffc107;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.visibility-option {
    border: 1px solid var(--post-pill-border);
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    border-radius: 18px;
    background: var(--post-surface-alt);
}

.visibility-option.active {
    border-color: var(--post-primary);
    box-shadow: 0 15px 40px rgba(193, 45, 216, 0.15);
    background: linear-gradient(135deg, rgba(193,45,216,0.15), rgba(255,45,143,0.15));
}

.price-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-chip {
    border: 1px solid var(--post-pill-border);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--post-heading);
}

.price-chip.active {
    background: linear-gradient(135deg, var(--post-primary), var(--post-secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(193,45,216,0.35);
}

.preview-card .blurred-thumb {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(0,0,0,0.2), rgba(255,255,255,0.03));
    margin-bottom: 1rem;
}

.preview-card,
.mobile-preview {
    background: rgba(4, 0, 21, 0.02);
    border: 1px solid var(--post-border);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.post-builder.post-theme-dark .preview-card,
.post-builder.post-theme-dark .mobile-preview {
    background: rgba(255, 255, 255, 0.02);
}

.mobile-preview {
    min-height: 180px;
}

.mobile-preview-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-preview-text {
    line-height: 1.4;
}

.post-step .form-control {
    background: rgba(255,255,255,0.03);
    border-color: var(--post-border);
    color: var(--post-heading);
}

.post-builder.post-theme-dark .form-control {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.post-builder .form-control:focus {
    border-color: var(--post-primary);
    box-shadow: 0 0 0 0.2rem rgba(193,45,216,0.15);
}

.post-builder .btn-primary {
    background: linear-gradient(135deg, var(--post-primary), var(--post-secondary));
    border: none;
    box-shadow: 0 15px 35px rgba(193,45,216,0.4);
}

.post-builder .btn-outline-secondary,
.post-builder .btn-outline-primary {
    border-color: var(--post-border);
    color: var(--post-heading);
}

.post-builder .btn-outline-secondary:hover,
.post-builder .btn-outline-primary:hover {
    border-color: var(--post-primary);
    color: var(--post-primary);
}

.post-builder .dropzone-previews.dropzone {
    border: 1px dashed var(--post-border) !important;
    border-radius: 20px;
    min-height: 150px !important;
    padding: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(4, 0, 21, 0.015);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.post-builder.post-theme-dark .dropzone-previews.dropzone {
    background: rgba(255, 255, 255, 0.03);
}

.post-builder .dropzone-previews.dropzone.has-files {
    justify-content: flex-start;
}

.post-builder .dropzone-previews.dropzone.is-dragging {
    border-color: var(--post-primary) !important;
    box-shadow: 0 0 0 2px rgba(193,45,216,0.18);
}

.dropzone-previews.dropzone{
    min-height: 0px!important;
    border: none;
}

.dropzone .dz-preview.dz-image-preview {
    background: transparent!important;
}

.dropzone .dz-preview:hover .dz-image img {
     -webkit-filter: blur(2px)!important;
    filter: blur(2px)!important;
}

.dropzone .dz-preview .dz-filename{
    display: none!important;
}

.dropzone .dz-preview {
    min-height: unset;
}

.dropzone-empty-state {
    transition: opacity 0.2s ease;
    width: 100%;
}

.dropzone-previews.has-files .dropzone-empty-state {
    opacity: 0;
    visibility: hidden;
}

.pulse {
    animation: pulse 1.2s ease-in-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(193,45,216,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(193,45,216,0); }
    100% { box-shadow: 0 0 0 0 rgba(193,45,216,0); }
}

/* Post comments */
.post-comments-wrapper .rounded-circle, .new-post-comment-area .rounded-circle{
    height:50px;
    width:50px
}

.post-comment .separator{
    right: 1rem;
}

.comment-textarea{
    height:45px!important;
    min-height:45px!important;
    border-radius: 20px!important;
    padding-top: 10px!important;
    overflow: hidden!important;
}
