/* ===== New post wizard v4 ===== */

body.page-new-post {
    background: #06040a;
}

body.page-new-post .site-content {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1200px) {
    body.page-new-post .site-sidebar {
        display: none;
    }

    body.page-new-post .site-content {
        padding: 10px 16px 32px;
    }
}

@media (max-width: 1199px) {
    body.page-new-post .main-footer {
        display: none;
    }
}

.gallery-page--new-post {
    --np-accent: #ff5a7a;
    --np-accent-2: #bc13fe;
    --np-card: rgba(22, 14, 34, 0.96);
    --np-border: rgba(255, 255, 255, 0.08);
    --np-muted: rgba(255, 255, 255, 0.52);
    --np-good: #34d399;
    --np-warn: #fbbf24;
    --np-danger: #f87171;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 0 calc(20px + var(--bottom-nav-h, 62px) + env(safe-area-inset-bottom, 0px));
}

.gallery-page--new-post .add-wrap,
.gallery-page--new-post .upload-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    overflow: visible;
}

.gallery-page--new-post .upload-hero {
    margin: 10px 12px 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(22, 14, 34, 0.92);
    border: 1px solid var(--np-border);
}

@media (min-width: 1200px) {
    .gallery-page--new-post .upload-hero {
        margin: 0 0 10px;
    }
}

.gallery-page--new-post .upload-hero h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.gallery-page--new-post .upload-hero p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--np-muted);
}

.gallery-page--new-post .upload-body {
    padding: 0 12px;
}

@media (min-width: 1200px) {
    .gallery-page--new-post .upload-body {
        padding: 0;
    }
}

/* Steps */
.gallery-page--new-post .steps-indicator {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.gallery-page--new-post .step-item {
    flex: 1;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--np-border);
    opacity: 0.55;
    transition: 0.15s ease;
}

.gallery-page--new-post .step-item.active,
.gallery-page--new-post .step-item.done {
    opacity: 1;
    border-color: rgba(255, 90, 122, 0.35);
    background: rgba(255, 90, 122, 0.1);
}

.gallery-page--new-post .step-label,
.gallery-page--new-post .step-number {
    display: none;
}

.gallery-page--new-post .step-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

/* Form */
.gallery-page--new-post .form-step {
    display: none;
}

.gallery-page--new-post .form-step.active {
    display: block;
}

.gallery-page--new-post .np-block {
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 16px;
    background: var(--np-card);
    border: 1px solid var(--np-border);
}

.gallery-page--new-post .np-block--soft {
    background: rgba(255, 255, 255, 0.02);
}

.gallery-page--new-post .np-block__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

.gallery-page--new-post .np-block__desc {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--np-muted);
}

.gallery-page--new-post .np-block__desc.category-warning {
    color: #fde68a;
}

.gallery-page--new-post .np-block--locked {
    opacity: 0.82;
}

.gallery-page--new-post .np-vip-only {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.42);
    text-transform: lowercase;
}

.gallery-page--new-post .np-vip-only a {
    color: #7dffb0;
    font-weight: 700;
    text-decoration: none;
}

.gallery-page--new-post .np-locked-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.gallery-page--new-post .np-locked-fieldset:disabled {
    opacity: 0.55;
    pointer-events: none;
}

.gallery-page--new-post .np-locked-fieldset:disabled input,
.gallery-page--new-post .np-locked-fieldset:disabled select,
.gallery-page--new-post .np-locked-fieldset:disabled button {
    cursor: not-allowed;
}

.gallery-page--new-post .np-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-page--new-post .np-grid-2--pair {
    margin-bottom: 10px;
}

.gallery-page--new-post .np-contacts-gate {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.18);
}

.gallery-page--new-post .np-contacts-gate__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}

.gallery-page--new-post .np-contacts-gate__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.gallery-page--new-post .np-contacts-gate .np-vip-only {
    margin-top: 8px;
    margin-bottom: 0;
}

.gallery-page--new-post .np-optional {
    font-size: 10px;
    font-weight: 700;
    color: var(--np-muted);
}

.gallery-page--new-post .field-group {
    margin-bottom: 10px;
}

.gallery-page--new-post .field-group:last-child {
    margin-bottom: 0;
}

.gallery-page--new-post .field-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.gallery-page--new-post .field-group input[type="text"],
.gallery-page--new-post .field-group input[type="tel"],
.gallery-page--new-post .field-group textarea,
.gallery-page--new-post .field-group select,
.gallery-page--new-post .field-select select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #110818;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    outline: none;
    box-sizing: border-box;
    color-scheme: dark;
    -webkit-tap-highlight-color: transparent;
}

.gallery-page--new-post .field-select select:required:invalid {
    color: rgba(255, 255, 255, 0.42);
}

.gallery-page--new-post .field-select select option {
    color: #fff;
    background: #160a25;
}

.gallery-page--new-post .field-group textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.gallery-page--new-post .field-group input:focus,
.gallery-page--new-post .field-group textarea:focus,
.gallery-page--new-post .field-group select:focus {
    border-color: rgba(255, 90, 122, 0.45);
}

.gallery-page--new-post .field-select {
    position: relative;
    display: block;
}

.gallery-page--new-post .field-select__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #e6b8ff;
    background: rgba(188, 19, 254, 0.16);
    pointer-events: none;
    z-index: 2;
}

.gallery-page--new-post .field-select__chev {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 2;
}

.gallery-page--new-post .field-select select {
    padding-left: 44px;
    padding-right: 34px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.gallery-page--new-post .field-select select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gallery-page--new-post .field-hint {
    margin: 5px 0 0;
    font-size: 10px;
    color: var(--np-muted);
}

.gallery-page--new-post .field-counter {
    margin-top: 4px;
    font-size: 10px;
    color: var(--np-muted);
}

.gallery-page--new-post .field-error {
    display: none;
    margin-top: 4px;
    font-size: 10px;
    color: var(--np-danger);
    font-weight: 700;
}

.gallery-page--new-post .field-error.show {
    display: block;
}

.gallery-page--new-post .seek-targets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.gallery-page--new-post .seek-target-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.gallery-page--new-post .seek-target-toggle input {
    display: none;
}

.gallery-page--new-post .seek-target-toggle span {
    font-size: 11px;
    font-weight: 800;
    color: var(--np-muted);
}

.gallery-page--new-post .seek-target-toggle:has(input:checked) {
    border-color: rgba(255, 90, 122, 0.45);
    background: rgba(255, 90, 122, 0.12);
}

.gallery-page--new-post .seek-target-toggle:has(input:checked) span {
    color: #fff;
}

/* Visibility picker */
.gallery-page--new-post .uf-segmented.vis-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
}

.gallery-page--new-post .uf-segmented__opt {
    position: relative;
    margin: 0;
}

.gallery-page--new-post .uf-segmented__opt input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.gallery-page--new-post .uf-segmented__btn.vis-picker__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 10px;
    font-weight: 800;
    color: var(--np-muted);
    text-align: center;
    pointer-events: none;
}

.gallery-page--new-post .uf-segmented__opt.is-active .uf-segmented__btn,
.gallery-page--new-post .uf-segmented__opt input:checked + .uf-segmented__btn {
    color: #fff;
    border-color: rgba(255, 90, 122, 0.45);
    background: rgba(255, 90, 122, 0.12);
}

.gallery-page--new-post .uf-segmented__btn.vis-picker__body i {
    font-size: 13px;
}

.gallery-page--new-post .field-group--compact {
    margin-bottom: 0;
}

.gallery-page--new-post .field-group--compact > label {
    font-size: 10px !important;
    color: var(--np-muted) !important;
    margin-bottom: 6px;
}

.gallery-page--new-post .file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 80px;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.gallery-page--new-post .file-drop i {
    font-size: 18px;
    color: var(--np-accent);
}

.gallery-page--new-post .file-drop__name {
    font-size: 11px;
    font-weight: 700;
    color: var(--np-muted);
    text-align: center;
}

.gallery-page--new-post .messenger-toggles {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gallery-page--new-post .messenger-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    color: var(--np-muted);
}

.gallery-page--new-post .messenger-toggle:has(input:checked) {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.1);
    color: #fff;
}

.gallery-page--new-post .messenger-toggle.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.gallery-page--new-post .btn-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

.gallery-page--new-post .btn-prev,
.gallery-page--new-post .btn-next,
.gallery-page--new-post .btn-submit {
    flex: 1;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.gallery-page--new-post .btn-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--np-border);
}

.gallery-page--new-post .btn-next,
.gallery-page--new-post .btn-submit {
    color: #fff;
    background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
}

.gallery-page--new-post .btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-page--new-post .notice {
    margin: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--np-card);
    border: 1px solid var(--np-border);
    color: var(--np-muted);
    font-size: 13px;
    line-height: 1.5;
}

.gallery-page--new-post .notice h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.gallery-page--new-post .notice a {
    color: var(--np-good);
    font-weight: 800;
    text-decoration: none;
}

.gallery-page--new-post .notice-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.gallery-page--new-post .btn-verify,
.gallery-page--new-post .btn-cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
}

.gallery-page--new-post .btn-verify {
    background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
}

.gallery-page--new-post .btn-cabinet {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--np-border);
}

@media (max-width: 520px) {
    .gallery-page--new-post .np-grid-2--pair {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-page--new-post .seek-targets {
        grid-template-columns: 1fr;
    }

    .gallery-page--new-post .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .gallery-page--new-post .np-grid-2--pair {
        grid-template-columns: 1fr;
    }
}
