/* =========================================================================
   Community, Beichten, Ad + Telegram-Kanal-Formular — Navbar-aligned
   ========================================================================= */

#create-community-modal.ccm-modal,
#create-community-post-modal.ccm-modal,
#create-beichten-modal.ccm-modal,
#ad-modal.ccm-modal,
#telegram-channel-form-modal.ccm-modal {
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
}

#create-community-modal .modal-content.ccm-panel,
#create-community-post-modal .modal-content.ccm-panel,
#create-beichten-modal .modal-content.ccm-panel,
#ad-modal .modal-content.ccm-panel,
#telegram-channel-form-modal .modal-content.ccm-panel {
    background: rgba(20, 20, 24, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 165, 0, 0.22);
    border-radius: 16px;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: none;
    margin: 12px auto;
    max-width: 560px;
    width: min(560px, calc(100% - 24px));
}

#create-community-modal .modal-header.ccm-header,
#create-community-post-modal .modal-header.ccm-header,
#create-beichten-modal .modal-header.ccm-header,
#ad-modal .modal-header.ccm-header,
#telegram-channel-form-modal .modal-header.ccm-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 165, 0, 0.22);
    border-radius: 16px 16px 0 0;
    padding: 1rem 1rem 1rem 1.15rem;
    box-shadow: none;
}

#create-community-modal .modal-header.ccm-header h3,
#create-community-post-modal .modal-header.ccm-header h3,
#create-beichten-modal .modal-header.ccm-header h3,
#ad-modal .modal-header.ccm-header h3,
#telegram-channel-form-modal .modal-header.ccm-header h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

#create-community-modal .modal-header .close.ccm-close,
#create-community-post-modal .modal-header .close.ccm-close,
#create-beichten-modal .modal-header .close.ccm-close,
#ad-modal .modal-header .close.ccm-close,
#telegram-channel-form-modal .modal-header .close.ccm-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#create-community-modal .modal-header .close.ccm-close:hover,
#create-community-post-modal .modal-header .close.ccm-close:hover,
#create-beichten-modal .modal-header .close.ccm-close:hover,
#ad-modal .modal-header .close.ccm-close:hover,
#telegram-channel-form-modal .modal-header .close.ccm-close:hover {
    background: rgba(255, 165, 0, 0.12);
    border-color: rgba(255, 165, 0, 0.35);
    color: #ffb84d;
}

#create-community-modal .modal-body.ccm-body,
#create-community-post-modal .modal-body.ccm-body,
#create-beichten-modal .modal-body.ccm-body,
#ad-modal .modal-body.ccm-body,
#telegram-channel-form-modal .modal-body.ccm-body {
    padding: 1.15rem 1.15rem 1.35rem;
    background: transparent;
}

/* Referral progress (injected) */
#create-community-modal .ccm-referral-card {
    margin: 0 0 1.15rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#create-community-modal .ccm-referral-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

#create-community-modal .ccm-referral-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffb84d;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

#create-community-modal .ccm-icon-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: rgba(255, 165, 0, 0.1);
    color: #ffb84d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
}

#create-community-modal .ccm-icon-btn:hover {
    background: rgba(255, 165, 0, 0.18);
    border-color: rgba(255, 165, 0, 0.5);
}

#create-community-modal .ccm-referral-stats {
    text-align: center;
    margin-bottom: 0.85rem;
}

#create-community-modal .ccm-referral-count {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffd34d;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

#create-community-modal .ccm-referral-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.2rem;
}

#create-community-modal .ccm-referral-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

#create-community-modal .ccm-referral-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.35);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

#create-community-modal .ccm-referral-dot--filled {
    border-color: rgba(255, 165, 0, 0.55);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.35), rgba(255, 140, 0, 0.22));
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(255, 165, 0, 0.2);
}

#create-community-modal .ccm-referral-dot i {
    font-size: 1.1rem;
}

#create-community-modal .ccm-referral-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#create-community-modal .ccm-referral-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffa500, #ff8c00);
    transition: width 0.45s ease;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.35);
}

#create-community-modal .ccm-referral-callout {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.25);
    background: rgba(255, 165, 0, 0.08);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.85rem;
}

#create-community-modal .ccm-referral-callout strong {
    color: #ffd34d;
    font-weight: 800;
}

#create-community-modal .ccm-referral-link-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

#create-community-modal .ccm-referral-link-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

#create-community-modal .ccm-referral-input {
    flex: 1 1 200px;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.82rem;
    font-family: inherit;
}

#create-community-modal .ccm-referral-input:focus {
    outline: none;
    border-color: rgba(255, 165, 0, 0.45);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.18);
}

#create-community-modal .ccm-btn-primary {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.55);
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: filter 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(255, 165, 0, 0.22);
}

#create-community-modal .ccm-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(255, 165, 0, 0.32);
}

#create-community-modal .ccm-referral-success {
    padding: 0.85rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(129, 199, 132, 0.45);
    background: rgba(76, 175, 80, 0.12);
}

#create-community-modal .ccm-referral-success i {
    color: #81c784;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

#create-community-modal .ccm-referral-success-title {
    color: #a5d6a7;
    font-weight: 700;
    font-size: 0.95rem;
}

#create-community-modal .ccm-referral-success-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* Form fields */
#create-community-modal .ccm-body .form-group,
#create-community-post-modal .ccm-body .form-group,
#create-beichten-modal .ccm-body .form-group,
#ad-modal .ccm-body .form-group,
#telegram-channel-form-modal .ccm-body .form-group {
    margin-bottom: 1rem;
}

#create-community-modal .ccm-body .form-group label,
#create-community-post-modal .ccm-body .form-group label,
#create-beichten-modal .ccm-body .form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.4rem;
}

/* Ad wizard: nur direkte Feld-Labels (nicht .category-option / verschachtelt) */
#ad-modal .ccm-body .form-group > label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.4rem;
}

#telegram-channel-form-modal .ccm-body .form-group > label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.4rem;
}

#create-community-modal .ccm-body input[type="text"],
#create-community-modal .ccm-body input[type="number"],
#create-community-modal .ccm-body textarea,
#create-community-modal .ccm-select,
#create-community-post-modal .ccm-body input[type="text"],
#create-community-post-modal .ccm-body input[type="number"],
#create-community-post-modal .ccm-body textarea,
#create-community-post-modal .ccm-select,
#create-beichten-modal .ccm-body input[type="text"],
#create-beichten-modal .ccm-body input[type="number"],
#create-beichten-modal .ccm-body textarea,
#create-beichten-modal .ccm-select,
#ad-modal .ccm-body input[type="text"],
#ad-modal .ccm-body input[type="number"],
#ad-modal .ccm-body input[type="url"],
#ad-modal .ccm-body textarea,
#ad-modal .ccm-select,
#telegram-channel-form-modal .ccm-body input[type="text"],
#telegram-channel-form-modal .ccm-body input[type="number"],
#telegram-channel-form-modal .ccm-body input[type="url"],
#telegram-channel-form-modal .ccm-body textarea,
#telegram-channel-form-modal .ccm-select {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 0.55rem 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#create-community-modal .ccm-body textarea,
#create-community-post-modal .ccm-body textarea,
#create-beichten-modal .ccm-body textarea,
#ad-modal .ccm-body textarea,
#telegram-channel-form-modal .ccm-body textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.45;
}

#create-community-modal .ccm-body input:focus,
#create-community-modal .ccm-body textarea:focus,
#create-community-modal .ccm-select:focus,
#create-community-post-modal .ccm-body input:focus,
#create-community-post-modal .ccm-body textarea:focus,
#create-community-post-modal .ccm-select:focus,
#create-beichten-modal .ccm-body input:focus,
#create-beichten-modal .ccm-body textarea:focus,
#create-beichten-modal .ccm-select:focus,
#ad-modal .ccm-body input:focus,
#ad-modal .ccm-body textarea:focus,
#ad-modal .ccm-select:focus,
#telegram-channel-form-modal .ccm-body input:focus,
#telegram-channel-form-modal .ccm-body textarea:focus,
#telegram-channel-form-modal .ccm-select:focus {
    outline: none;
    border-color: rgba(255, 165, 0, 0.45);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15);
}

#create-community-modal .ccm-body input::placeholder,
#create-community-modal .ccm-body textarea::placeholder,
#create-community-post-modal .ccm-body input::placeholder,
#create-community-post-modal .ccm-body textarea::placeholder,
#create-beichten-modal .ccm-body input::placeholder,
#create-beichten-modal .ccm-body textarea::placeholder,
#ad-modal .ccm-body input::placeholder,
#ad-modal .ccm-body textarea::placeholder,
#telegram-channel-form-modal .ccm-body input::placeholder,
#telegram-channel-form-modal .ccm-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

#create-community-modal .ccm-body .radio-group,
#create-community-post-modal .ccm-body .radio-group,
#create-beichten-modal .ccm-body .radio-group,
#ad-modal .ccm-body .radio-group,
#telegram-channel-form-modal .ccm-body .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

#create-community-modal .ccm-body .radio-group > label,
#create-community-post-modal .ccm-body .radio-group > label,
#create-beichten-modal .ccm-body .radio-group > label,
#ad-modal .ccm-body .radio-group > label,
#telegram-channel-form-modal .ccm-body .radio-group > label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

#create-community-modal .ccm-body .radio-group > label:hover,
#create-community-post-modal .ccm-body .radio-group > label:hover,
#create-beichten-modal .ccm-body .radio-group > label:hover,
#ad-modal .ccm-body .radio-group > label:hover,
#telegram-channel-form-modal .ccm-body .radio-group > label:hover {
    border-color: rgba(255, 165, 0, 0.28);
    background: rgba(255, 165, 0, 0.06);
}

#create-community-modal .ccm-body .radio-group input,
#create-community-post-modal .ccm-body .radio-group input,
#create-beichten-modal .ccm-body .radio-group input,
#ad-modal .ccm-body .radio-group input,
#telegram-channel-form-modal .ccm-body .radio-group input {
    accent-color: #ffa500;
}

#create-community-modal .ccm-body small,
#create-community-post-modal .ccm-body small,
#create-beichten-modal .ccm-body small,
#ad-modal .ccm-body small,
#telegram-channel-form-modal .ccm-body small {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.78rem !important;
    line-height: 1.45;
}

#create-community-modal .form-actions,
#create-community-post-modal .form-actions,
#create-beichten-modal .form-actions,
#ad-modal .form-actions,
#telegram-channel-form-modal .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#create-community-modal .form-actions .btn-secondary,
#create-community-post-modal .form-actions .btn-secondary,
#create-beichten-modal .form-actions .btn-secondary,
#ad-modal .form-actions .btn-secondary,
#telegram-channel-form-modal .form-actions .btn-secondary {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

#create-community-modal .form-actions .btn-secondary:hover,
#create-community-post-modal .form-actions .btn-secondary:hover,
#create-beichten-modal .form-actions .btn-secondary:hover,
#ad-modal .form-actions .btn-secondary:hover,
#telegram-channel-form-modal .form-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

#create-community-modal .form-actions .btn-primary,
#create-community-post-modal .form-actions .btn-primary,
#create-beichten-modal .form-actions .btn-primary,
#ad-modal .form-actions .btn-primary,
#telegram-channel-form-modal .form-actions .btn-primary {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.55);
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: #1a1a1a;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 165, 0, 0.22);
}

#create-community-modal .form-actions .btn-primary:hover,
#create-community-post-modal .form-actions .btn-primary:hover,
#create-beichten-modal .form-actions .btn-primary:hover,
#ad-modal .form-actions .btn-primary:hover,
#telegram-channel-form-modal .form-actions .btn-primary:hover {
    filter: brightness(1.05);
}

/* Telegram: Kanal hinzufügen/bearbeiten (Modal, Navbar-Tokens) */
#telegram-channel-form-modal .modal-content.ccm-panel {
    max-width: 600px;
    width: min(600px, calc(100% - 24px));
    max-height: min(90dvh, 980px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 165, 0, 0.45) rgba(255, 255, 255, 0.06);
}

#telegram-channel-form-modal .modal-content.ccm-panel::-webkit-scrollbar {
    width: 6px;
}

#telegram-channel-form-modal .modal-content.ccm-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin: 8px 0;
}

#telegram-channel-form-modal .modal-content.ccm-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.55), rgba(255, 140, 0, 0.4));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#telegram-channel-form-modal .ccm-body .telegram-info-box.telegram-form-info {
    margin: 0 0 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 14, 18, 0.65);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#telegram-channel-form-modal .ccm-body .telegram-info-short {
    margin: 0 0 0.5rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

#telegram-channel-form-modal .ccm-body .btn-link.telegram-info-expand-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffb84d;
    padding: 0.2rem 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.18s ease;
}

#telegram-channel-form-modal .ccm-body .btn-link.telegram-info-expand-btn:hover {
    color: #ffa500;
    text-decoration: none;
}

#telegram-channel-form-modal .ccm-body .form-group > label .required {
    color: #ff8a65;
    font-weight: 700;
}

#telegram-channel-form-modal .ccm-body .form-group.telegram-channel-profile-selector {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        152deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 165, 0, 0.045) 52%,
        rgba(14, 14, 20, 0.72) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 22px rgba(0, 0, 0, 0.22);
}

#telegram-channel-form-modal .ccm-body .form-group.telegram-channel-profile-selector > label {
    margin-bottom: 0.5rem;
}

#telegram-channel-form-modal .ccm-body .form-group.telegram-channel-profile-selector > small {
    display: block;
    margin-top: 0.55rem;
    margin-bottom: 0;
    line-height: 1.45;
}

#telegram-channel-form-modal .ccm-body .telegram-color-palette {
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

#telegram-channel-form-modal .ccm-body .telegram-color-swatch {
    border-radius: 10px;
    border-width: 2px;
}

#telegram-channel-form-modal .ccm-body .telegram-color-hex-display {
    display: inline-block;
    margin: 0.35rem 0 0;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 165, 0, 0.25);
}

#telegram-channel-form-modal .ccm-body .telegram-palette-loading,
#telegram-channel-form-modal .ccm-body .telegram-palette-error {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Beichte posten modal */
#create-beichten-modal .ccm-body .beichten-netiquette {
    margin: 0 0 1.1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.22);
    background: rgba(255, 165, 0, 0.07);
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

#create-beichten-modal .ccm-body .form-group label.beichten-anonym-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

#create-beichten-modal .ccm-body .beichten-post-profile-selector {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

#create-beichten-modal .ccm-post-as {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

#create-beichten-modal .ccm-post-as .beichten-post-as-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 165, 0, 0.35);
    flex-shrink: 0;
}

#create-beichten-modal .ccm-post-as .beichten-post-as-username {
    font-weight: 700;
    color: #ffb84d;
    font-size: 0.95rem;
}

#create-beichten-modal .ccm-profile-select-wrap,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap {
    position: relative;
}

#create-beichten-modal .ccm-profile-select-wrap::after,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.35);
    transition: opacity 0.18s ease;
}

#create-beichten-modal .ccm-profile-select-wrap:focus-within::after,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap:focus-within::after {
    opacity: 1;
}

#create-beichten-modal .ccm-profile-select-wrap select#beichten-post-profile-select.ccm-select,
#create-beichten-modal .ccm-profile-select-wrap select.ccm-select,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select#telegram-channel-profile-select.ccm-select,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select {
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.55rem 2.5rem 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.38);
    background-color: rgba(16, 16, 20, 0.96);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 48%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.35;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 4px 14px rgba(0, 0, 0, 0.25);
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

#create-beichten-modal .ccm-profile-select-wrap select.ccm-select:hover,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select:hover {
    border-color: rgba(255, 165, 0, 0.55);
    background-color: rgba(22, 22, 28, 0.98);
}

#create-beichten-modal .ccm-profile-select-wrap select.ccm-select:focus,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select:focus {
    outline: none;
    border-color: rgba(255, 184, 77, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 2px rgba(255, 165, 0, 0.22),
        0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Native <option> list — wirkt je nach OS/Browser unterschiedlich, verbessert wo möglich */
#create-beichten-modal .ccm-profile-select-wrap select.ccm-select option,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select option {
    background-color: #1a1a20;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.65rem;
    font-weight: 500;
}

#create-beichten-modal .ccm-profile-select-wrap select.ccm-select option[value=""],
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select option[value=""] {
    color: rgba(255, 255, 255, 0.52);
    font-style: italic;
    font-weight: 500;
}

#create-beichten-modal .ccm-profile-select-wrap select.ccm-select option:hover,
#create-beichten-modal .ccm-profile-select-wrap select.ccm-select option:focus,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select option:hover,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select option:focus {
    background-color: rgba(255, 165, 0, 0.18);
}

#create-beichten-modal .ccm-profile-select-wrap select.ccm-select option:checked,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap select.ccm-select option:checked {
    background-color: rgba(255, 165, 0, 0.28);
    color: #fff;
    font-weight: 700;
}

#create-beichten-modal .ccm-profile-select-wrap .profile-select-arrow,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap .profile-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 184, 77, 0.75);
    font-size: 0.72rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

#create-beichten-modal .ccm-profile-select-wrap:focus-within .profile-select-arrow,
#telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap:focus-within .profile-select-arrow {
    color: #ffb84d;
    transform: translateY(-50%) rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    #create-beichten-modal .ccm-profile-select-wrap:focus-within .profile-select-arrow,
    #telegram-channel-form-modal .telegram-channel-profile-selector .telegram-profile-select-shell.ccm-profile-select-wrap:focus-within .profile-select-arrow {
        transform: translateY(-50%);
    }
}

/* Ad modal — „Neue Anzeige schalten“ (Wizard) */
#ad-modal .modal-content.ccm-panel {
    max-width: 600px;
    width: min(600px, calc(100% - 24px));
    max-height: min(88dvh, 900px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 165, 0, 0.45) rgba(255, 255, 255, 0.06);
}

#ad-modal .modal-content.ccm-panel::-webkit-scrollbar {
    width: 6px;
}

#ad-modal .modal-content.ccm-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin: 8px 0;
}

#ad-modal .modal-content.ccm-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.55), rgba(255, 140, 0, 0.4));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#ad-modal .modal-header.ccm-header {
    align-items: flex-start;
    gap: 0.65rem;
}

#ad-modal .modal-header .modal-title-section {
    flex: 1;
    min-width: 0;
}

#ad-modal .modal-header .modal-title-section h3 {
    margin-bottom: 0.35rem;
}

#ad-modal .modal-header .profile-cost-info {
    margin-top: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.28);
    background: rgba(255, 165, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#ad-modal .modal-header .cost-display {
    font-size: 0.88rem;
    font-weight: 700;
}

#ad-modal .modal-header .cost-display i {
    color: #ffb84d;
}

#ad-modal .modal-header .cost-explanation {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
    margin-top: 0.25rem;
    line-height: 1.4;
}

#ad-modal .ccm-body .progress-container {
    margin-bottom: 1.25rem;
}

#ad-modal .ccm-body .progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.85rem;
}

#ad-modal .ccm-body .progress-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, #ffa500, #ff8c00);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.35);
}

#ad-modal .ccm-body .step-indicators {
    margin-bottom: 1.15rem;
    gap: 0.35rem;
}

#ad-modal .ccm-body .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-width: 1px;
}

#ad-modal .ccm-body .step-label {
    font-size: 0.72rem;
    text-align: center;
    max-width: 5.5rem;
    line-height: 1.2;
}

#ad-modal .ccm-body .form-step h4 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffb84d;
    letter-spacing: 0.02em;
    text-shadow: none;
}

#ad-modal .ccm-body .field-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.76rem !important;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.52) !important;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

#ad-modal .ccm-body .form-navigation.form-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

#ad-modal .ccm-body .form-navigation.form-actions .btn-primary,
#ad-modal .ccm-body .form-navigation.form-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

#ad-modal #file-upload-area.file-upload-area,
#ad-modal .ccm-body .file-upload-area {
    margin-top: 0.35rem;
    padding: 1.15rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 165, 0, 0.35);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

#ad-modal #file-upload-area.file-upload-area:hover,
#ad-modal .ccm-body .file-upload-area:hover {
    border-color: rgba(255, 165, 0, 0.55);
    background: rgba(255, 165, 0, 0.06);
}

#ad-modal #file-upload-area i,
#ad-modal .ccm-body .file-upload-area i {
    color: #ffb84d;
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

#ad-modal #file-upload-area p,
#ad-modal .ccm-body .file-upload-area p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
}

#ad-modal .ccm-body .file-preview {
    margin-top: 0.65rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 240px;
    background: rgba(0, 0, 0, 0.22);
}

#ad-modal .ccm-body .file-preview img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

#ad-modal .ccm-body .ad-preview-section {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 165, 0, 0.18);
}

#ad-modal .ccm-body .form-group > label.ad-preview-toggle-label,
#ad-modal .ccm-body .ad-preview-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

#ad-modal .ccm-body .ad-preview-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: #ffa500;
    cursor: pointer;
}

#ad-modal .ccm-body #preview-form-settings.ad-preview-panel {
    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

#ad-modal .ccm-body .ad-preview-panel .form-group {
    margin-bottom: 0.85rem;
}

#ad-modal .ccm-body .ad-preview-panel .form-group:last-child {
    margin-bottom: 0;
}

#ad-modal .ccm-body .ad-preview-panel .form-group > label.ad-preview-field-label,
#ad-modal .ccm-body .ad-preview-field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffb84d;
    text-transform: none;
    letter-spacing: 0.02em;
}

#ad-modal .ccm-body .ad-preview-panel .field-note {
    margin-top: 0.45rem;
}

#ad-modal .ccm-body .ad-preview-panel .field-note i {
    color: #ffb84d;
    margin-right: 0.35rem;
}

/* Post modal: media / file drop */
#create-community-post-modal #post-file-upload-area.file-upload-area,
#create-community-post-modal .file-upload-area {
    margin-top: 0.35rem;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 165, 0, 0.35);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

#create-community-post-modal #post-file-upload-area.file-upload-area:hover,
#create-community-post-modal .file-upload-area:hover {
    border-color: rgba(255, 165, 0, 0.55);
    background: rgba(255, 165, 0, 0.06);
}

#create-community-post-modal #post-file-upload-area i,
#create-community-post-modal .file-upload-area i {
    color: #ffb84d;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

#create-community-post-modal #post-file-upload-area p,
#create-community-post-modal .file-upload-area p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

#create-community-post-modal #post-file-upload-area small,
#create-community-post-modal .file-upload-area small {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.72rem !important;
}

#create-community-post-modal .file-preview {
    margin-top: 0.65rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 220px;
    background: rgba(0, 0, 0, 0.25);
}

#create-community-post-modal .file-preview img,
#create-community-post-modal .file-preview video {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

@media (max-width: 520px) {
    #create-community-modal .modal-content.ccm-panel,
    #create-community-post-modal .modal-content.ccm-panel,
    #create-beichten-modal .modal-content.ccm-panel,
    #ad-modal .modal-content.ccm-panel,
    #telegram-channel-form-modal .modal-content.ccm-panel {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-radius: 14px;
    }

    #create-community-modal .modal-header.ccm-header,
    #create-community-post-modal .modal-header.ccm-header,
    #create-beichten-modal .modal-header.ccm-header,
    #ad-modal .modal-header.ccm-header,
    #telegram-channel-form-modal .modal-header.ccm-header {
        border-radius: 14px 14px 0 0;
    }

    #create-community-modal .form-actions,
    #create-community-post-modal .form-actions,
    #create-beichten-modal .form-actions,
    #ad-modal .form-actions,
    #telegram-channel-form-modal .form-actions {
        flex-direction: column-reverse;
    }

    #create-community-modal .form-actions .btn-primary,
    #create-community-modal .form-actions .btn-secondary,
    #create-community-post-modal .form-actions .btn-primary,
    #create-community-post-modal .form-actions .btn-secondary,
    #create-beichten-modal .form-actions .btn-primary,
    #create-beichten-modal .form-actions .btn-secondary,
    #ad-modal .form-actions .btn-primary,
    #ad-modal .form-actions .btn-secondary,
    #telegram-channel-form-modal .form-actions .btn-primary,
    #telegram-channel-form-modal .form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    #ad-modal .ccm-body .step-indicators {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
    }

    #create-community-modal .ccm-referral-link-row {
        flex-direction: column;
    }

    #create-community-modal .ccm-btn-primary {
        width: 100%;
    }
}
