/* Modern compact "Mein Profil" ad cards */
.profile-container--modern #ads-list .ad-item.ad-item--modern {
    padding: 0;
    background: transparent;
    border: none;
}

.profile-container--modern #ads-list .ad-item--modern .ad-card-collapsible {
    background: linear-gradient(165deg, rgba(28, 28, 32, 0.96), rgba(16, 16, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.profile-container--modern #ads-list .ad-item--modern.expanded .ad-card-collapsible {
    border-color: rgba(255, 179, 0, 0.22);
}

.profile-container--modern #ads-list .ad-item--modern .ad-card-header {
    padding: 10px 12px;
    gap: 12px;
}

.profile-container--modern #ads-list .ad-item--modern .ad-card-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-container--modern #ads-list .ad-item--modern .ad-card-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.profile-container--modern #ads-list .ad-item--modern .ad-card-meta {
    gap: 8px;
    font-size: 0.82rem;
}

.profile-container--modern #ads-list .ad-item--modern .ad-card-details {
    padding: 12px 14px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Compact detail chips — one row */
.profile-container--modern #ads-list .ad-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.profile-container--modern #ads-list .detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.profile-container--modern #ads-list .detail-item i {
    color: #ffb300;
    font-size: 0.75rem;
    width: auto;
}

.profile-container--modern #ads-list .detail-item strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 2px;
}

/* Sections: tighter */
.profile-container--modern #ads-list .ad-section-compact {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-container--modern #ads-list .ad-section-compact > strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.profile-container--modern #ads-list .ad-section-compact > strong i {
    margin-right: 6px;
    color: #ffb300;
}

.profile-container--modern #ads-list .ad-categories-section,
.profile-container--modern #ads-list .ad-description-section,
.profile-container--modern #ads-list .ad-chat-stats-section {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-container--modern #ads-list .ad-categories-section > strong,
.profile-container--modern #ads-list .ad-description-section > strong,
.profile-container--modern #ads-list .ad-chat-stats-section > strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

/* Category pills — small inline, not full-width blocks */
.profile-container--modern #ads-list .ad-categories-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.profile-container--modern #ads-list .ad-categories-compact .category-badge-3d {
    width: auto !important;
    min-height: 0 !important;
    padding: 4px 10px !important;
    font-size: 9px !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    flex: 0 0 auto;
    grid-column: auto !important;
}

.profile-container--modern #ads-list .ad-description-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Profil-Statistiken: 3-Karten-Grid (Nachrichten, Likes, Level) */
.profile-container--modern #ads-list .ad-chat-stats-3d {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.profile-container--modern #ads-list .ad-chat-stat-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.profile-container--modern #ads-list .ad-chat-stat-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.profile-container--modern #ads-list .ad-chat-stat-icon--messages {
    background: rgba(255, 165, 0, 0.14);
    color: #ffb84d;
}

.profile-container--modern #ads-list .ad-chat-stat-icon--likes {
    background: rgba(255, 107, 129, 0.14);
    color: #ff8fa3;
}

.profile-container--modern #ads-list .ad-chat-stat-icon--level {
    background: rgba(100, 181, 246, 0.14);
    color: #8ecaff;
}

.profile-container--modern #ads-list .ad-chat-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.profile-container--modern #ads-list .ad-chat-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.1;
}

.profile-container--modern #ads-list .ad-chat-stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .profile-container--modern #ads-list .ad-chat-stats-3d {
        grid-template-columns: 1fr;
    }

    .profile-container--modern #ads-list .ad-chat-stat-card {
        padding: 0.55rem 0.65rem;
    }
}

.profile-container--modern #ads-list .ad-preview-toggle {
    margin-bottom: 10px;
    padding: 8px 0;
}

.profile-container--modern #ads-list .ad-customization-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.profile-container--modern #ads-list .btn-profile-custom {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
}

.profile-container--modern #ads-list .btn-chat-custom {
    background: rgba(255, 179, 0, 0.12);
    border-color: rgba(255, 179, 0, 0.35);
    color: #ffb300;
}

.profile-container--modern #ads-list .btn-card-border {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.35);
    color: #7ec8ff;
}

/* Actions: primary row + prominent delete */
.profile-container--modern #ads-list .ad-actions-expanded {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-container--modern #ads-list .ad-actions-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.profile-container--modern #ads-list .btn-action-expanded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.profile-container--modern #ads-list .btn-action-expanded.btn-edit {
    background: rgba(255, 179, 0, 0.18);
    color: #ffc233;
    border: 1px solid rgba(255, 179, 0, 0.35);
}

.profile-container--modern #ads-list .btn-action-expanded.btn-push {
    background: rgba(33, 150, 243, 0.18);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.35);
}

.profile-container--modern #ads-list .btn-action-expanded.btn-delete,
.profile-container--modern #ads-list .btn-delete-prominent {
    width: 100%;
    min-height: 44px;
    background: rgba(244, 67, 54, 0.15);
    color: #ff8a80;
    border: 2px solid rgba(244, 67, 54, 0.55) !important;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
}

.profile-container--modern #ads-list .btn-action-expanded.btn-delete:hover,
.profile-container--modern #ads-list .btn-delete-prominent:hover {
    background: rgba(244, 67, 54, 0.28);
    border-color: rgba(244, 67, 54, 0.8) !important;
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.25);
    transform: translateY(-1px);
}

.profile-container--modern #ads-list .btn-delete-prominent i {
    font-size: 1rem;
}

@media (max-width: 600px) {
    .profile-container--modern #ads-list .ad-customization-row {
        grid-template-columns: 1fr;
    }

    .profile-container--modern #ads-list .ad-actions-primary {
        grid-template-columns: 1fr;
    }
}

/* Bulk toolbar & modals (Meine Anzeigen) */
.profile-container--modern .ads-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.12), rgba(255, 140, 0, 0.06));
    border: 1px solid rgba(255, 165, 0, 0.28);
}

/* display:flex oben überschreibt sonst das native [hidden] → Toolbar wirkte immer sichtbar */
.profile-container--modern .ads-bulk-toolbar[hidden] {
    display: none !important;
}

.profile-container--modern .ads-bulk-toolbar__intro {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    flex: 1 1 220px;
    line-height: 1.35;
}

.profile-container--modern .ads-bulk-toolbar__intro-short {
    display: none;
}

.profile-container--modern .ads-bulk-toolbar__intro i {
    color: #ffa500;
    flex-shrink: 0;
}

.profile-container--modern .ads-bulk-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-container--modern .ads-bulk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 42px;
}

.profile-container--modern .ads-bulk-btn-label--short {
    display: none;
}

.ads-bulk-modal-content {
    max-width: 520px;
}

.ads-bulk-modal-body {
    padding: 16px 20px 8px;
}

.ads-bulk-hint {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.ads-bulk-field {
    margin-bottom: 14px;
}

.ads-bulk-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.ads-bulk-field input[type="text"],
.ads-bulk-field input[type="url"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.ads-bulk-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ads-bulk-scope {
    border: none;
    margin: 0 0 12px;
    padding: 0;
}

.ads-bulk-scope legend {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding: 0;
}

.ads-bulk-scope label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.ads-bulk-checklist-wrap {
    margin-top: 4px;
    margin-bottom: 8px;
}

.ads-bulk-checklist-title {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.ads-bulk-checklist {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-bulk-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.ads-bulk-check-item input {
    margin-top: 3px;
    flex-shrink: 0;
}

.ads-bulk-check-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
}

.ads-bulk-check-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.ads-bulk-empty {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.ads-bulk-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
    .profile-container--modern .ads-bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .profile-container--modern .ads-bulk-toolbar__intro {
        flex: none;
        font-size: 0.82rem;
        gap: 8px;
    }

    .profile-container--modern .ads-bulk-toolbar__intro-full {
        display: none;
    }

    .profile-container--modern .ads-bulk-toolbar__intro-short {
        display: inline;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92);
    }

    .profile-container--modern .ads-bulk-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .profile-container--modern .ads-bulk-btn {
        width: 100%;
        min-height: 64px;
        padding: 10px 8px;
        flex-direction: column;
        gap: 6px;
        white-space: normal;
        text-align: center;
        font-size: 0.78rem;
        line-height: 1.25;
        border-radius: 12px;
    }

    .profile-container--modern .ads-bulk-btn i {
        font-size: 1.05rem;
    }

    .profile-container--modern .ads-bulk-btn-label--full {
        display: none;
    }

    .profile-container--modern .ads-bulk-btn-label--short {
        display: inline;
    }

    .profile-container--modern .ads-bulk-btn--preview {
        background: rgba(255, 165, 0, 0.1);
        border-color: rgba(255, 165, 0, 0.35);
    }

    .profile-container--modern .ads-bulk-btn--appointment {
        background: rgba(33, 150, 243, 0.1);
        border-color: rgba(33, 150, 243, 0.35);
    }

    .ads-bulk-modal-actions {
        flex-direction: column-reverse;
    }

    .ads-bulk-modal-actions .btn-primary,
    .ads-bulk-modal-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .profile-container--modern .ads-bulk-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .profile-container--modern .ads-bulk-btn {
        min-height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 12px;
        text-align: left;
    }

    .profile-container--modern .ads-bulk-btn i {
        width: 1.25rem;
        text-align: center;
    }
}

/* Bulk-Bestätigungs-Modal (über den Einstellungs-Modals) */
.ads-bulk-confirm-modal {
    z-index: 10150;
}

.ads-bulk-confirm-content {
    max-width: 480px;
    border-radius: 18px;
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: linear-gradient(160deg, rgba(28, 24, 20, 0.98), rgba(14, 14, 18, 0.99));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.ads-bulk-confirm-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.18), rgba(255, 140, 0, 0.06));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ads-bulk-confirm-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ads-bulk-confirm-header .close {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.6rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.25rem;
}

.ads-bulk-confirm-header .close:hover {
    color: #fff;
}

.ads-bulk-confirm-body {
    padding: 1.25rem 1.35rem 0.5rem;
    text-align: center;
}

.ads-bulk-confirm-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 165, 0, 0.15);
    border: 2px solid rgba(255, 165, 0, 0.35);
    color: #ffa500;
    font-size: 1.45rem;
}

.ads-bulk-confirm-icon-wrap.is-warning {
    background: rgba(255, 152, 0, 0.18);
    border-color: rgba(255, 152, 0, 0.45);
    color: #ffb74d;
}

.ads-bulk-confirm-icon-wrap.is-danger {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.45);
    color: #ff8a80;
}

.ads-bulk-confirm-body h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.ads-bulk-confirm-details {
    text-align: left;
    margin: 0 auto 4px;
    max-width: 100%;
}

.ads-bulk-confirm-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-bulk-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.ads-bulk-confirm-row strong {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    flex-shrink: 0;
}

.ads-bulk-confirm-row span {
    color: #fff;
    text-align: right;
    word-break: break-all;
}

.ads-bulk-confirm-note {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
    text-align: center;
}

.ads-bulk-confirm-note.is-warning {
    color: #ffb74d;
}

.ads-bulk-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 1.35rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-bulk-confirm-actions .btn-primary,
.ads-bulk-confirm-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ads-bulk-confirm-actions .btn-primary.is-danger {
    background: linear-gradient(135deg, #e53935, #c62828);
    border-color: rgba(244, 67, 54, 0.6);
}

.ads-bulk-confirm-actions .btn-primary.is-danger:hover {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

@media (max-width: 600px) {
    .ads-bulk-confirm-actions {
        flex-direction: column-reverse;
    }

    .ads-bulk-confirm-actions .btn-primary,
    .ads-bulk-confirm-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
