.my-ads-split .forum-main-topics-heading,
.my-ads-panel-head .forum-main-topics-heading {
    color: #006400;
}

html.dark-mode .my-ads-split .forum-main-topics-heading,
html.dark-mode .my-ads-panel-head .forum-main-topics-heading,
html.dark-mode .my-ads-split .forum-panel h2.forum-main-topics-heading {
    color: #006400;
}

.my-ads-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    background: transparent;
    color: inherit;
}

.my-ads-btn--green {
    background: #006400;
    border-color: #006400;
    color: #fff;
}

.my-ads-btn--green:hover,
.my-ads-btn--green:focus-visible {
    background: #005200;
    border-color: #005200;
    color: #fff;
}

/* Flash banners and confirm dialogs in dark mode */
html.dark-mode .forum-flash-stack .forum-alert,
html.dark-mode .forum-flash-stack .forum-alert-success {
    background: #0d3d0d;
    color: #b8e8b8;
    border-color: rgba(0, 100, 0, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

html.dark-mode .forum-flash-stack .forum-alert-error {
    background: #4a1212;
    color: #ffc8c8;
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

html.dark-mode .forum-form input.forum-input-email-needed-beat,
html.dark-mode .forum-label input.forum-input-email-needed-beat {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}

@keyframes forum-email-needed-beat-dark {
    0%, 100% {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.45);
    }

    50% {
        border-color: #ff9999;
        box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.55);
    }
}

html.dark-mode .forum-form input.forum-input-email-needed-beat,
html.dark-mode .forum-label input.forum-input-email-needed-beat {
    animation: forum-email-needed-beat-dark 0.28s ease-in-out 6;
}

.my-ads-btn--red {
    background: #ff004c;
    border-color: #ff004c;
    color: #fff;
}

.my-ads-btn--red:hover,
.my-ads-btn--red:focus-visible {
    background: #d9003f;
    border-color: #d9003f;
    color: #fff;
}

.my-ads-btn--edit {
    color: #0000ff;
    padding-inline: 0;
    min-height: auto;
}

html.dark-mode .my-ads-btn--edit {
    color: #7eb8ff;
}

.my-ads-new-btn {
    font-size: 0.85rem;
    text-transform: lowercase;
}

.my-ads-post-ad-wrap .step,
.container.mb-3 .step {
    display: none;
}

.my-ads-post-ad-wrap .step.active,
.container.mb-3 .step.active {
    display: block;
}

.my-ads-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.my-ads-grid {
    display: grid;
    gap: 14px;
}

.my-ads-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(89, 30, 152, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.my-ads-card__preview img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #111;
}

.my-ads-card__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.my-ads-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.my-ads-inline-form {
    display: inline;
    margin: 0;
}

.my-ads-editor label {
    display: block;
    margin-bottom: 12px;
}

.my-ads-editor input,
.my-ads-editor textarea,
.my-ads-editor select {
    width: 100%;
    margin-top: 4px;
}

.my-ads-editor-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.my-ads-step-tab {
    border: 1px solid #591e98;
    background: transparent;
    color: inherit;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.my-ads-step-tab.active {
    background: #008000;
    border-color: #008000;
    color: #fff;
}

.my-ads-step-panel {
    display: none;
}

.my-ads-step-panel.active {
    display: block;
}

.my-ads-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.my-ads-image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.my-ads-image-upload {
    min-height: 100px;
    border: 2px dashed rgba(89, 30, 152, 0.45);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.my-ads-save-status {
    font-size: 0.85rem;
    opacity: 0.8;
}

html.dark-mode .my-ads-card {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Post-ad editor: social app checkboxes (match main site post-ad) */
#multiStepForm .social-networks {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
}

#multiStepForm .social-networks input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0 6px 0 0;
    border: 2px solid #591e98;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

#multiStepForm .social-networks input[type="checkbox"]:checked {
    background: #591e98;
    border-color: #591e98;
}

#multiStepForm .social-networks input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 4px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

html.dark-mode #multiStepForm .social-networks input[type="checkbox"],
.dark-mode #multiStepForm .social-networks input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 4px;
    background: #7f00ff;
}

html.dark-mode #multiStepForm .social-networks input[type="checkbox"]:checked::after,
.dark-mode #multiStepForm .social-networks input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 5px;
    width: 6px;
    height: 12px;
    transform: rotate(13deg);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

html.dark-mode #multiStepForm img.social-icon.whatsapp,
html.dark-mode #multiStepForm img.social-icon.telegram,
html.dark-mode #multiStepForm img.social-icon.signal,
html.dark-mode #multiStepForm img.social-icon.viber,
.dark-mode #multiStepForm img.social-icon.whatsapp,
.dark-mode #multiStepForm img.social-icon.telegram,
.dark-mode #multiStepForm img.social-icon.signal,
.dark-mode #multiStepForm img.social-icon.viber {
    filter: none;
}

