.ctf-wrap{--ctf-border:#e5e7eb;--ctf-bg:#f7f8fa;--ctf-text:#17191c;--ctf-muted:#6b7280;--ctf-accent:#2563eb;max-width:1180px;margin:24px auto;color:var(--ctf-text);font-family:inherit}.ctf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#111827;color:#fff;border-radius:14px;padding:20px 22px;margin-bottom:18px}.ctf-toolbar strong{display:block;font-size:22px}.ctf-toolbar span{display:block;color:#cbd5e1;margin-top:4px}.ctf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ctf-btn{appearance:none;border:0;background:var(--ctf-accent);color:#fff!important;text-decoration:none!important;padding:10px 16px;border-radius:9px;font-weight:700;cursor:pointer;display:inline-block}.ctf-btn-light{background:#fff;color:#111827!important}.ctf-search-mini{display:flex;gap:6px}.ctf-search-mini input,.ctf-search-form input{border:1px solid #cfd4dc;border-radius:8px;padding:9px 11px;min-width:210px}.ctf-search-form{display:flex;gap:8px;margin:0 0 18px}.ctf-search-form input{flex:1}.ctf-category{border:1px solid var(--ctf-border);border-radius:13px;overflow:hidden;margin:0 0 18px;background:#fff}.ctf-category>h2{font-size:18px;margin:0;padding:14px 17px;background:#111827;color:#fff}.ctf-catdesc{margin:0;padding:11px 17px;background:var(--ctf-bg);color:var(--ctf-muted);border-bottom:1px solid var(--ctf-border)}.ctf-forum-row,.ctf-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 90px minmax(150px,260px);gap:12px;align-items:center;padding:16px 17px;border-top:1px solid var(--ctf-border)}.ctf-forum-row:first-of-type{border-top:0}.ctf-forum-title,.ctf-topic-title{font-weight:800;font-size:16px;text-decoration:none}.ctf-desc,.ctf-topic-row small,.ctf-last small,.ctf-latest-row small{display:block;color:var(--ctf-muted);margin-top:4px}.ctf-stat{text-align:center}.ctf-stat strong,.ctf-stat span{display:block}.ctf-stat span{font-size:11px;color:var(--ctf-muted);text-transform:uppercase}.ctf-last>a{font-weight:700;text-decoration:none}.ctf-latest-row{display:flex;justify-content:space-between;gap:15px;padding:13px 17px;border-top:1px solid var(--ctf-border)}.ctf-latest-row:first-child{border-top:0}.ctf-latest-row div>a{font-weight:700;text-decoration:none}.ctf-breadcrumb{margin:0 0 14px;color:var(--ctf-muted)}.ctf-compose{margin:14px 17px;border:1px solid var(--ctf-border);border-radius:10px;padding:12px}.ctf-compose summary{font-weight:800;cursor:pointer}.ctf-compose form,.ctf-auth form,.ctf-reply form,.ctf-report form{display:grid;gap:12px;margin-top:14px}.ctf-wrap label{font-weight:700}.ctf-wrap input[type=text],.ctf-wrap input[type=email],.ctf-wrap input[type=password],.ctf-wrap textarea{box-sizing:border-box;width:100%;border:1px solid #cfd4dc;border-radius:8px;padding:11px 12px;font:inherit;margin-top:5px}.ctf-post{display:grid;grid-template-columns:150px minmax(0,1fr);border:1px solid var(--ctf-border);background:#fff;border-radius:12px;overflow:hidden;margin:0 0 14px}.ctf-user{background:var(--ctf-bg);padding:17px;text-align:center;border-right:1px solid var(--ctf-border)}.ctf-user strong,.ctf-user small{display:block}.ctf-user small{color:var(--ctf-muted);font-size:12px;margin-top:5px}.ctf-avatar img{border-radius:50%}.ctf-post-body{padding:18px 20px;min-width:0}.ctf-post-body h1{font-size:24px;margin:0 0 8px}.ctf-meta{font-size:12px;color:var(--ctf-muted);margin-bottom:16px}.ctf-content{line-height:1.65;overflow-wrap:anywhere}.ctf-post-actions,.ctf-modbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}.ctf-modbar{border:1px solid #fde68a;background:#fffbeb;border-radius:10px;padding:10px 12px;margin-bottom:14px}.ctf-inline-form{display:inline-flex;margin:0}.ctf-action-btn{border:1px solid var(--ctf-border);background:#fff;border-radius:7px;padding:7px 10px;cursor:pointer;font-weight:600}.ctf-action-btn.is-active{background:#eff6ff;border-color:#93c5fd}.ctf-danger{color:#b91c1c;border-color:#fecaca;background:#fff7f7}.ctf-report{display:inline-block}.ctf-report summary{cursor:pointer;color:var(--ctf-muted);font-size:13px}.ctf-report form{min-width:280px}.ctf-reply,.ctf-auth,.ctf-profile,.ctf-search-page{border:1px solid var(--ctf-border);background:#fff;border-radius:12px;padding:20px}.ctf-auth{max-width:600px}.ctf-inline{display:flex;align-items:center;gap:8px;font-weight:400!important}.ctf-inline input{width:auto!important}.ctf-callout,.ctf-empty,.ctf-message{padding:14px 17px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;margin:12px 0}.ctf-error{background:#fff1f2;border-color:#fecdd3}.ctf-note{color:var(--ctf-muted);font-size:13px}.ctf-ad{margin:18px 0;text-align:center;overflow:hidden}.ctf-ad img{max-width:100%;height:auto}.ctf-pagination{padding:16px}.ctf-pagination .page-numbers{display:inline-block;padding:7px 11px;border:1px solid var(--ctf-border);border-radius:7px;text-decoration:none;margin-right:5px}.ctf-profile{text-align:center}.ctf-profile-stats{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;margin:20px 0}.ctf-profile-stats strong{display:block;font-size:20px}.ctf-badge{display:inline-block;font-size:11px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;padding:3px 7px;margin:0 6px 4px 0}@media(max-width:760px){.ctf-toolbar{align-items:flex-start;flex-direction:column}.ctf-actions,.ctf-search-mini{width:100%}.ctf-search-mini input{min-width:0;flex:1}.ctf-forum-row,.ctf-topic-row{grid-template-columns:1fr 70px 70px}.ctf-last{grid-column:1/-1;border-top:1px dashed var(--ctf-border);padding-top:9px}.ctf-post{grid-template-columns:1fr}.ctf-user{text-align:left;border-right:0;border-bottom:1px solid var(--ctf-border)}.ctf-avatar{display:inline-block;vertical-align:middle;margin-right:8px}.ctf-latest-row{flex-direction:column}.ctf-stat span{font-size:9px}.ctf-search-form{flex-direction:column}}

/* 0.3 Community layout */
.ctf-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.ctf-maincol{min-width:0}.ctf-sidebar{position:sticky;top:24px;display:grid;gap:16px}.ctf-widget{background:#fff;border:1px solid var(--ctf-border);border-radius:13px;overflow:hidden}.ctf-widget h3{font-size:15px;margin:0;padding:12px 14px;background:#111827;color:#fff}.ctf-widget>.ctf-note{padding:12px 14px;margin:0}.ctf-online-list{display:grid;padding:8px}.ctf-online-list a{display:flex;align-items:center;gap:9px;padding:8px;border-radius:8px;text-decoration:none;font-weight:700}.ctf-online-list a:hover{background:var(--ctf-bg)}.ctf-online-list img{border-radius:50%}.ctf-online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px #dcfce7;vertical-align:middle;margin-right:4px}.ctf-mini-activity{display:grid}.ctf-mini-activity a,.ctf-user-activity a{display:block;padding:11px 14px;border-top:1px solid var(--ctf-border);text-decoration:none}.ctf-mini-activity a:first-child,.ctf-user-activity a:first-child{border-top:0}.ctf-mini-activity strong,.ctf-user-activity strong{display:block}.ctf-mini-activity small,.ctf-user-activity small{display:block;color:var(--ctf-muted);margin-top:3px}.ctf-sidebar-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;padding:14px 8px;gap:6px}.ctf-sidebar-stats span{font-size:11px;color:var(--ctf-muted)}.ctf-sidebar-stats strong{display:block;color:var(--ctf-text);font-size:18px}.ctf-category>h2{display:flex;align-items:center;gap:8px}.ctf-category>h2 span{font-size:16px}.ctf-profile-card{border:1px solid var(--ctf-border);background:#fff;border-radius:14px;padding:22px;margin-bottom:18px}.ctf-profile-head{display:flex;align-items:center;gap:18px}.ctf-profile-head h2{margin:0 0 4px;font-size:28px}.ctf-profile-head p{margin:4px 0}.ctf-profile-head .ctf-avatar img{border-radius:50%;box-shadow:0 0 0 4px #f3f4f6}.ctf-user a{text-decoration:none;color:inherit}.ctf-editor-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:7px;margin-bottom:6px;padding:7px;background:#f8fafc;border:1px solid #dbe2ea;border-radius:8px}.ctf-editor-tools button{border:1px solid #d1d5db;background:#fff;border-radius:6px;padding:6px 9px;cursor:pointer;font:inherit;font-size:12px}.ctf-editor-tools button:hover{background:#eef2f7}.ctf-content blockquote{margin:14px 0;padding:10px 14px;border-left:4px solid #94a3b8;background:#f8fafc}.ctf-content code{background:#f1f5f9;border-radius:4px;padding:2px 5px}.ctf-toolbar{box-shadow:0 8px 28px rgba(17,24,39,.08)}.ctf-category,.ctf-post,.ctf-widget,.ctf-profile-card{box-shadow:0 4px 18px rgba(17,24,39,.035)}
@media(max-width:980px){.ctf-layout{grid-template-columns:1fr}.ctf-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.ctf-sidebar>.ctf-ad{grid-column:1/-1}}
@media(max-width:650px){.ctf-sidebar{grid-template-columns:1fr}.ctf-profile-head{align-items:flex-start}.ctf-profile-head .ctf-avatar img{width:82px;height:82px}.ctf-sidebar-stats{grid-template-columns:repeat(3,1fr)}}

/* 0.4 Private Nachrichten */
.ctf-pm-count{display:inline-flex!important;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff!important;font-size:11px;line-height:1;margin-left:4px}.ctf-pm-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.ctf-pm-sidebar,.ctf-pm-main{background:#fff;border:1px solid var(--ctf-border);border-radius:13px;overflow:hidden}.ctf-pm-sidebar>h2{font-size:18px;margin:0;padding:15px 16px;background:#111827;color:#fff}.ctf-pm-conversations{display:grid}.ctf-pm-conversations>a{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;border-top:1px solid var(--ctf-border);text-decoration:none;color:inherit}.ctf-pm-conversations>a:hover{background:#f8fafc}.ctf-pm-conversations img,.ctf-pm-head img,.ctf-ignored img{border-radius:50%}.ctf-pm-conversations strong,.ctf-pm-conversations small{display:block}.ctf-pm-conversations small{color:var(--ctf-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.ctf-pm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--ctf-border);background:#f8fafc}.ctf-pm-head>div{display:flex;align-items:center;gap:11px}.ctf-pm-head h2{font-size:19px;margin:0 0 2px}.ctf-pm-head a{font-size:12px}.ctf-pm-thread{padding:18px;display:grid;gap:10px;max-height:620px;overflow:auto;background:#f8fafc}.ctf-pm-message{display:flex}.ctf-pm-message.is-mine{justify-content:flex-end}.ctf-pm-bubble{max-width:min(76%,700px);padding:11px 13px;border:1px solid #dbe2ea;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(17,24,39,.04)}.ctf-pm-message.is-mine .ctf-pm-bubble{background:#eff6ff;border-color:#bfdbfe}.ctf-pm-bubble p:first-child{margin-top:0}.ctf-pm-bubble p:last-child{margin-bottom:0}.ctf-pm-bubble>small{display:block;color:var(--ctf-muted);font-size:11px;margin-top:7px}.ctf-pm-report{margin-top:6px}.ctf-pm-report summary{font-size:11px;color:var(--ctf-muted);cursor:pointer}.ctf-pm-report form{display:grid;gap:7px;margin-top:7px}.ctf-pm-report textarea{min-width:250px}.ctf-pm-compose{padding:16px;border-top:1px solid var(--ctf-border);display:grid;gap:10px}.ctf-pm-empty{padding:28px}.ctf-profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.ctf-ignored{border-top:1px solid var(--ctf-border);padding:12px 14px}.ctf-ignored summary{font-weight:700;cursor:pointer}.ctf-ignored>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 0;border-top:1px solid var(--ctf-border)}.ctf-ignored>div span{display:flex;align-items:center;gap:8px;font-weight:700}
@media(max-width:800px){.ctf-pm-layout{grid-template-columns:1fr}.ctf-pm-thread{max-height:none}.ctf-pm-bubble{max-width:90%}}


/* 0.5.0 – Moderationsfreigabe für neue Mitglieder */
.ctf-post-pending{border-style:dashed!important;position:relative}
.ctf-censored-avatar{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(45deg,#ddd,#ddd 6px,#aaa 6px,#aaa 12px);font-weight:800;letter-spacing:2px;color:#555;overflow:hidden}
.ctf-post:not(:first-child) .ctf-censored-avatar{width:60px;height:60px}
.ctf-censored-note,.ctf-review-banner{padding:10px 12px;margin:0 0 12px;border-radius:8px;background:#f6f7f7;border:1px solid #dcdcde;font-weight:600}
.ctf-censored-text{filter:blur(1.6px);user-select:none;letter-spacing:.08em;line-height:1.8;word-break:break-word;opacity:.72}
.ctf-review-banner{background:#fff8e5;border-color:#dba617}
.ctf-action-btn.ctf-approve{background:#16803c;color:#fff;border-color:#16803c;font-weight:700}
.ctf-action-btn.ctf-approve:hover{background:#0f6b31;color:#fff}


/* 0.6.0: Themenhinweise, Themenoptionen und nicht klickbare Links */
.ctf-topic-notice{margin:16px 0;padding:14px 16px;border:1px solid #d9b650;border-radius:10px;background:#fff8d8}
.ctf-topic-notice strong{display:block;margin-bottom:4px}
.ctf-topic-options{margin:12px 0;padding:10px 14px;border:1px solid #ddd;border-radius:10px;background:#fff}
.ctf-topic-options summary{cursor:pointer;font-weight:700}
.ctf-topic-options form{margin-top:12px}
.ctf-topic-options textarea{width:100%;box-sizing:border-box}
.ctf-check{display:block;margin:10px 0}
.ctf-plain-link{overflow-wrap:anywhere;text-decoration:none;cursor:text}

/* 0.6.4: vereinfachte Forenübersicht */
.ctf-forum-row{grid-template-columns:minmax(0,1fr) minmax(220px,360px);gap:24px}
.ctf-last{min-width:0}
.ctf-last-topic{display:block;font-weight:800;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctf-last-user{font-weight:700;text-decoration:none}
.ctf-no-posts{color:var(--ctf-muted);font-weight:600}
@media(max-width:760px){.ctf-forum-row{grid-template-columns:1fr}.ctf-last{grid-column:auto;border-top:1px dashed var(--ctf-border);padding-top:10px}}

/* 0.6.6: Forum volle Breite, Community-Widgets am Seitenende */
.ctf-maincol{width:100%;min-width:0}
.ctf-community-bottom{margin-top:22px;width:100%}
.ctf-community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.ctf-community-grid>.ctf-widget{height:100%}
.ctf-community-grid .ctf-mini-activity{max-height:280px;overflow:auto}
.ctf-community-bottom>.ctf-ad{margin-top:18px}
.ctf-last-topic{display:block;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.ctf-last-user{text-decoration:underline;text-underline-offset:2px}
@media(max-width:900px){.ctf-community-grid{grid-template-columns:1fr}}

/* 0.6.7: SEO-Forum-URLs & separate Themenerstellung */
.ctf-new-topic-bar{display:flex;justify-content:flex-end;padding:14px 17px;border-bottom:1px solid var(--ctf-border)}
.ctf-topic-create{background:#fff;border:1px solid var(--ctf-border);border-radius:14px;padding:26px 28px;overflow:hidden}
.ctf-topic-create h1{font-size:28px;margin:0 0 12px}
.ctf-create-rubric{margin:0 0 24px;color:var(--ctf-muted)}
.ctf-topic-create-form{display:grid;gap:18px}
.ctf-create-label{display:grid;gap:7px;font-weight:700}
.ctf-create-title{font-size:16px!important;padding:14px 16px!important;min-height:50px}
.ctf-rich-editor{border:1px solid var(--ctf-border);border-radius:12px;overflow:hidden;background:#fff}
.ctf-rich-editor .wp-editor-wrap{margin:0}
.ctf-rich-editor .wp-editor-container{border:0!important}
.ctf-rich-editor .mce-toolbar-grp{border-bottom:1px solid var(--ctf-border)!important;background:#f8fafc!important}
.ctf-rich-editor iframe{min-height:330px!important}
.ctf-create-comments{padding:4px 0}
.ctf-create-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
.ctf-mod-only{border:1px solid #fde68a;background:#fffbeb;padding:14px;border-radius:10px}
.ctf-mod-only>span,.ctf-mod-label{font-size:11px;color:#92400e;font-weight:700;margin-left:6px}
.ctf-forum-picker{display:grid;gap:10px;margin-top:18px}
.ctf-forum-picker a{display:block;border:1px solid var(--ctf-border);border-radius:10px;padding:13px 15px;text-decoration:none;font-weight:800}
.ctf-forum-picker a:hover{background:var(--ctf-bg)}
@media(max-width:760px){.ctf-topic-create{padding:18px 16px}.ctf-create-actions{flex-direction:column-reverse}.ctf-create-actions .ctf-btn{text-align:center}}

/* 0.6.8: Rich-Editor auch für Antworten, Emojis & YouTube */
.ctf-rich-reply{padding:22px}
.ctf-rich-reply h3{font-size:26px;margin:0 0 18px}
.ctf-rich-reply form{display:grid;gap:14px}
.ctf-reply-actions{display:flex;justify-content:flex-end}
.ctf-rich-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ctf-rich-tools button,.ctf-emoji-picker>summary{border:1px solid var(--ctf-border);background:#fff;border-radius:8px;padding:8px 11px;font-weight:700;cursor:pointer;list-style:none}
.ctf-emoji-picker{position:relative}
.ctf-emoji-picker>summary::-webkit-details-marker{display:none}
.ctf-emoji-grid{position:absolute;z-index:40;left:0;top:42px;width:260px;display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:10px;background:#fff;border:1px solid var(--ctf-border);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.ctf-emoji-btn{font-size:20px!important;padding:6px!important;font-weight:400!important}
.ctf-youtube-btn{white-space:nowrap}
.ctf-youtube-embed{position:relative;width:100%;max-width:760px;aspect-ratio:16/9;margin:16px 0;background:#000;border-radius:10px;overflow:hidden}
.ctf-youtube-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:760px){.ctf-emoji-grid{width:220px;grid-template-columns:repeat(5,1fr)}.ctf-reply-actions .ctf-btn{width:100%;text-align:center}}

/* 0.6.11: Emoji & YouTube befinden sich direkt in der TinyMCE-Toolbar */
.ctf-rich-tools{display:none!important}

/* 0.6.13: Editor-Toolbar Popups */
.ctf-mce-group{display:inline-block!important;vertical-align:top!important}
.ctf-mce-btn{display:inline-block!important;margin:0!important;vertical-align:top!important}
.ctf-mce-btn>button{width:34px!important;height:30px!important;padding:4px 7px!important;line-height:20px!important;text-align:center!important}
.ctf-toolbar-icon{display:inline-block;font-size:15px;line-height:20px;vertical-align:middle}
.ctf-youtube-icon{font-size:14px}
.ctf-editor-popup{position:absolute;z-index:10000;top:100%;right:54px;margin-top:4px;background:#fff;border:1px solid #cfd4dc;border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.2);color:#1f2937;font-family:inherit}
.ctf-emoji-popup{width:270px;display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:10px}
.ctf-popup-emoji{appearance:none;border:0;background:transparent;border-radius:7px;padding:7px;font-size:21px;cursor:pointer;line-height:1}
.ctf-popup-emoji:hover{background:#f1f5f9}
.ctf-youtube-popup{width:330px;padding:14px;display:grid;gap:9px}
.ctf-youtube-popup strong{font-size:14px}
.ctf-youtube-popup small{color:#6b7280;font-size:11px}
.ctf-youtube-input{box-sizing:border-box;width:100%;border:1px solid #cfd4dc;border-radius:7px;padding:9px 10px;font:inherit}
.ctf-youtube-input.ctf-input-error{border-color:#dc2626;box-shadow:0 0 0 1px #dc2626}
.ctf-youtube-popup-actions{display:flex;justify-content:flex-end;gap:7px}
.ctf-youtube-popup-actions button{appearance:none;border:1px solid #cfd4dc;border-radius:7px;background:#fff;padding:7px 10px;font-weight:700;cursor:pointer}
.ctf-youtube-popup-actions .ctf-popup-insert{background:#2563eb;border-color:#2563eb;color:#fff}
@media(max-width:600px){.ctf-editor-popup{right:4px;max-width:calc(100vw - 40px)}.ctf-emoji-popup{width:230px;grid-template-columns:repeat(5,1fr)}.ctf-youtube-popup{width:290px}}

/* 0.6.14: Beiträge 10 Minuten editierbar, Mods/Admins immer */
.ctf-edit-post-form{display:grid;gap:14px}
.ctf-edit-post-form .wp-editor-wrap{border:1px solid var(--ctf-border);border-radius:10px;overflow:hidden}
.ctf-edit-actions{display:flex;justify-content:flex-end;gap:10px}
.ctf-edit-btn{text-decoration:none!important}
@media(max-width:760px){.ctf-edit-actions{flex-direction:column-reverse}.ctf-edit-actions .ctf-btn{text-align:center}}

/* 0.6.15: Reaktionen & GambleBase-nahe Forenübersicht */
.ctf-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ctf-reaction-form{display:inline-flex}
.ctf-reaction-btn{border:1px solid var(--ctf-border);background:#fff;border-radius:999px;padding:6px 9px;cursor:pointer;font-size:15px;line-height:1}
.ctf-reaction-btn span{font-size:12px;font-weight:800;margin-left:2px}
.ctf-reaction-btn.is-active{background:#eff6ff;border-color:#93c5fd;box-shadow:0 0 0 1px #bfdbfe inset}
.ctf-reaction-btn.is-static{display:inline-flex}
.ctf-reaction-details{position:relative}
.ctf-reaction-details>summary{cursor:pointer;font-size:12px;color:var(--ctf-muted);list-style:none}
.ctf-reaction-details>summary::-webkit-details-marker{display:none}
.ctf-reaction-users{position:absolute;z-index:30;left:0;top:26px;min-width:220px;background:#fff;border:1px solid var(--ctf-border);border-radius:10px;padding:8px;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.ctf-reaction-users a{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:7px;text-decoration:none}
.ctf-reaction-users a:hover{background:var(--ctf-bg)}
.ctf-reaction-users img{border-radius:50%}

.ctf-forum-row-rich{grid-template-columns:minmax(0,1fr) 210px minmax(250px,340px)!important}
.ctf-forum-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.ctf-forum-stats span{font-size:11px;color:var(--ctf-muted)}
.ctf-forum-stats strong{display:block;font-size:15px;color:var(--ctf-text)}
.ctf-last-entry{display:flex;align-items:center;gap:10px;min-width:0}
.ctf-last-user{display:flex;align-items:center;text-decoration:none!important}
.ctf-last-user img{border-radius:50%;display:block}
.ctf-last-user span{display:none}
.ctf-last-copy{min-width:0}
.ctf-last-topic{text-decoration:none!important;color:var(--ctf-accent)!important;font-weight:800;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctf-last-topic:hover{text-decoration:underline!important;text-underline-offset:3px}
.ctf-last-copy small{display:block;color:var(--ctf-muted);margin-top:3px}
.ctf-forum-title{text-decoration:none!important;color:var(--ctf-accent)!important}
.ctf-forum-title:hover{text-decoration:underline!important;text-underline-offset:3px}
@media(max-width:900px){.ctf-forum-row-rich{grid-template-columns:1fr!important}.ctf-forum-stats{max-width:360px}.ctf-last{grid-column:auto}}

/* 0.6.17: Aktuelle Themen kompakt, zweispaltig */
.ctf-current-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 38px;padding:10px 18px 18px}
.ctf-current-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(145px,190px);align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--ctf-border)}
.ctf-current-topic{min-width:0}
.ctf-topic-badge{display:inline-block;margin-right:8px;padding:3px 6px;border-radius:2px;background:#a66d22;color:#fff;font-size:10px;font-weight:800;vertical-align:2px}
.ctf-current-title{text-decoration:none!important;font-weight:800;color:var(--ctf-text)!important}
.ctf-current-title:hover{color:var(--ctf-accent)!important;text-decoration:underline!important;text-underline-offset:3px}
.ctf-current-topic>small{display:block;margin-top:4px;color:var(--ctf-muted)}
.ctf-current-counts{display:flex;gap:10px;color:var(--ctf-muted);font-size:11px;white-space:nowrap}
.ctf-current-counts strong{color:var(--ctf-text);font-size:12px}
.ctf-current-last{display:flex;justify-content:flex-end;align-items:center;gap:8px;text-align:right;min-width:0}
.ctf-current-avatar{text-decoration:none!important;flex:0 0 auto}
.ctf-current-avatar img{display:block;border-radius:50%}
.ctf-current-avatar-masked{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e5e7eb}
.ctf-current-user{text-decoration:none!important;font-weight:800;color:var(--ctf-text)!important}
.ctf-current-user:hover{color:var(--ctf-accent)!important}
.ctf-current-last small{display:block;color:var(--ctf-muted);white-space:nowrap}
@media(max-width:1100px){.ctf-current-topics{grid-template-columns:1fr}}
@media(max-width:700px){.ctf-current-row{grid-template-columns:1fr}.ctf-current-counts{justify-content:flex-start}.ctf-current-last{justify-content:flex-start;text-align:left}}

/* 0.6.20: persönlicher Lesestatus */
.ctf-read-badge{display:inline-block;margin-right:8px;padding:3px 6px;border-radius:2px;font-size:10px;font-weight:900;vertical-align:2px;letter-spacing:.2px}
.ctf-read-new{background:#b42318;color:#fff}
.ctf-read-update{background:#a66d22;color:#fff}
.ctf-read-read{background:#4b5563;color:#fff}

/* 0.6.21: Aktuelle Themen näher am kompakten Forum-Layout */
.ctf-current-topics-compact{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 40px;
    padding:12px 18px 18px;
}
.ctf-current-row-compact{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(130px,190px);
    gap:14px;
    align-items:center;
    padding:9px 0;
    border-bottom:1px solid var(--ctf-border);
}
.ctf-current-left{min-width:0}
.ctf-current-line{
    display:flex;
    align-items:center;
    min-width:0;
    gap:7px;
}
.ctf-current-line .ctf-read-badge{
    flex:0 0 auto;
    margin-right:0;
}
.ctf-current-pin{
    flex:0 0 auto;
    font-size:14px;
    color:var(--ctf-muted);
}
.ctf-current-row-compact .ctf-current-title{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
    text-decoration:none!important;
    color:var(--ctf-text)!important;
}
.ctf-current-row-compact .ctf-current-title:hover{
    color:var(--ctf-accent)!important;
    text-decoration:underline!important;
    text-underline-offset:3px;
}
.ctf-current-meta{
    display:block;
    margin-top:3px;
    color:var(--ctf-muted);
    font-size:11px;
}
.ctf-current-right{
    min-width:0;
    text-align:right;
    line-height:1.25;
}
.ctf-current-right .ctf-current-user{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
    text-decoration:none!important;
    color:var(--ctf-text)!important;
}
.ctf-current-right .ctf-current-user:hover{
    color:var(--ctf-accent)!important;
}
.ctf-current-right small{
    display:block;
    margin-top:2px;
    color:var(--ctf-muted);
    white-space:nowrap;
    font-size:11px;
}
@media(max-width:1050px){
    .ctf-current-topics-compact{grid-template-columns:1fr}
}
@media(max-width:620px){
    .ctf-current-row-compact{grid-template-columns:1fr;gap:5px}
    .ctf-current-right{text-align:left}
}

/* 0.6.22: Registrierung und Auth-Formulare sauber untereinander */
.ctf-auth{
    max-width:680px;
}
.ctf-auth form{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
}
.ctf-auth form>label:not(.ctf-inline){
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    align-items:start;
    font-weight:700;
}
.ctf-auth form>label:not(.ctf-inline) input{
    display:block;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    min-height:48px;
}
.ctf-auth .ctf-inline{
    display:flex!important;
    align-items:flex-start!important;
    gap:10px!important;
    font-weight:400!important;
    line-height:1.45;
    margin:0;
}
.ctf-auth .ctf-inline input[type="checkbox"]{
    width:auto!important;
    min-width:16px;
    margin:3px 0 0!important;
    flex:0 0 auto;
}
.ctf-auth .ctf-inline a{
    font-weight:600;
}
.ctf-auth form>.ctf-btn{
    width:100%;
    text-align:center;
    margin-top:2px;
}
@media(max-width:640px){
    .ctf-auth{padding:18px 16px}
    .ctf-auth h2{font-size:28px}
}

/* 0.6.23: Login explizit im gleichen vertikalen Layout wie Registrierung */
.ctf-login-form,
.ctf-login form,
form.ctf-login-form{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:18px!important;
}
.ctf-login-form>label,
.ctf-login form>label{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    font-weight:700;
}
.ctf-login-form>label input:not([type="checkbox"]),
.ctf-login form>label input:not([type="checkbox"]){
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-height:48px;
    margin:0!important;
}
.ctf-login-form .ctf-inline,
.ctf-login form .ctf-inline{
    display:flex!important;
    align-items:flex-start!important;
    gap:10px!important;
}
.ctf-login-form .ctf-btn,
.ctf-login form .ctf-btn{
    width:100%!important;
    text-align:center;
}

/* 0.6.24: Community-Profile */
.ctf-profile-breadcrumb{margin:0 0 14px;color:var(--ctf-muted);font-size:13px}
.ctf-profile-breadcrumb a{text-decoration:none}
.ctf-profile-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;align-items:start}
.ctf-profile-side{display:grid;gap:16px}
.ctf-profile-identity,.ctf-profile-panel{background:#fff;border:1px solid var(--ctf-border);border-radius:12px;padding:20px}
.ctf-profile-identity{text-align:center}
.ctf-profile-big-avatar img{width:118px;height:118px;object-fit:cover;border-radius:50%;display:block;margin:0 auto}
.ctf-profile-rank{display:inline-block;margin-top:-4px;padding:4px 22px;background:#f0d7b8;font-size:12px;font-weight:800}
.ctf-profile-identity h2{margin:18px 0 12px}
.ctf-profile-identity dl{margin:24px 0 0;text-align:left}
.ctf-profile-identity dl>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0}
.ctf-profile-identity dt{color:var(--ctf-muted);font-weight:700}.ctf-profile-identity dd{margin:0;font-weight:700}
.ctf-profile-main{display:grid;gap:14px}
.ctf-profile-panel h2{font-size:20px;margin:0 0 16px;padding-bottom:8px;border-bottom:1px solid var(--ctf-border)}
.ctf-profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ctf-profile-reaction-counts{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.ctf-profile-reaction-counts span{background:var(--ctf-bg);border:1px solid var(--ctf-border);border-radius:6px;padding:7px 10px}
.ctf-profile-feed article{padding:11px 0;border-bottom:1px solid var(--ctf-border)}
.ctf-profile-feed article:last-child{border-bottom:0}
.ctf-profile-feed a{text-decoration:none}.ctf-profile-feed a:hover{text-decoration:underline}
.ctf-profile-feed p{margin:5px 0;line-height:1.45}.ctf-profile-feed small{color:var(--ctf-muted)}
.ctf-avatar-upload{margin-top:18px;text-align:left;border-top:1px solid var(--ctf-border);padding-top:14px}
.ctf-avatar-upload summary{cursor:pointer;font-weight:800}
.ctf-avatar-upload form{display:grid;gap:10px;margin-top:12px}.ctf-avatar-upload small{color:var(--ctf-muted)}
.ctf-avatar-review{margin-top:16px;padding:12px;border:1px solid #fde68a;background:#fffbeb;border-radius:10px;text-align:center}
.ctf-avatar-review img{border-radius:10px;margin:10px auto;display:block;object-fit:cover}
.ctf-avatar-review form{display:flex;justify-content:center;gap:8px}
.ctf-custom-avatar{object-fit:cover;border-radius:50%;vertical-align:middle}
@media(max-width:900px){.ctf-profile-layout{grid-template-columns:1fr}.ctf-profile-columns{grid-template-columns:1fr}}

/* 0.6.25: dynamisches Avatar-Menü + Profileinstellungen */
.ctf-nav-user-menu{position:relative!important}
.ctf-nav-user-trigger{appearance:none;border:0;background:transparent;padding:4px 8px;cursor:pointer;position:relative;display:flex;align-items:center}
.ctf-nav-user-trigger .ctf-nav-avatar-img{width:34px;height:34px;border-radius:50%;object-fit:cover;display:block}
.ctf-nav-unread{position:absolute;right:2px;top:0;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;line-height:16px;text-align:center;font-weight:800}
.ctf-nav-user-dropdown{display:none;position:absolute;right:0;top:100%;z-index:99999;min-width:200px;background:#111;border:1px solid #333;box-shadow:0 12px 30px rgba(0,0,0,.35);padding:4px 0}
.ctf-nav-user-menu.is-open>.ctf-nav-user-dropdown,.ctf-nav-user-menu:hover>.ctf-nav-user-dropdown{display:block}
.ctf-nav-user-dropdown a{display:flex!important;align-items:center;gap:10px;padding:11px 14px!important;color:#fff!important;text-decoration:none!important;border-bottom:1px solid #242424;white-space:nowrap}
.ctf-nav-user-dropdown a:last-child{border-bottom:0}
.ctf-nav-user-dropdown a:hover{background:#202020!important}
.ctf-nav-user-dropdown a span{width:20px;text-align:center}
.ctf-nav-user-dropdown b{margin-left:auto;background:#dc2626;color:#fff;border-radius:999px;padding:2px 6px;font-size:10px}
.ctf-profile-settings-panel{margin-top:18px;padding-top:16px;border-top:1px solid var(--ctf-border);text-align:left}
.ctf-profile-settings-panel h3{margin:0 0 12px}
.ctf-profile-settings-panel form{display:grid;gap:12px}
.ctf-setting-check{display:flex;gap:9px;align-items:flex-start;font-weight:400!important}
.ctf-setting-check input{margin-top:4px}
.ctf-setting-check span{display:grid;gap:3px}
.ctf-setting-check small{color:var(--ctf-muted);font-weight:400}

/* 0.6.26: Header-Menü Ausrichtung Desktop/Mobile + Login/Registrieren für Gäste */
.ctf-nav-user-menu{
    display:flex!important;
    align-items:center!important;
    align-self:center!important;
    line-height:1!important;
}
.ctf-nav-user-trigger{
    margin-top:5px!important;
    transform:none!important;
    top:auto!important;
    bottom:auto!important;
}
.ctf-nav-user-trigger .ctf-nav-avatar-img{
    display:block!important;
    margin:0!important;
    vertical-align:middle!important;
}
.ctf-nav-auth-link>a{
    font-weight:700!important;
}
.ctf-nav-register>a{
    display:inline-block!important;
    padding-left:12px!important;
    padding-right:12px!important;
}

/* Mobile: Avatar nicht über Theme-Icons/Hamburger legen, sondern normal im Menüfluss halten */
@media(max-width:768px){
    .ctf-nav-user-menu{
        position:relative!important;
        inset:auto!important;
        right:auto!important;
        left:auto!important;
        top:auto!important;
        bottom:auto!important;
        float:none!important;
        margin:0!important;
        padding:0!important;
        z-index:auto!important;
        width:auto!important;
        height:auto!important;
        display:flex!important;
        align-items:center!important;
        justify-content:flex-start!important;
    }
    .ctf-nav-user-trigger{
        position:relative!important;
        inset:auto!important;
        margin:0!important;
        padding:8px 12px!important;
        transform:none!important;
    }
    .ctf-nav-user-trigger .ctf-nav-avatar-img{
        width:30px!important;
        height:30px!important;
    }
    .ctf-nav-user-dropdown{
        position:absolute!important;
        left:0!important;
        right:auto!important;
        top:100%!important;
        min-width:210px!important;
    }
    .ctf-nav-auth-link{
        position:relative!important;
        inset:auto!important;
        float:none!important;
    }
}

/* 0.6.27: Registrierungslink unter dem Login */
.ctf-auth-register-hint{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid var(--ctf-border);
    text-align:center;
    color:var(--ctf-muted);
}
.ctf-auth-register-hint a{
    font-weight:800;
    text-decoration:none;
}
.ctf-auth-register-hint a:hover{
    text-decoration:underline;
}

/* 0.6.28: Mobiles Avatar-Menü als eingebettetes Accordion im Offcanvas-Menü */
@media(max-width:768px){
    .ctf-nav-user-menu{
        display:block!important;
        width:100%!important;
        position:relative!important;
        overflow:visible!important;
    }

    .ctf-nav-user-trigger{
        display:flex!important;
        align-items:center!important;
        justify-content:flex-start!important;
        width:100%!important;
        min-height:48px!important;
        padding:8px 12px!important;
        border:0!important;
        background:transparent!important;
        position:relative!important;
        z-index:1!important;
    }

    .ctf-nav-user-trigger .ctf-nav-avatar-img{
        width:32px!important;
        height:32px!important;
        margin:0!important;
    }

    .ctf-nav-user-dropdown{
        position:static!important;
        left:auto!important;
        right:auto!important;
        top:auto!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        border-left:0!important;
        border-right:0!important;
        box-shadow:none!important;
        background:#111!important;
        overflow:hidden!important;
        display:none!important;
    }

    .ctf-nav-user-menu.is-open>.ctf-nav-user-dropdown{
        display:block!important;
    }

    /* Hover soll auf Touch-Geräten nicht dauerhaft öffnen */
    .ctf-nav-user-menu:hover>.ctf-nav-user-dropdown{
        display:none!important;
    }
    .ctf-nav-user-menu.is-open:hover>.ctf-nav-user-dropdown{
        display:block!important;
    }

    .ctf-nav-user-dropdown a{
        width:100%!important;
        box-sizing:border-box!important;
        padding:11px 16px 11px 20px!important;
        background:#111!important;
        border-bottom:1px solid #292929!important;
    }

    .ctf-nav-user-dropdown a:hover{
        background:#1d1d1d!important;
    }
}

/* 0.6.29: reduzierte Forum-Kopfzeile mit permanenter Suche */
.ctf-forum-header{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:20px 22px;border-radius:12px}
.ctf-forum-header-copy{min-width:230px;display:grid;gap:4px}
.ctf-forum-header-copy strong{font-size:22px;line-height:1.2}
.ctf-forum-header-copy span{color:rgba(255,255,255,.82);font-size:14px}
.ctf-forum-header-search{display:flex!important;align-items:stretch!important;gap:8px!important;margin:0!important;width:min(520px,58%)}
.ctf-forum-header-search input[type="search"]{flex:1 1 auto;min-width:0;height:46px;margin:0!important;border-radius:8px!important;padding:0 15px!important}
.ctf-forum-header-search .ctf-btn{flex:0 0 auto;min-width:92px;height:46px;margin:0!important}
@media(max-width:760px){
  .ctf-forum-header{align-items:stretch;flex-direction:column;gap:16px;padding:18px 16px}
  .ctf-forum-header-copy{min-width:0}
  .ctf-forum-header-copy strong{font-size:20px}
  .ctf-forum-header-search{width:100%!important}
}
@media(max-width:440px){
  .ctf-forum-header-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto}
  .ctf-forum-header-search .ctf-btn{min-width:78px;padding-left:12px!important;padding-right:12px!important}
}

/* 0.6.34: Forum-Einstellungen */
.ctf-settings-page{max-width:980px}
.ctf-settings-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.ctf-settings-head img{width:70px;height:70px;border-radius:50%;object-fit:cover}
.ctf-settings-head>div{display:grid;gap:4px}.ctf-settings-head strong{font-size:18px}.ctf-settings-head a{text-decoration:none}
.ctf-settings-card{background:#fff;border:1px solid var(--ctf-border);border-radius:14px;padding:24px}
.ctf-settings-card h1{margin:0 0 6px;font-size:28px}.ctf-settings-card>p{margin:0 0 24px;color:var(--ctf-muted)}
.ctf-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 34px}
.ctf-setting-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;cursor:pointer}
.ctf-setting-option>div{display:grid;gap:3px}.ctf-setting-option>div>strong{font-size:16px}.ctf-setting-option>div>span{font-size:13px;color:var(--ctf-muted);font-weight:400}
.ctf-setting-option>b{grid-column:1/-1;font-size:14px;font-weight:600}
.ctf-switch{position:relative;width:50px;height:28px;display:inline-block}
.ctf-switch input{position:absolute;opacity:0;pointer-events:none}
.ctf-switch i{position:absolute;inset:0;border-radius:999px;background:#c9cdd2;transition:.2s}
.ctf-switch i:after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.ctf-switch input:checked+i{background:#2f8f44}.ctf-switch input:checked+i:after{transform:translateX(22px)}
.ctf-settings-actions{display:flex;justify-content:flex-end;margin-top:28px}
.ctf-profile-settings-link{margin-top:16px}
@media(max-width:700px){.ctf-setting-grid{grid-template-columns:1fr}.ctf-settings-card{padding:18px 16px}.ctf-settings-actions .ctf-btn{width:100%}}


/* 0.6.41: EINZIGER Darkmode – ausschließlich CT-Forum, Werbung ausgenommen */
.ctf-wrap.ctf-forum-dark{
    --ctfd-bg:#080b10;
    --ctfd-surface:#101722;
    --ctfd-surface-2:#151e2a;
    --ctfd-surface-3:#1b2634;
    --ctfd-border:#2d3948;
    --ctfd-text:#f3f6fa;
    --ctfd-muted:#a8b3c2;
    --ctfd-link:#77b1ff;
    background:var(--ctfd-bg)!important;
    color:var(--ctfd-text)!important;
}

/* Grundflächen des Forums – aber NIE Werbung */
.ctf-wrap.ctf-forum-dark :is(
    .ctf-toolbar,
    .ctf-category,
    .ctf-forum-row,
    .ctf-current-row,
    .ctf-topic-create,
    .ctf-post,
    .ctf-post-body,
    .ctf-user,
    .ctf-reply,
    .ctf-rich-editor,
    .ctf-topic-options,
    .ctf-profile-identity,
    .ctf-profile-panel,
    .ctf-settings-card,
    .ctf-widget,
    .ctf-widget-body,
    .ctf-community-bottom,
    .ctf-community-bottom > *,
    .ctf-online,
    .ctf-activity,
    .ctf-stats,
    .ctf-callout,
    .ctf-empty,
    .ctf-message,
    .ctf-breadcrumb
):not(.ctf-ad):not(.ctf-ad *){
    background-color:var(--ctfd-surface)!important;
    color:var(--ctfd-text)!important;
    border-color:var(--ctfd-border)!important;
}

/* Forum-Kopfzeilen */
.ctf-wrap.ctf-forum-dark :is(
    .ctf-category > h2,
    .ctf-widget > h3,
    .ctf-toolbar,
    .ctf-forum-header
):not(.ctf-ad):not(.ctf-ad *){
    background:#111827!important;
    color:#fff!important;
    border-color:var(--ctfd-border)!important;
}

/* Beitrag komplett dunkel: linke User-Spalte + Inhalt */
.ctf-wrap.ctf-forum-dark .ctf-post{
    background:var(--ctfd-surface)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-post .ctf-user{
    background:var(--ctfd-surface-2)!important;
    color:var(--ctfd-text)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-post .ctf-post-body,
.ctf-wrap.ctf-forum-dark .ctf-post .ctf-content{
    background:var(--ctfd-surface)!important;
    color:var(--ctfd-text)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-post :is(h1,h2,h3,h4,p,strong,b,span,li):not(.ctf-ad *){
    color:var(--ctfd-text)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-post :is(small,.ctf-meta):not(.ctf-ad *){
    color:var(--ctfd-muted)!important;
}

/* Antwortbereich + WordPress/TinyMCE Editor */
.ctf-wrap.ctf-forum-dark .ctf-reply,
.ctf-wrap.ctf-forum-dark .ctf-rich-reply{
    background:var(--ctfd-surface)!important;
    color:var(--ctfd-text)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-rich-editor,
.ctf-wrap.ctf-forum-dark .wp-editor-wrap,
.ctf-wrap.ctf-forum-dark .wp-editor-container,
.ctf-wrap.ctf-forum-dark .mce-container,
.ctf-wrap.ctf-forum-dark .mce-panel,
.ctf-wrap.ctf-forum-dark .mce-toolbar-grp,
.ctf-wrap.ctf-forum-dark .mce-statusbar,
.ctf-wrap.ctf-forum-dark .quicktags-toolbar{
    background:#0e141d!important;
    color:var(--ctfd-text)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .mce-btn{
    background:var(--ctfd-surface-2)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .mce-btn button,
.ctf-wrap.ctf-forum-dark .mce-btn button i,
.ctf-wrap.ctf-forum-dark .mce-ico{
    color:#e7edf5!important;
}
.ctf-wrap.ctf-forum-dark textarea,
.ctf-wrap.ctf-forum-dark input:not([type=checkbox]):not([type=radio]),
.ctf-wrap.ctf-forum-dark select{
    background:#0b1119!important;
    color:var(--ctfd-text)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark textarea::placeholder,
.ctf-wrap.ctf-forum-dark input::placeholder{
    color:#8491a2!important;
}

/* TinyMCE-Inhalt sitzt in einem iframe; zumindest iframe selbst dunkel,
   und Textarea-Fallback ebenfalls. */
.ctf-wrap.ctf-forum-dark .mce-edit-area,
.ctf-wrap.ctf-forum-dark .mce-edit-area iframe{
    background:#0b1119!important;
}

/* Community Widgets */
.ctf-wrap.ctf-forum-dark :is(
    .ctf-online-list,
    .ctf-activity-list,
    .ctf-stats-inner,
    .ctf-stats-grid
){
    background:var(--ctfd-surface)!important;
    color:var(--ctfd-text)!important;
}
.ctf-wrap.ctf-forum-dark :is(
    .ctf-online-list,
    .ctf-activity-list,
    .ctf-stats-inner,
    .ctf-stats-grid
) :is(div,p,span,strong,b,small,li):not(.ctf-ad *){
    color:var(--ctfd-text)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-activity-list > *,
.ctf-wrap.ctf-forum-dark .ctf-online-list > *{
    border-color:var(--ctfd-border)!important;
}

/* Profile / Einstellungen */
.ctf-wrap.ctf-forum-dark .ctf-profile-feed article,
.ctf-wrap.ctf-forum-dark .ctf-profile-identity dl > div{
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark :is(.ctf-note,.ctf-desc,.ctf-current-meta,.ctf-last-copy small){
    color:var(--ctfd-muted)!important;
}
.ctf-wrap.ctf-forum-dark a:not(.ctf-btn):not(.ctf-ad *){
    color:var(--ctfd-link)!important;
}

/* Tabellen */
.ctf-wrap.ctf-forum-dark :is(table,thead,tbody,tr,td,th):not(.ctf-ad *){
    border-color:var(--ctfd-border)!important;
    color:var(--ctfd-text)!important;
}
.ctf-wrap.ctf-forum-dark th:not(.ctf-ad *){
    background:var(--ctfd-surface-2)!important;
}

/*
 * WERBUNG / SHORTCODES:
 * Absolut keine Farb-, Hintergrund-, Text- oder Border-Regeln des Forum-Darkmodes.
 * Der Wrapper bekommt nicht einmal einen dunklen Hintergrund.
 */
.ctf-wrap.ctf-forum-dark .ctf-ad,
.ctf-wrap.ctf-forum-dark .ctf-dark-exempt{
    background:transparent!important;
    border:0!important;
    filter:none!important;
}

/* Medien nie verändern */
.ctf-wrap.ctf-forum-dark img,
.ctf-wrap.ctf-forum-dark video,
.ctf-wrap.ctf-forum-dark iframe,
.ctf-wrap.ctf-forum-dark svg{
    filter:none!important;
}

/* 0.6.42 — Editor-Schreibfläche dunkel; Werbung komplett vom Darkmode entkoppelt */
.ctf-wrap.ctf-forum-dark .mce-edit-area,
.ctf-wrap.ctf-forum-dark .mce-edit-area iframe{
    background:#0b1017!important;
}
.ctf-wrap.ctf-forum-dark textarea.wp-editor-area{
    background:#0b1017!important;
    color:#f4f7fb!important;
}

/* Werbeplätze/Shortcodes: keine Invertierung, keine Forum-Farben. */
.ctf-wrap.ctf-forum-dark .ctf-ad.ctf-dark-exempt{
    color-scheme:normal!important;
    background:transparent!important;
    border:0!important;
    filter:none!important;
}
.ctf-wrap.ctf-forum-dark .ctf-ad.ctf-dark-exempt *{
    filter:none!important;
}
.ctf-wrap.ctf-forum-dark .ctf-ad.ctf-dark-exempt a,
.ctf-wrap.ctf-forum-dark .ctf-ad.ctf-dark-exempt :where(
    h1,h2,h3,h4,h5,h6,p,span,small,strong,b,em,i,li,dt,dd,label,td,th
){
    color:revert!important;
}
.ctf-wrap.ctf-forum-dark .ctf-ad.ctf-dark-exempt :where(img,picture,video,canvas,iframe,svg){
    filter:none!important;
    opacity:1!important;
}

/* 0.6.43: Spielhallen-Bewertungen und Punkte */
.ctf-casino-review{max-width:900px;margin:22px auto;padding:22px;background:#fff;border:1px solid var(--ctf-border);border-radius:14px;box-sizing:border-box}
.ctf-casino-review h3{margin:0 0 10px;font-size:25px}
.ctf-casino-review>p{color:var(--ctf-muted)}
.ctf-casino-review-form{display:grid;gap:20px;margin-top:18px}
.ctf-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}
.ctf-review-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,200px);align-items:center;gap:12px}
.ctf-review-field>span{display:grid;gap:3px}
.ctf-review-field small{color:var(--ctf-muted);font-weight:400;line-height:1.35}
.ctf-review-field select,.ctf-review-text textarea{width:100%;box-sizing:border-box;border:1px solid var(--ctf-border);border-radius:8px;padding:10px 12px;background:#fff}
.ctf-review-text{display:grid;gap:7px}.ctf-review-text small{font-weight:400;color:var(--ctf-muted)}
.ctf-review-recommend{display:flex;align-items:flex-start;gap:9px;font-weight:600}.ctf-review-recommend input{margin-top:3px}
.ctf-review-actions{display:flex;justify-content:flex-end}
.ctf-review-existing{padding:18px;border:1px solid var(--ctf-border);border-radius:10px;background:var(--ctf-bg)}
.ctf-review-existing p{margin:7px 0 14px;color:var(--ctf-muted)}
.ctf-profile-points dd{font-weight:900!important}
.ctf-wrap.ctf-forum-dark .ctf-casino-review{background:var(--ctfd-surface)!important;color:var(--ctfd-text)!important;border-color:var(--ctfd-border)!important}
.ctf-wrap.ctf-forum-dark .ctf-casino-review :where(h3,strong,label){color:var(--ctfd-text)!important}
.ctf-wrap.ctf-forum-dark .ctf-casino-review :where(p,small){color:var(--ctfd-muted)!important}
.ctf-wrap.ctf-forum-dark .ctf-review-field select,.ctf-wrap.ctf-forum-dark .ctf-review-text textarea{background:#0d1219!important;color:var(--ctfd-text)!important;border-color:var(--ctfd-border)!important}
@media(max-width:760px){.ctf-review-grid{grid-template-columns:1fr}.ctf-review-field{grid-template-columns:1fr}.ctf-review-actions .ctf-btn{width:100%}}

/* 0.6.44: Bewertungsstatus */
.ctf-review-existing{display:grid;gap:10px}
.ctf-review-status{justify-self:start;display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}
.ctf-review-status.is-approved{background:#ecfdf3;color:#166534;border:1px solid #a7f3d0}
.ctf-review-status.is-pending{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.ctf-review-admin-edit{padding:12px 4px}
.ctf-review-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px}
.ctf-review-admin-grid label{display:grid;gap:5px}
@media(max-width:900px){.ctf-review-admin-grid{grid-template-columns:1fr 1fr}}

/* 0.6.45: klickbare Sterne + öffentliche freigegebene Bewertungen */
.ctf-casino-review-wrap{display:grid;gap:24px}
.ctf-star-field{margin:0;padding:14px;border:1px solid var(--ctf-border);border-radius:10px;background:var(--ctf-bg)}
.ctf-star-field legend{display:grid;gap:3px;padding:0 5px}
.ctf-star-field legend small{font-weight:400;color:var(--ctf-muted)}
.ctf-star-picker{display:flex;align-items:center;flex-direction:row-reverse;justify-content:flex-end;gap:2px;margin-top:7px}
.ctf-star-picker input{position:absolute;opacity:0;pointer-events:none}
.ctf-star-picker label{font-size:29px;line-height:1;color:#c8cdd4;cursor:pointer;transition:transform .12s ease,color .12s ease;text-shadow:0 1px 1px rgba(0,0,0,.15)}
.ctf-star-picker label:hover{transform:scale(1.12)}
.ctf-star-picker label:hover,
.ctf-star-picker label:hover ~ label,
.ctf-star-picker input:checked ~ label{color:#f5b301}
.ctf-star-picker input:focus-visible + label{outline:2px solid #2563eb;outline-offset:3px;border-radius:3px}
.ctf-star-value{margin-left:10px;color:var(--ctf-muted);font-size:12px;font-weight:700}
.ctf-review-charcount{display:block;text-align:right;margin-top:5px;color:var(--ctf-muted)}
.ctf-review-charcount.is-short{color:#b42318!important}
.ctf-approved-reviews{max-width:900px;margin:0 auto;padding:22px;background:#fff;border:1px solid var(--ctf-border);border-radius:14px}
.ctf-approved-reviews>h3{margin:0 0 15px;font-size:25px}
.ctf-review-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;margin-bottom:16px;border-radius:10px;background:var(--ctf-bg);border:1px solid var(--ctf-border)}
.ctf-review-summary>div:first-child{display:grid;gap:2px}.ctf-review-summary>div:first-child>strong{font-size:24px}.ctf-review-summary>div:first-child>span{color:var(--ctf-muted)}
.ctf-review-summary-stars,.ctf-review-stars-read{display:inline-flex;gap:2px}
.ctf-review-summary-stars span,.ctf-review-stars-read span{color:#c8cdd4}
.ctf-review-summary-stars .is-on,.ctf-review-stars-read .is-on{color:#f5b301}
.ctf-review-summary-stars{font-size:24px}
.ctf-review-empty{padding:18px;border:1px dashed var(--ctf-border);border-radius:10px;color:var(--ctf-muted)}
.ctf-review-card{border:1px solid var(--ctf-border);border-radius:12px;overflow:hidden;margin-top:14px;background:#fff}
.ctf-review-card-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 15px;background:#f5f6f8;border-bottom:1px solid var(--ctf-border)}
.ctf-review-author{display:flex;align-items:center;gap:10px;text-decoration:none!important}
.ctf-review-author img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.ctf-review-author>span{display:grid;gap:2px}.ctf-review-author strong{color:var(--ctf-text)}.ctf-review-author small{color:var(--ctf-muted)}
.ctf-review-overall{display:grid;justify-items:end;gap:3px}
.ctf-review-card-body{padding:15px}
.ctf-review-text-public{line-height:1.58}.ctf-review-text-public p:first-child{margin-top:0}.ctf-review-text-public p:last-child{margin-bottom:0}
.ctf-review-recommend-status{display:inline-block;margin-top:12px;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.ctf-review-recommend-status.is-yes{background:#ecfdf3;color:#166534;border:1px solid #a7f3d0}
.ctf-review-recommend-status.is-no{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.ctf-review-details{margin-top:14px;border-top:1px solid var(--ctf-border);padding-top:12px}
.ctf-review-details summary{cursor:pointer;font-weight:800}
.ctf-review-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;margin-top:12px}
.ctf-review-detail-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:7px;border-bottom:1px dashed var(--ctf-border)}
.ctf-review-stars-read{font-size:17px;white-space:nowrap}
.ctf-wrap.ctf-forum-dark .ctf-approved-reviews,
.ctf-wrap.ctf-forum-dark .ctf-review-card{background:var(--ctfd-surface)!important;color:var(--ctfd-text)!important;border-color:var(--ctfd-border)!important}
.ctf-wrap.ctf-forum-dark .ctf-review-card-head,
.ctf-wrap.ctf-forum-dark .ctf-review-summary,
.ctf-wrap.ctf-forum-dark .ctf-star-field{background:var(--ctfd-surface-2)!important;border-color:var(--ctfd-border)!important}
.ctf-wrap.ctf-forum-dark .ctf-review-author strong,
.ctf-wrap.ctf-forum-dark .ctf-approved-reviews :where(h3,strong,summary){color:var(--ctfd-text)!important}
.ctf-wrap.ctf-forum-dark .ctf-approved-reviews :where(p,small,.ctf-review-summary span){color:var(--ctfd-muted)!important}
@media(max-width:700px){
  .ctf-review-card-head{align-items:flex-start}
  .ctf-review-details-grid{grid-template-columns:1fr}
  .ctf-review-overall{justify-items:start}
  .ctf-review-card-head{flex-direction:column}
}

/* 0.6.46: Bewertungsformular erst nach Klick ausklappen */
.ctf-review-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ctf-review-toggle-row h3{margin:0}
.ctf-review-form-panel{margin-top:18px}
.ctf-review-form-panel[hidden]{display:none!important}
.ctf-review-form-toggle[aria-expanded="true"]{opacity:.9}
@media(max-width:620px){
  .ctf-review-toggle-row{align-items:stretch;flex-direction:column}
  .ctf-review-form-toggle{width:100%}
}

/* 0.6.47: Bewertungsbuttons sichtbar + Abbrechen */
.ctf-review-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}
.ctf-review-actions .ctf-review-submit{
    background:#2563eb!important;
    color:#fff!important;
    border:1px solid #2563eb!important;
}
.ctf-review-actions .ctf-review-submit:hover{
    background:#1d4ed8!important;
    color:#fff!important;
    border-color:#1d4ed8!important;
}
.ctf-review-actions .ctf-review-cancel{
    background:#f3f4f6!important;
    color:#111827!important;
    border:1px solid #d1d5db!important;
}
.ctf-review-actions .ctf-review-cancel:hover{
    background:#e5e7eb!important;
    color:#111827!important;
}
.ctf-wrap.ctf-forum-dark .ctf-review-actions .ctf-review-submit{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
}
.ctf-wrap.ctf-forum-dark .ctf-review-actions .ctf-review-cancel{
    background:#202733!important;
    color:#f4f7fb!important;
    border-color:#3b4656!important;
}
.ctf-wrap.ctf-forum-dark .ctf-review-actions .ctf-review-cancel:hover{
    background:#2a3342!important;
    color:#fff!important;
}
@media(max-width:620px){
    .ctf-review-actions{
        flex-direction:column;
    }
    .ctf-review-actions .ctf-btn{
        width:100%;
    }
}

/* 0.6.48: Bewertungsbereich sauber linksbündig und Toggle garantiert sichtbar */
.ctf-casino-review-wrap{
    display:grid!important;
    gap:24px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
}
.ctf-casino-review,
.ctf-approved-reviews{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    box-sizing:border-box!important;
}
.ctf-casino-review{
    padding:22px 24px!important;
}
.ctf-approved-reviews{
    padding:22px 24px!important;
}
.ctf-review-toggle-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    width:100%!important;
}
.ctf-review-toggle-row h3{
    margin:0!important;
    padding:0!important;
    text-align:left!important;
}
.ctf-review-form-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    min-height:44px!important;
    padding:10px 18px!important;
    margin:0!important;
    border:1px solid #16813a!important;
    border-radius:6px!important;
    background:#218c3f!important;
    color:#fff!important;
    font:inherit!important;
    font-weight:800!important;
    line-height:1.2!important;
    text-decoration:none!important;
    opacity:1!important;
    visibility:visible!important;
    cursor:pointer!important;
    box-shadow:none!important;
}
.ctf-review-form-toggle:hover,
.ctf-review-form-toggle:focus{
    background:#176f31!important;
    border-color:#176f31!important;
    color:#fff!important;
}
.ctf-approved-reviews>h3{
    text-align:left!important;
    margin:0 0 16px!important;
    padding:0!important;
}
.ctf-review-empty{
    text-align:left!important;
}
.ctf-review-form-panel{
    width:100%!important;
}
@media(max-width:700px){
    .ctf-review-toggle-row{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .ctf-review-form-toggle{
        width:100%!important;
    }
    .ctf-casino-review,
    .ctf-approved-reviews{
        padding:18px 16px!important;
    }
}

/* 0.6.49: vorhandene Bewertung – Status und Bearbeiten klar sichtbar */
.ctf-review-existing{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:12px!important;
    margin-top:18px!important;
}
.ctf-review-existing p{margin:0!important}
.ctf-review-edit-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:42px!important;
    padding:10px 18px!important;
    background:#218c3f!important;
    border:1px solid #16813a!important;
    border-radius:6px!important;
    color:#fff!important;
    font-weight:800!important;
    text-decoration:none!important;
    opacity:1!important;
    visibility:visible!important;
}
.ctf-review-edit-btn:hover,
.ctf-review-edit-btn:focus{
    background:#176f31!important;
    border-color:#176f31!important;
    color:#fff!important;
}
.ctf-review-status.is-approved{
    display:inline-flex!important;
    padding:7px 11px!important;
    border:1px solid #86d39a!important;
    border-radius:999px!important;
    background:#edf9f0!important;
    color:#176b2f!important;
    font-weight:800!important;
}

/* 0.6.50 Punkte-Shop */
.ctf-shop-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.ctf-shop-balance{padding:12px 18px;border:1px solid #d9e0e8;border-radius:12px;text-align:center;min-width:130px}
.ctf-shop-balance small,.ctf-shop-balance strong{display:block}.ctf-shop-balance strong{font-size:22px}
.ctf-shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ctf-shop-card{border:1px solid #d9e0e8;border-radius:14px;overflow:hidden;background:#fff}
.ctf-shop-image{display:block;width:100%;height:190px;object-fit:cover;background:#f3f5f7}
.ctf-shop-placeholder{display:flex;align-items:center;justify-content:center;font-size:54px}
.ctf-shop-card-body{padding:18px}.ctf-shop-card h3{margin:0 0 8px}.ctf-shop-price{font-weight:800;font-size:18px;margin-bottom:12px}
.ctf-shop-info{border-top:1px solid #e4e8ed;margin:14px 0;padding-top:12px}.ctf-shop-card form{margin-top:16px}.ctf-shop-card button{width:100%}
.ctf-shop-card button:disabled{opacity:.55;cursor:not-allowed}
.ctf-forum-dark .ctf-shop-card{background:#101824;border-color:#314055}.ctf-forum-dark .ctf-shop-balance,.ctf-forum-dark .ctf-shop-info{border-color:#314055}
.ctf-pm-message.is-system .ctf-pm-bubble{border:1px solid #2f80ed}.ctf-pm-system-name{display:block;margin-bottom:7px}
@media(max-width:850px){.ctf-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.ctf-shop-head{align-items:stretch;flex-direction:column}.ctf-shop-grid{grid-template-columns:1fr}}

.ctf-shop-card button:disabled::before{content:'⚠ ';}.ctf-shop-card button:disabled{font-weight:700;}

/* 0.6.57: Shop-Bild immer im oberen Kartenbereich */
.ctf-shop-image{
    display:block!important;
    width:100%!important;
    height:190px!important;
    object-fit:contain!important;
    object-position:center!important;
    padding:18px!important;
    box-sizing:border-box!important;
    background:#f3f5f7!important;
}
.ctf-shop-placeholder{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
}

/* 0.6.58 Admin-Punkteverwaltung */
.ctf-points-search{display:flex;gap:8px;align-items:center;margin:18px 0}
.ctf-points-user-card{margin-top:20px}
.ctf-points-user-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.ctf-points-user-head img{border-radius:50%}
.ctf-points-user-head h2{margin:0}.ctf-points-user-head p{margin:3px 0}
.ctf-points-big{font-size:22px}
.ctf-points-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.ctf-points-form{background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:16px}
.ctf-points-form h3{margin-top:0}
.ctf-points-form label{display:grid;gap:5px;margin-bottom:12px;font-weight:600}
.ctf-points-form input{width:100%}
@media(max-width:1000px){.ctf-points-actions{grid-template-columns:1fr}}

/* 0.6.59 Login / Registrierung / Passwort */
.ctf-required-note{font-size:13px;color:#6b7280;margin:-4px 0 14px}
.ctf-auth-links{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:14px}
.ctf-auth-links a{font-weight:700}
.ctf-auth label>strong,.ctf-auth .ctf-inline span strong{color:#dc2626}
@media(max-width:560px){.ctf-auth-links{flex-direction:column}}

/* 0.6.61: CasinoTester.eu System-Unterhaltung */
.ctf-pm-system-avatar{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#111827;
    color:#fff;
    font-size:12px;
    font-weight:900;
    letter-spacing:.4px;
}
.ctf-pm-system-avatar.is-large{
    width:48px;
    height:48px;
    flex-basis:48px;
    font-size:14px;
}
.ctf-pm-system-conversation{
    background:#f5f8ff;
}
.ctf-pm-system-badge{
    display:inline-flex;
    margin-top:3px;
    padding:2px 7px;
    border-radius:999px;
    background:#e8f0ff;
    color:#2456a6;
    font-size:11px;
    font-weight:800;
}
.ctf-pm-system-info{
    margin-bottom:14px;
}
.ctf-pm-message.is-system .ctf-pm-bubble{
    border:1px solid #8ab4f8;
    background:#f5f8ff;
}
.ctf-pm-message.is-system .ctf-pm-system-name{
    color:#1d4f91;
}
.ctf-wrap.ctf-forum-dark .ctf-pm-system-conversation,
.ctf-wrap.ctf-forum-dark .ctf-pm-message.is-system .ctf-pm-bubble{
    background:#111c2e!important;
    border-color:#355b8c!important;
}
.ctf-wrap.ctf-forum-dark .ctf-pm-system-badge{
    background:#172d4d!important;
    color:#a9ccff!important;
}

/* 0.6.62: gesperrte User und Moderations-Sanktionen */
.ctf-blocked-avatar{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e5e7eb;
    color:#6b7280;
    font-size:18px;
    overflow:hidden;
}
.ctf-blocked-avatar.is-profile{
    width:84px;
    height:84px;
    margin:0 auto 12px;
    font-size:34px;
}
.ctf-blocked-user-name{
    font-weight:700;
    color:#6b7280;
    cursor:default;
}
.ctf-blocked-profile{
    text-align:center;
    padding:28px;
}
.ctf-admin-sanctions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    padding:12px;
    margin-top:14px;
    background:#f6f7f7;
    border:1px solid #dcdcde;
}
.ctf-admin-sanctions h3{
    width:100%;
    margin:0 0 4px;
}
.ctf-admin-sanction{
    display:inline-block;
    margin-left:6px;
    padding:2px 7px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
}
.ctf-admin-sanction.is-pm{background:#fff7ed;color:#9a3412}
.ctf-admin-sanction.is-user{background:#fef2f2;color:#991b1b}
.ctf-admin-reported-message{
    padding:14px;
    background:#fff;
    border:1px solid #dcdcde;
}
.ctf-admin-reported-message small{
    display:block;
    margin-top:10px;
    color:#646970;
}

/* 0.6.63 Shop-Ticketsystem */
.ctf-shop-ticket-status,.ctf-shop-order-status{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800}
.ctf-shop-ticket-status.is-new,.ctf-shop-order-status.is-new{background:#eef2ff;color:#3730a3}
.ctf-shop-ticket-status.is-in_progress,.ctf-shop-order-status.is-in_progress{background:#fff7ed;color:#9a3412}
.ctf-shop-ticket-status.is-done,.ctf-shop-order-status.is-done{background:#ecfdf3;color:#166534}
.ctf-shop-ticket-head small{display:block;margin-top:4px;color:#6b7280}
.ctf-shop-order-admin{margin-top:20px;padding:18px;background:#fff;border:1px solid #dcdcde}
.ctf-shop-order-thread{display:grid;gap:12px;max-width:900px;margin:18px 0}
.ctf-shop-order-msg{padding:12px 14px;border-radius:9px;border:1px solid #dcdcde}
.ctf-shop-order-msg.from-admin{background:#f5f8ff;border-color:#aac7ef}.ctf-shop-order-msg.from-user{background:#f7f7f7}
.ctf-shop-order-msg small{display:block;margin-top:8px;color:#646970}
.ctf-shop-order-actions{display:grid;grid-template-columns:minmax(250px,340px) minmax(360px,1fr);gap:20px;align-items:start}
.ctf-shop-order-actions form{display:grid;gap:10px}.ctf-shop-order-actions label{display:grid;gap:6px}.ctf-shop-order-message-form textarea{width:100%}
@media(max-width:900px){.ctf-shop-order-actions{grid-template-columns:1fr}}
.ctf-wrap.ctf-forum-dark .ctf-pm-message.is-shop-ticket .ctf-pm-bubble{border-color:#355b8c}

/* 0.6.65 Shop-Einlöse-Modal */
.ctf-shop-modal[hidden]{display:none!important}
.ctf-shop-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}
.ctf-shop-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58);backdrop-filter:blur(2px)}
.ctf-shop-modal-dialog{position:relative;z-index:2;width:min(460px,100%);background:#fff;border-radius:16px;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.28);text-align:center}
.ctf-shop-modal-x{position:absolute;top:10px;right:12px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#6b7280}
.ctf-shop-modal-icon{font-size:46px;margin-bottom:8px}
.ctf-shop-modal-dialog h3{margin:0 0 8px;font-size:24px}
.ctf-shop-modal-copy{margin:0 0 18px;color:#4b5563}
.ctf-shop-modal-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}
.ctf-shop-modal-summary span{display:grid;gap:4px;padding:12px;border-radius:10px;background:#f4f6f8;color:#6b7280}
.ctf-shop-modal-summary strong{color:#111827;font-size:18px}
.ctf-shop-modal-actions{display:flex;gap:10px}
.ctf-shop-modal-actions .ctf-btn{flex:1}
.ctf-shop-modal-cancel{background:#eef0f3!important;color:#111827!important;border-color:#d5d9df!important}
.ctf-shop-modal-confirm{background:#218c3f!important;color:#fff!important;border-color:#16813a!important}
.ctf-shop-modal-confirm:hover{background:#176f31!important}
body.ctf-shop-modal-open{overflow:hidden}
.ctf-wrap.ctf-forum-dark .ctf-shop-modal-dialog{background:#111827;color:#f3f4f6}
.ctf-wrap.ctf-forum-dark .ctf-shop-modal-copy{color:#cbd5e1}
.ctf-wrap.ctf-forum-dark .ctf-shop-modal-summary span{background:#1f2937;color:#94a3b8}
.ctf-wrap.ctf-forum-dark .ctf-shop-modal-summary strong{color:#fff}
@media(max-width:520px){
  .ctf-shop-modal-dialog{padding:22px 16px}
  .ctf-shop-modal-summary{grid-template-columns:1fr}
  .ctf-shop-modal-actions{flex-direction:column-reverse}
}

/* 0.6.67 Live-Ungelesen-Badge */
.ctf-nav-unread-count[hidden]{display:none!important}
.ctf-nav-unread-count{
    margin-left:auto!important;
    min-width:18px;
    height:18px;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    padding:0 5px!important;
    border-radius:999px!important;
    background:#dc2626!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:18px!important;
}

/* 0.6.68 Messenger Layout */
.ctf-messenger-layout{
    display:grid!important;
    grid-template-columns:300px minmax(0,1fr);
    gap:18px;
    align-items:start;
}
.ctf-messenger-sidebar,
.ctf-messenger-main{
    border:1px solid var(--ctf-border);
    border-radius:14px;
    background:#fff;
    overflow:hidden;
}
.ctf-messenger-sidebar{
    position:sticky;
    top:20px;
}
.ctf-messenger-sidebar-head{
    padding:18px 18px 14px;
    border-bottom:1px solid var(--ctf-border);
    background:#f8fafc;
}
.ctf-messenger-sidebar-head h2{
    margin:0 0 3px;
    font-size:20px;
}
.ctf-messenger-sidebar-head span{
    font-size:12px;
    color:var(--ctf-muted);
}
.ctf-pm-conversations{
    display:grid;
}
.ctf-pm-conversations>a{
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    padding:13px 14px!important;
    border-bottom:1px solid #eef1f4;
    text-decoration:none!important;
    transition:background .15s ease;
}
.ctf-pm-conversations>a:last-child{border-bottom:0}
.ctf-pm-conversations>a:hover{background:#f7f9fb}
.ctf-pm-conversations>a>img,
.ctf-pm-conversations>a>.ctf-pm-system-avatar{
    width:42px!important;
    height:42px!important;
    border-radius:50%;
}
.ctf-pm-conversations>a>span:nth-child(2){
    display:grid;
    min-width:0;
}
.ctf-pm-conversations strong{
    color:#111827;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.ctf-pm-conversations small{
    color:#6b7280;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.ctf-messenger-main{
    min-height:520px;
}
.ctf-pm-head{
    padding:16px 18px!important;
    border-bottom:1px solid var(--ctf-border);
    background:#f8fafc;
}
.ctf-pm-user-head{
    display:flex;
    align-items:center;
    gap:12px;
}
.ctf-pm-user-head img{border-radius:50%}
.ctf-pm-user-head h2{
    margin:0 0 2px!important;
    font-size:20px;
}
.ctf-pm-user-head a{
    font-size:12px;
    text-decoration:none;
}
.ctf-pm-user-tools{
    padding:10px 18px;
    border-bottom:1px solid var(--ctf-border);
    background:#fff;
}
.ctf-pm-user-tools form{
    margin:0!important;
}
.ctf-pm-user-tools button,
.ctf-pm-user-tools .ctf-btn{
    width:auto!important;
    background:#fff!important;
    color:#b42318!important;
    border:1px solid #f0b4ae!important;
    padding:7px 11px!important;
    border-radius:8px!important;
    font-size:12px!important;
}
.ctf-pm-user-tools button:hover,
.ctf-pm-user-tools .ctf-btn:hover{
    background:#fff5f4!important;
}
.ctf-pm-thread{
    padding:20px!important;
    min-height:300px;
    display:flex!important;
    flex-direction:column;
    gap:12px;
    background:#f9fafb;
}
.ctf-pm-message{
    max-width:78%;
}
.ctf-pm-message.is-mine{
    align-self:flex-end;
}
.ctf-pm-message.is-theirs{
    align-self:flex-start;
}
.ctf-pm-bubble{
    padding:11px 13px!important;
    border-radius:14px!important;
    box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.ctf-pm-message.is-mine .ctf-pm-bubble{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
}
.ctf-pm-message.is-mine .ctf-pm-bubble small{
    color:rgba(255,255,255,.75)!important;
}
.ctf-pm-compose{
    margin:0!important;
    padding:16px 18px 18px!important;
    border-top:1px solid var(--ctf-border);
    background:#fff;
}
.ctf-pm-compose label{
    display:grid!important;
    gap:7px;
    font-weight:700;
}
.ctf-pm-compose textarea{
    width:100%!important;
    min-height:110px!important;
    resize:vertical;
    box-sizing:border-box;
    border:1px solid #cfd7e3!important;
    border-radius:10px!important;
    padding:12px 13px!important;
    font:inherit;
    background:#fff!important;
    color:#111827!important;
}
.ctf-pm-compose textarea:focus{
    outline:none;
    border-color:#2563eb!important;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
}
.ctf-pm-compose-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:10px;
}
.ctf-pm-compose-actions small{color:#6b7280}
.ctf-pm-compose-actions .ctf-btn{
    width:auto!important;
    min-width:150px;
}
.ctf-pm-empty-state{
    min-height:500px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#6b7280;
}
.ctf-pm-empty-state h2{margin:8px 0 3px;color:#111827}
.ctf-pm-empty-icon{font-size:42px}
.ctf-wrap.ctf-forum-dark .ctf-messenger-sidebar,
.ctf-wrap.ctf-forum-dark .ctf-messenger-main,
.ctf-wrap.ctf-forum-dark .ctf-pm-user-tools,
.ctf-wrap.ctf-forum-dark .ctf-pm-compose{
    background:var(--ctfd-surface)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-messenger-sidebar-head,
.ctf-wrap.ctf-forum-dark .ctf-pm-head,
.ctf-wrap.ctf-forum-dark .ctf-pm-thread{
    background:var(--ctfd-surface-2)!important;
    border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-pm-conversations>a{border-color:var(--ctfd-border)!important}
.ctf-wrap.ctf-forum-dark .ctf-pm-conversations>a:hover{background:#18202b!important}
.ctf-wrap.ctf-forum-dark .ctf-pm-conversations strong,
.ctf-wrap.ctf-forum-dark .ctf-pm-user-head h2,
.ctf-wrap.ctf-forum-dark .ctf-pm-empty-state h2{color:var(--ctfd-text)!important}
.ctf-wrap.ctf-forum-dark .ctf-pm-compose textarea{
    background:#0d1219!important;
    color:var(--ctfd-text)!important;
    border-color:var(--ctfd-border)!important;
}
@media(max-width:800px){
    .ctf-messenger-layout{grid-template-columns:1fr}
    .ctf-messenger-sidebar{position:static}
    .ctf-messenger-main{min-height:0}
    .ctf-pm-message{max-width:90%}
}

/* 0.6.69 Messenger Bubbles verfeinert */
.ctf-pm-thread{
    padding:24px!important;
    gap:16px!important;
}

.ctf-pm-message{
    width:auto!important;
    max-width:min(72%,680px)!important;
    display:flex!important;
    flex-direction:column!important;
}

.ctf-pm-message.is-mine{
    align-self:flex-end!important;
    align-items:flex-end!important;
}

.ctf-pm-message.is-theirs{
    align-self:flex-start!important;
    align-items:flex-start!important;
}

.ctf-pm-bubble{
    display:block!important;
    width:auto!important;
    min-width:170px!important;
    max-width:100%!important;
    padding:12px 14px 9px!important;
    border:1px solid #dbe2ea!important;
    border-radius:16px!important;
    background:#fff!important;
    color:#111827!important;
    box-shadow:0 2px 8px rgba(15,23,42,.05)!important;
    overflow-wrap:anywhere;
}

.ctf-pm-message.is-theirs .ctf-pm-bubble{
    border-bottom-left-radius:5px!important;
}

.ctf-pm-message.is-mine .ctf-pm-bubble{
    border:1px solid #2563eb!important;
    border-bottom-right-radius:5px!important;
    background:#2563eb!important;
    color:#fff!important;
    box-shadow:0 4px 12px rgba(37,99,235,.18)!important;
}

.ctf-pm-bubble > div{
    margin:0!important;
    line-height:1.55!important;
    font-size:15px!important;
}

.ctf-pm-bubble p{
    margin:0 0 7px!important;
}

.ctf-pm-bubble p:last-child{
    margin-bottom:0!important;
}

.ctf-pm-bubble > small{
    display:block!important;
    margin-top:7px!important;
    font-size:11px!important;
    line-height:1.35!important;
    color:#7b8797!important;
    text-align:right!important;
}

.ctf-pm-message.is-mine .ctf-pm-bubble > small{
    color:rgba(255,255,255,.72)!important;
}

.ctf-pm-report-inline{
    margin:7px 0 0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}

.ctf-pm-report-inline summary{
    display:inline-flex!important;
    align-items:center!important;
    gap:4px!important;
    padding:0!important;
    color:#8994a3!important;
    font-size:11px!important;
    cursor:pointer!important;
    list-style:none!important;
}

.ctf-pm-report-inline summary::-webkit-details-marker{
    display:none!important;
}

.ctf-pm-report-inline summary:hover{
    color:#dc2626!important;
}

.ctf-pm-report-inline[open]{
    width:260px!important;
    max-width:100%!important;
    margin-top:9px!important;
    padding:10px!important;
    border:1px solid #e5e7eb!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 6px 18px rgba(15,23,42,.07)!important;
}

.ctf-pm-report-inline textarea{
    width:100%!important;
    min-height:75px!important;
    box-sizing:border-box!important;
    margin:8px 0!important;
    padding:8px!important;
    border:1px solid #d1d5db!important;
    border-radius:8px!important;
    resize:vertical!important;
}

.ctf-pm-report-inline button{
    width:auto!important;
    padding:6px 10px!important;
    border-radius:7px!important;
    font-size:11px!important;
}

.ctf-pm-message + .ctf-pm-message{
    margin-top:1px!important;
}

/* System-/Shop-Nachrichten behalten ihren eigenen Charakter */
.ctf-pm-message.is-system .ctf-pm-bubble,
.ctf-pm-message.is-shop-ticket.is-theirs .ctf-pm-bubble{
    background:#f5f8ff!important;
    border-color:#b9cff0!important;
}

.ctf-pm-system-name{
    display:block!important;
    margin-bottom:5px!important;
    font-size:12px!important;
}

/* Darkmode */
.ctf-wrap.ctf-forum-dark .ctf-pm-thread{
    background:#0f1720!important;
}

.ctf-wrap.ctf-forum-dark .ctf-pm-message.is-theirs .ctf-pm-bubble{
    background:#18212c!important;
    color:#f3f4f6!important;
    border-color:#2e3a49!important;
}

.ctf-wrap.ctf-forum-dark .ctf-pm-message.is-theirs .ctf-pm-bubble > small{
    color:#93a4b8!important;
}

.ctf-wrap.ctf-forum-dark .ctf-pm-report-inline[open]{
    background:#18212c!important;
    border-color:#2e3a49!important;
}

.ctf-wrap.ctf-forum-dark .ctf-pm-report-inline textarea{
    background:#0e141c!important;
    color:#f3f4f6!important;
    border-color:#344255!important;
}

@media(max-width:700px){
    .ctf-pm-thread{
        padding:16px 12px!important;
    }

    .ctf-pm-message{
        max-width:86%!important;
    }

    .ctf-pm-bubble{
        min-width:120px!important;
    }
}

/* 0.6.70 Teilen + Zitieren */
.ctf-post-topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:14px;
}
.ctf-post-topline .ctf-meta{
    margin:0!important;
}
.ctf-post-share{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:6px 10px;
    border:1px solid #d7dee8;
    border-radius:8px;
    background:#fff;
    color:#526071;
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.ctf-post-share:hover{
    background:#f5f8fc;
    border-color:#b9c6d7;
    color:#2563eb;
}
.ctf-quote-btn{
    display:inline-flex!important;
    align-items:center;
    gap:4px;
    white-space:nowrap;
}
.ctf-copy-toast{
    position:fixed;
    left:50%;
    bottom:28px;
    z-index:1000000;
    transform:translate(-50%,12px);
    padding:10px 15px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-size:13px;
    font-weight:700;
    opacity:0;
    pointer-events:none;
    box-shadow:0 8px 30px rgba(0,0,0,.22);
    transition:opacity .18s ease,transform .18s ease;
}
.ctf-copy-toast.is-visible{
    opacity:1;
    transform:translate(-50%,0);
}
.ctf-rich-reply{
    scroll-margin-top:25px;
}
.ctf-inserted-quote,
.ctf-rich-reply blockquote{
    border-left:4px solid #9aa7b8;
    margin:10px 0;
    padding:8px 12px;
    background:#f6f8fa;
    color:#455261;
}
.ctf-wrap.ctf-forum-dark .ctf-post-share{
    background:#111923!important;
    border-color:#334155!important;
    color:#cbd5e1!important;
}
.ctf-wrap.ctf-forum-dark .ctf-post-share:hover{
    background:#182331!important;
    color:#8fbcff!important;
}
.ctf-wrap.ctf-forum-dark .ctf-rich-reply blockquote{
    background:#151e2a!important;
    border-color:#53647a!important;
    color:#d7dee8!important;
}
@media(max-width:600px){
    .ctf-post-topline{
        align-items:flex-start;
    }
    .ctf-post-share{
        padding:5px 8px;
    }
}

/* 0.6.71 Schlichte, verlinkte Zitate */
.ctf-inserted-quote,
.ctf-rich-reply blockquote.ctf-inserted-quote,
.ctf-content blockquote.ctf-inserted-quote{
    position:relative!important;
    margin:10px 0!important;
    padding:10px 14px!important;
    border:0!important;
    border-left:4px solid #94a3b8!important;
    border-radius:0 8px 8px 0!important;
    background:#f6f8fa!important;
    color:#334155!important;
    font-size:inherit!important;
    text-align:left!important;
}
.ctf-inserted-quote::before,
.ctf-inserted-quote::after,
.ctf-rich-reply blockquote.ctf-inserted-quote::before,
.ctf-rich-reply blockquote.ctf-inserted-quote::after,
.ctf-content blockquote.ctf-inserted-quote::before,
.ctf-content blockquote.ctf-inserted-quote::after{
    content:none!important;
    display:none!important;
}
.ctf-quote-author{
    margin:0 0 5px!important;
    padding:0!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.35!important;
}
.ctf-quote-author a{
    color:#2563eb!important;
    text-decoration:none!important;
}
.ctf-quote-author a:hover{
    text-decoration:underline!important;
}
.ctf-quote-text{
    margin:0!important;
    padding:0!important;
    font-size:14px!important;
    font-weight:400!important;
    line-height:1.5!important;
}
.ctf-quote-text p{
    margin:0 0 6px!important;
    padding:0!important;
    font-size:inherit!important;
    font-weight:inherit!important;
    line-height:inherit!important;
}
.ctf-quote-text p:last-child{
    margin-bottom:0!important;
}
.ctf-wrap.ctf-forum-dark .ctf-inserted-quote,
.ctf-wrap.ctf-forum-dark .ctf-rich-reply blockquote.ctf-inserted-quote,
.ctf-wrap.ctf-forum-dark .ctf-content blockquote.ctf-inserted-quote{
    background:#151e2a!important;
    border-left-color:#64748b!important;
    color:#d7dee8!important;
}
.ctf-wrap.ctf-forum-dark .ctf-quote-author a{
    color:#8fbcff!important;
}

/* 0.6.74 Login-Streak */
.ctf-streak-panel{
    position:relative;
    overflow:hidden;
}
.ctf-streak-current{
    display:flex;
    align-items:baseline;
    gap:10px;
    margin:10px 0 8px;
}
.ctf-streak-current strong{
    font-size:42px;
    line-height:1;
    font-weight:900;
}
.ctf-streak-current span{
    font-size:16px;
    font-weight:700;
    color:#6b7280;
}
.ctf-streak-next{
    display:grid;
    gap:3px;
    margin:14px 0;
    padding:12px 14px;
    border:1px solid #fed7aa;
    border-radius:10px;
    background:#fff7ed;
}
.ctf-streak-next span,
.ctf-streak-next small{
    color:#9a5b18;
    font-size:12px;
}
.ctf-streak-next strong{
    color:#9a3412;
}
.ctf-wrap.ctf-forum-dark .ctf-streak-next{
    background:#2a1d11!important;
    border-color:#70451f!important;
}
.ctf-wrap.ctf-forum-dark .ctf-streak-current span,
.ctf-wrap.ctf-forum-dark .ctf-streak-next span,
.ctf-wrap.ctf-forum-dark .ctf-streak-next small{
    color:#d9a66b!important;
}
.ctf-wrap.ctf-forum-dark .ctf-streak-next strong{
    color:#ffbd79!important;
}

/* 0.6.75 Gesperrte User */
.ctf-blocked-avatar{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:50%!important;
    background:#e5e7eb!important;
    color:#6b7280!important;
    font-size:24px!important;
    overflow:hidden!important;
}
.ctf-reaction-user-blocked{
    display:flex;
    align-items:center;
    gap:7px;
    padding:5px 7px;
    color:#6b7280;
}

/* Admin Userverwaltung */
.ctf-user-admin-search{
    display:flex;
    gap:8px;
    margin:18px 0;
}
.ctf-user-admin-user{
    display:flex;
    align-items:center;
    gap:10px;
}
.ctf-user-admin-user img{
    border-radius:50%;
}
.ctf-admin-status{
    display:inline-block;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
}
.ctf-admin-status.is-ok{background:#ecfdf3;color:#166534}
.ctf-admin-status.is-pm{background:#fff7ed;color:#9a3412}
.ctf-admin-status.is-blocked{background:#fef2f2;color:#991b1b}
.ctf-user-admin-detail{
    max-width:1000px;
    padding:20px;
    background:#fff;
    border:1px solid #dcdcde;
}
.ctf-user-admin-detail-head{
    display:flex;
    align-items:center;
    gap:16px;
}
.ctf-user-admin-detail-head img{border-radius:50%}
.ctf-user-admin-detail-head h2{margin:0 0 4px}
.ctf-user-admin-detail-head p{margin:3px 0}
.ctf-user-admin-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:20px 0;
}
.ctf-user-admin-grid>div{
    display:grid;
    gap:4px;
    padding:12px;
    background:#f6f7f7;
    border-radius:8px;
}
.ctf-user-admin-grid span{font-size:16px}
.ctf-user-admin-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
@media(max-width:900px){
    .ctf-user-admin-grid{grid-template-columns:1fr}
}

/* 0.6.76 Userverwaltung: Datenschutz + Moderator */
.ctf-admin-status.is-deleted{
    background:#1f2937;
    color:#fff;
}
.ctf-privacy-delete-box{
    max-width:760px;
    padding:14px 16px;
    border:1px solid #d63638;
    border-left-width:4px;
    background:#fff5f5;
}
.ctf-privacy-delete-box p{
    margin-top:0;
}
.ctf-privacy-delete-btn{
    border-color:#d63638!important;
    color:#b32d2e!important;
    font-weight:700!important;
}
.ctf-privacy-delete-btn:hover{
    background:#d63638!important;
    color:#fff!important;
}

/* 0.6.77 Rollen an Beiträgen */
.ctf-user-rank{display:inline-flex!important;align-items:center;gap:4px}
.ctf-user-rank.ctf-rank-administrator{color:#b42318!important;font-weight:800!important}
.ctf-user-rank.ctf-rank-administrator::before{content:"👑"}
.ctf-user-rank.ctf-rank-moderator{color:#2563eb!important;font-weight:800!important}
.ctf-user-rank.ctf-rank-moderator::before{content:"🛡"}
.ctf-user-rank.ctf-rank-casino-manager{color:#8a4b08!important;font-weight:800!important}
.ctf-user-rank.ctf-rank-casino-manager::before{content:"🎰"}
.ctf-wrap.ctf-forum-dark .ctf-user-rank.ctf-rank-administrator{color:#ff8f87!important}
.ctf-wrap.ctf-forum-dark .ctf-user-rank.ctf-rank-moderator{color:#8fbcff!important}
.ctf-wrap.ctf-forum-dark .ctf-user-rank.ctf-rank-casino-manager{color:#ffc274!important}


/* 0.6.78 – Theme-Autor/Datum/Aufrufe/Lesezeit oberhalb von Forum-Themen ausblenden.
   Ausschließlich auf einzelnen Forum-Themen. */
body.ctf-topic-page .space-page-content-meta,
body.ctf-topic-page .space-single-post-meta,
body.ctf-topic-page .space-post-meta,
body.ctf-topic-page .entry-meta,
body.ctf-topic-page .post-meta,
body.ctf-topic-page .single-post-meta,
body.ctf-topic-page [class*="post-meta"],
body.ctf-topic-page [class*="author-meta"] {
    display:none !important;
}

/* 0.6.79 Passwort anzeigen */
.ctf-password-field{
    position:relative;
    display:block;
    width:100%;
}
.ctf-password-field input{
    width:100%!important;
    box-sizing:border-box!important;
    padding-right:48px!important;
}
.ctf-password-toggle{
    position:absolute;
    top:50%;
    right:7px;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:8px;
    background:transparent;
    cursor:pointer;
    font-size:17px;
    line-height:1;
}
.ctf-password-toggle:hover{
    background:#eef2f7;
}
.ctf-wrap.ctf-forum-dark .ctf-password-toggle:hover{
    background:#263244!important;
}

/* 0.6.80 Bild-Upload für Themen und Antworten */
.ctf-image-upload{
    margin:12px 0 14px;
    padding:12px 14px;
    border:1px dashed #cbd5e1;
    border-radius:10px;
    background:#f8fafc;
}
.ctf-image-upload label{
    display:block;
    margin:0 0 7px;
    font-weight:700;
    cursor:pointer;
}
.ctf-image-upload input[type="file"]{
    display:block;
    width:100%;
    max-width:520px;
}
.ctf-image-upload small{
    display:block;
    margin-top:6px;
    color:#64748b;
}
.ctf-post-uploaded-image{
    margin:14px 0 4px!important;
}
.ctf-post-uploaded-image img{
    display:block;
    max-width:100%;
    width:auto;
    height:auto;
    max-height:700px;
    border-radius:10px;
}
.ctf-wrap.ctf-forum-dark .ctf-image-upload{
    background:#0b1017!important;
    border-color:#3a4657!important;
}
.ctf-wrap.ctf-forum-dark .ctf-image-upload small{
    color:#aeb9c8!important;
}

/* 0.6.81 Mehrfach-Bildgalerie + Lightbox */
.ctf-post-image-gallery{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:14px 0 4px;
}
.ctf-post-image-gallery:has(.ctf-post-image-button:only-child){
    grid-template-columns:minmax(0,1fr);
}
.ctf-post-image-button{
    display:block;
    width:100%;
    padding:0;
    border:0;
    border-radius:10px;
    background:transparent;
    cursor:zoom-in;
    overflow:hidden;
}
.ctf-post-image-button img{
    display:block;
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:10px;
    transition:transform .18s ease;
}
.ctf-post-image-button:hover img{
    transform:scale(1.015);
}
.ctf-post-image-gallery .ctf-post-image-button:only-child img{
    width:auto;
    max-width:100%;
    height:auto;
    max-height:700px;
    object-fit:contain;
}
.ctf-image-lightbox[hidden]{display:none!important}
.ctf-image-lightbox{
    position:fixed;
    inset:0;
    z-index:1000000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.ctf-image-lightbox-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.82);
    backdrop-filter:blur(3px);
}
.ctf-image-lightbox-dialog{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:min(1200px,95vw);
    max-height:92vh;
}
.ctf-image-lightbox-dialog img{
    display:block;
    max-width:100%;
    max-height:90vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:10px;
    box-shadow:0 20px 70px rgba(0,0,0,.4);
}
.ctf-image-lightbox-close{
    position:absolute;
    top:-18px;
    right:-18px;
    z-index:3;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#111;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 5px 18px rgba(0,0,0,.3);
}
body.ctf-lightbox-open{
    overflow:hidden;
}
@media(max-width:650px){
    .ctf-post-image-gallery{
        grid-template-columns:1fr;
    }
    .ctf-post-image-button img{
        height:auto;
        max-height:420px;
    }
    .ctf-image-lightbox{
        padding:14px;
    }
    .ctf-image-lightbox-close{
        top:8px;
        right:8px;
    }
}

/* 0.6.85 Userverwaltung – Direktnachricht & Punkte */
.ctf-user-admin-tools{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:18px;
    margin:24px 0;
}
.ctf-user-tool-card{
    padding:18px;
    border:1px solid #dcdcde;
    border-radius:10px;
    background:#fff;
}
.ctf-user-tool-card h3{
    margin-top:0;
}
.ctf-user-points-actions{
    display:grid;
    gap:12px;
}
.ctf-user-points-actions form{
    display:grid;
    grid-template-columns:minmax(140px,.8fr) minmax(180px,1.4fr) auto;
    gap:8px;
    align-items:end;
    padding:10px;
    border-radius:8px;
    background:#f6f7f7;
}
.ctf-user-points-actions label,
.ctf-user-system-message-form label{
    display:grid;
    gap:5px;
}
.ctf-user-system-message-form{
    display:grid;
    gap:12px;
}
.ctf-user-system-message-form input,
.ctf-user-system-message-form textarea,
.ctf-user-points-actions input{
    width:100%;
    box-sizing:border-box;
}
.ctf-user-system-message-form textarea{
    resize:vertical;
}
@media(max-width:1100px){
    .ctf-user-admin-tools{
        grid-template-columns:1fr;
    }
}
@media(max-width:800px){
    .ctf-user-points-actions form{
        grid-template-columns:1fr;
    }
}

/* 0.6.86 Account-Löschantrag */
.ctf-account-danger{border-color:#efb1b1!important}
.ctf-account-danger h2{color:#b42318}
.ctf-delete-account-btn{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:42px;padding:9px 16px;border:0;border-radius:8px;
    background:#b42318;color:#fff;font-weight:800;cursor:pointer
}
.ctf-delete-account-btn:hover{background:#8f1c13}
.ctf-delete-requested{
    padding:14px 16px;border:1px solid #f0c36d;border-radius:9px;background:#fff8e5
}
.ctf-admin-status.is-delete-request{
    display:inline-block;padding:4px 8px;border-radius:999px;
    background:#fff1c7;color:#7a4b00;font-weight:700
}
.ctf-delete-request-notice{border-left-color:#dba617!important}
.ctf-wrap.ctf-forum-dark .ctf-account-danger{border-color:#713737!important}
.ctf-wrap.ctf-forum-dark .ctf-account-danger h2{color:#ff928a!important}
.ctf-wrap.ctf-forum-dark .ctf-delete-requested{background:#332b17!important;border-color:#705d25!important;color:#fff!important}

/* 0.6.87 Newsletter Backend */
.ctf-newsletter-editor-card{
    max-width:1000px;
    padding:20px;
    margin:18px 0 28px;
    border:1px solid #dcdcde;
    border-radius:10px;
    background:#fff;
}
.ctf-newsletter-editor-card form{
    display:grid;
    gap:18px;
}
.ctf-newsletter-editor-card label{
    display:grid;
    gap:6px;
}
.ctf-newsletter-editor-card textarea{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}
.ctf-newsletter-editor-card small{
    color:#646970;
}
.ctf-newsletter-test{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:end;
    padding:14px;
    border-radius:8px;
    background:#f6f7f7;
}
.ctf-newsletter-send-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    align-items:end;
    padding-top:14px;
    border-top:1px solid #dcdcde;
}
.ctf-newsletter-schedule{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:end;
}
.ctf-newsletter-status{
    display:inline-block;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
}
.ctf-newsletter-status.is-scheduled{background:#eef2ff;color:#3730a3}
.ctf-newsletter-status.is-running{background:#fff7ed;color:#9a3412}
.ctf-newsletter-status.is-done{background:#ecfdf3;color:#166534}
.ctf-newsletter-status.is-cancelled{background:#f3f4f6;color:#4b5563}

/* 0.6.88 Newsletter Templates & Platzhalter */
.ctf-newsletter-template-bar,
.ctf-newsletter-placeholders,
.ctf-newsletter-save-template{
    max-width:1000px;
    box-sizing:border-box;
    margin:14px 0;
    padding:14px 16px;
    border:1px solid #dcdcde;
    border-radius:9px;
    background:#fff;
}
.ctf-newsletter-template-bar{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
}
.ctf-newsletter-template-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}
.ctf-newsletter-template-list form{
    display:inline;
    margin-right:8px;
}
.ctf-newsletter-placeholders code{
    display:inline-block;
    margin:3px 3px 3px 0;
    padding:3px 6px;
    border-radius:5px;
    background:#f0f0f1;
}
.ctf-newsletter-save-template h2{
    margin-top:0;
}
.ctf-newsletter-save-template form{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:end;
}
.ctf-newsletter-save-template label{
    display:grid;
    gap:5px;
}

/* 0.6.91 Moderationszentrale */
.ctf-moderation-wrap{max-width:1120px;margin:0 auto}.ctf-mod-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px;margin:18px 0;background:#111827;color:#fff;border-radius:16px}.ctf-mod-hero h1{margin:5px 0 6px;color:#fff}.ctf-mod-hero p{margin:0;color:#cbd5e1}.ctf-mod-kicker{font-weight:700;color:#93c5fd}.ctf-mod-stats{display:flex;gap:10px;flex-wrap:wrap}.ctf-mod-stats span{min-width:90px;padding:12px 14px;text-align:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:12px}.ctf-mod-stats strong{display:block;font-size:24px;color:#fff}.ctf-mod-section{margin:18px 0;padding:20px;background:#fff;border:1px solid #dbe2ea;border-radius:15px}.ctf-mod-section-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.ctf-mod-section-head h2{margin:0 0 4px}.ctf-mod-section-head p{margin:0;color:#64748b}.ctf-mod-section-head>b{white-space:nowrap;background:#eef2ff;color:#3730a3;padding:6px 10px;border-radius:999px}.ctf-mod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.ctf-mod-card{display:flex;gap:14px;padding:14px;border:1px solid #e2e8f0;border-radius:12px}.ctf-mod-avatar img{width:82px;height:82px;object-fit:cover;border-radius:12px}.ctf-mod-card-body{min-width:0;flex:1}.ctf-mod-card-body>strong,.ctf-mod-card-body>small{display:block}.ctf-mod-card-body>small{color:#64748b;margin:3px 0 10px}.ctf-mod-list{display:grid;gap:10px}.ctf-mod-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px;border:1px solid #e2e8f0;border-radius:12px}.ctf-mod-row>div:first-child{min-width:0;flex:1}.ctf-mod-row strong,.ctf-mod-row small{display:block}.ctf-mod-row small{margin-top:4px;color:#64748b}.ctf-mod-row p{margin:7px 0 0;color:#334155}.ctf-mod-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ctf-mod-actions form{margin:0}.ctf-mod-empty{padding:18px;text-align:center;background:#f8fafc;color:#64748b;border-radius:10px}.ctf-mod-type{display:inline-block;margin-bottom:5px;padding:3px 7px;border-radius:6px;background:#e0e7ff;color:#3730a3;font-size:12px;font-weight:700}.ctf-mod-warning{font-size:13px;color:#92400e;background:#fffbeb;padding:7px 9px;border-radius:8px}.ctf-forum-dark .ctf-mod-section{background:#111827;border-color:#334155}.ctf-forum-dark .ctf-mod-section-head p,.ctf-forum-dark .ctf-mod-row small,.ctf-forum-dark .ctf-mod-row p{color:#cbd5e1}.ctf-forum-dark .ctf-mod-row,.ctf-forum-dark .ctf-mod-card{border-color:#334155}.ctf-forum-dark .ctf-mod-empty{background:#0b1220;color:#94a3b8}@media(max-width:760px){.ctf-mod-hero,.ctf-mod-row{align-items:stretch;flex-direction:column}.ctf-mod-stats{width:100%}.ctf-mod-stats span{flex:1}.ctf-mod-actions{justify-content:flex-start}}

/* 0.6.92 Einladungs-/Affiliate-System */
.ctf-affiliate-card{
    border-color:#cbd5e1!important;
}
.ctf-affiliate-head h2{
    margin-bottom:7px;
}
.ctf-affiliate-head p{
    max-width:800px;
    margin:0;
    color:#64748b;
    line-height:1.6;
}
.ctf-affiliate-link{
    display:flex;
    gap:10px;
    margin:18px 0 22px;
}
.ctf-affiliate-link input{
    flex:1;
    min-width:0;
    padding:11px 12px;
    border:1px solid #cbd5e1;
    border-radius:9px;
    background:#f8fafc;
}
.ctf-affiliate-list-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin:18px 0 10px;
    padding-top:16px;
    border-top:1px solid #e2e8f0;
}
.ctf-affiliate-list-head h3{
    margin:0;
}
.ctf-affiliate-list-head span{
    color:#64748b;
    font-size:13px;
}
.ctf-affiliate-list{
    display:grid;
    gap:10px;
}
.ctf-affiliate-row{
    display:grid;
    grid-template-columns:minmax(120px,.8fr) minmax(220px,1.5fr) auto;
    gap:16px;
    align-items:center;
    padding:14px;
    border:1px solid #e2e8f0;
    border-radius:11px;
    background:#fff;
}
.ctf-affiliate-user strong,
.ctf-affiliate-user span{
    display:block;
}
.ctf-affiliate-user span{
    margin-top:3px;
    color:#64748b;
    font-size:12px;
}
.ctf-affiliate-progress>div:first-child{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:7px;
}
.ctf-affiliate-progress small{
    color:#64748b;
}
.ctf-affiliate-bar{
    height:8px;
    overflow:hidden;
    border-radius:999px;
    background:#e2e8f0;
}
.ctf-affiliate-bar i{
    display:block;
    height:100%;
    background:#2563eb;
    border-radius:999px;
}
.ctf-affiliate-reward{
    padding:6px 9px;
    border-radius:999px;
    background:#ecfdf3;
    color:#166534;
    font-weight:800;
    white-space:nowrap;
}
.ctf-affiliate-empty{
    padding:16px;
    border-radius:10px;
    background:#f8fafc;
    color:#64748b;
    text-align:center;
}
.ctf-referral-register-notice{
    margin-bottom:14px;
    padding:12px 14px;
    border:1px solid #bfdbfe;
    border-radius:9px;
    background:#eff6ff;
    color:#1e40af;
    font-weight:700;
}
.ctf-wrap.ctf-forum-dark .ctf-affiliate-card,
.ctf-wrap.ctf-forum-dark .ctf-affiliate-row{
    background:#111827!important;
    border-color:#334155!important;
}
.ctf-wrap.ctf-forum-dark .ctf-affiliate-head p,
.ctf-wrap.ctf-forum-dark .ctf-affiliate-user span,
.ctf-wrap.ctf-forum-dark .ctf-affiliate-progress small,
.ctf-wrap.ctf-forum-dark .ctf-affiliate-list-head span{
    color:#cbd5e1!important;
}
.ctf-wrap.ctf-forum-dark .ctf-affiliate-link input,
.ctf-wrap.ctf-forum-dark .ctf-affiliate-empty{
    background:#0b1220!important;
    border-color:#334155!important;
    color:#e5e7eb!important;
}
@media(max-width:720px){
    .ctf-affiliate-link{
        flex-direction:column;
    }
    .ctf-affiliate-row{
        grid-template-columns:1fr;
    }
    .ctf-affiliate-progress>div:first-child{
        flex-direction:column;
        gap:3px;
    }
}

/* 0.6.93 Account-Löschung innerhalb der Forum-Einstellungen */
.ctf-account-danger-inline{
    margin-top:22px;
    padding-top:20px;
    border-top:1px solid #fecaca;
}
.ctf-account-danger-inline h2{
    margin:0 0 8px;
}
.ctf-account-danger-inline p{
    margin:0 0 16px;
}
.ctf-wrap.ctf-forum-dark .ctf-account-danger-inline{
    border-top-color:#7f1d1d;
}

/* 0.6.94 Account löschen im freien Feld */
.ctf-setting-delete{justify-content:space-between}
.ctf-setting-delete>div>strong{color:#b42318}
.ctf-setting-delete .ctf-delete-account-btn{align-self:flex-start;margin-top:10px;padding:8px 12px}
.ctf-delete-pending{display:inline-block!important;width:max-content;margin-top:10px;padding:6px 9px;border-radius:7px;background:#fff7ed;color:#9a3412}

/* 0.6.95 Sicherheit */
.ctf-security-card{
    margin-top:14px;
}
.ctf-security-head{
    margin-bottom:18px;
}
.ctf-security-head h2{
    margin:0 0 6px;
}
.ctf-security-head p{
    margin:0;
    color:#64748b;
}
.ctf-security-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.ctf-security-grid article,
.ctf-security-2fa,
.ctf-security-passkey{
    padding:16px;
    border:1px solid #e2e8f0;
    border-radius:11px;
    background:#f8fafc;
}
.ctf-security-grid h3,
.ctf-security-2fa h3,
.ctf-security-passkey h3{
    margin:0 0 10px;
}
.ctf-security-grid article>p{
    margin:0 0 12px;
    color:#64748b;
}
.ctf-security-form{
    display:grid;
    gap:10px;
}
.ctf-security-form label{
    display:grid;
    gap:5px;
    font-weight:700;
}
.ctf-security-form input{
    width:100%;
    box-sizing:border-box;
    padding:10px 11px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#fff;
}
.ctf-security-2fa,
.ctf-security-passkey{
    margin-top:16px;
}
.ctf-security-2fa-status{
    display:grid;
    gap:4px;
    margin-bottom:12px;
    padding:12px;
    border-radius:9px;
    background:#fff;
    border:1px solid #e2e8f0;
}
.ctf-security-2fa-status.is-active{
    background:#ecfdf3;
    border-color:#bbf7d0;
    color:#166534;
}
.ctf-security-2fa-status span{
    font-size:13px;
}
.ctf-security-2fa-setup{
    padding:14px;
    border:1px solid #bfdbfe;
    border-radius:10px;
    background:#eff6ff;
}
.ctf-2fa-secret,
.ctf-2fa-uri{
    display:block;
    overflow-wrap:anywhere;
    margin:10px 0;
    padding:10px;
    border-radius:7px;
    background:#111827;
    color:#fff;
    font-size:15px;
}
.ctf-security-2fa details{
    margin:8px 0 14px;
}
.ctf-security-passkey{
    opacity:.82;
}
.ctf-2fa-login input[name="totp_code"]{
    letter-spacing:.18em;
    font-size:20px;
    text-align:center;
}
.ctf-wrap.ctf-forum-dark .ctf-security-grid article,
.ctf-wrap.ctf-forum-dark .ctf-security-2fa,
.ctf-wrap.ctf-forum-dark .ctf-security-passkey,
.ctf-wrap.ctf-forum-dark .ctf-security-2fa-status{
    background:#0b1220!important;
    border-color:#334155!important;
}
.ctf-wrap.ctf-forum-dark .ctf-security-form input{
    background:#111827!important;
    border-color:#475569!important;
    color:#fff!important;
}
.ctf-wrap.ctf-forum-dark .ctf-security-head p,
.ctf-wrap.ctf-forum-dark .ctf-security-grid article>p{
    color:#cbd5e1!important;
}
@media(max-width:760px){
    .ctf-security-grid{
        grid-template-columns:1fr;
    }
}

/* 0.6.96 Passwort-Sichtbarkeit in allen Frontend-Passwortfeldern */
.ctf-security-form .ctf-password-field{display:flex;width:100%;position:relative}
.ctf-security-form .ctf-password-field input{padding-right:44px}
.ctf-security-form .ctf-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%)}

/* 0.6.97 2FA QR-Code */
.ctf-2fa-qr-wrap{
    display:flex;
    align-items:center;
    gap:20px;
    margin:14px 0 18px;
    padding:16px;
    border:1px solid #bfdbfe;
    border-radius:12px;
    background:#ffffff;
}
.ctf-2fa-qr{
    flex:0 0 auto;
    width:230px;
    min-height:230px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px;
    box-sizing:border-box;
    border-radius:10px;
    background:#fff;
}
.ctf-2fa-qr img,
.ctf-2fa-qr canvas{
    display:block!important;
    max-width:210px!important;
    width:210px!important;
    height:210px!important;
}
.ctf-2fa-qr-wrap>div:last-child{
    min-width:0;
}
.ctf-2fa-qr-wrap>div:last-child>strong{
    display:block;
    margin-bottom:6px;
    font-size:17px;
}
.ctf-2fa-qr-wrap p{
    margin:0;
    line-height:1.55;
    color:#475569;
}
.ctf-2fa-manual{
    margin:12px 0;
}
.ctf-2fa-manual>span{
    display:block;
    margin-bottom:6px;
    font-weight:700;
}
.ctf-2fa-qr-error{
    padding:12px;
    color:#991b1b;
    text-align:center;
    font-size:13px;
}
.ctf-wrap.ctf-forum-dark .ctf-2fa-qr-wrap{
    background:#111827!important;
    border-color:#334155!important;
}
.ctf-wrap.ctf-forum-dark .ctf-2fa-qr{
    background:#fff!important;
}
.ctf-wrap.ctf-forum-dark .ctf-2fa-qr-wrap p{
    color:#cbd5e1!important;
}
@media(max-width:680px){
    .ctf-2fa-qr-wrap{
        flex-direction:column;
        align-items:flex-start;
    }
    .ctf-2fa-qr{
        align-self:center;
    }
}

/* 0.6.98 – 2FA Abbrechen & einmalige Sicherheitscodes */
.ctf-2fa-setup-actions{
    display:flex;
    gap:9px;
    align-items:center;
    flex-wrap:wrap;
    margin-top:12px;
}
.ctf-2fa-setup-actions form{
    margin:0;
}
.ctf-backup-codes-show{
    margin:14px 0;
    padding:16px;
    border:1px solid #f59e0b;
    border-radius:11px;
    background:#fffbeb;
}
.ctf-backup-codes-show strong{
    color:#92400e;
}
.ctf-backup-codes-show p{
    margin:5px 0 12px;
}
.ctf-backup-codes-show textarea{
    display:block;
    width:100%;
    max-width:420px;
    box-sizing:border-box;
    margin-bottom:10px;
    padding:12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:#fff;
    font:600 15px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    letter-spacing:.05em;
}
.ctf-backup-codes-status{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin:14px 0;
    padding:12px 14px;
    border:1px solid #dbeafe;
    border-radius:9px;
    background:#eff6ff;
}
.ctf-backup-codes-status span{
    color:#475569;
    font-size:13px;
}
.ctf-security-details{
    margin-top:10px;
    padding:11px 13px;
    border:1px solid #e2e8f0;
    border-radius:9px;
    background:#fff;
}
.ctf-security-details summary{
    cursor:pointer;
    font-weight:800;
}
.ctf-security-details>p{
    margin:10px 0;
    color:#64748b;
}
.ctf-security-details form{
    margin-top:12px;
}
.ctf-security-danger{
    border-color:#fecaca;
}
.ctf-security-danger summary{
    color:#b42318;
}
.ctf-2fa-login input[name="totp_code"]{
    letter-spacing:.08em;
}
.ctf-wrap.ctf-forum-dark .ctf-backup-codes-show{
    background:#2a2110!important;
    border-color:#a16207!important;
}
.ctf-wrap.ctf-forum-dark .ctf-backup-codes-show textarea,
.ctf-wrap.ctf-forum-dark .ctf-security-details{
    background:#111827!important;
    border-color:#334155!important;
    color:#fff!important;
}
.ctf-wrap.ctf-forum-dark .ctf-backup-codes-status{
    background:#0b1d35!important;
    border-color:#1e3a5f!important;
}
.ctf-wrap.ctf-forum-dark .ctf-backup-codes-status span,
.ctf-wrap.ctf-forum-dark .ctf-security-details>p{
    color:#cbd5e1!important;
}

/* 0.6.99 – 2FA QR/Layout Fix */
.ctf-2fa-qr-wrap{
    display:grid!important;
    grid-template-columns:180px minmax(0,1fr)!important;
    align-items:center!important;
    gap:18px!important;
    overflow:hidden!important;
}
.ctf-2fa-qr{
    width:180px!important;
    min-height:180px!important;
    height:180px!important;
    padding:8px!important;
    overflow:hidden!important;
    position:relative!important;
    box-sizing:border-box!important;
}
.ctf-2fa-qr canvas{
    display:none!important;
}
.ctf-2fa-qr img{
    display:block!important;
    width:164px!important;
    height:164px!important;
    max-width:164px!important;
    max-height:164px!important;
    position:static!important;
    margin:0 auto!important;
    object-fit:contain!important;
}
.ctf-2fa-qr-wrap>div:last-child{
    min-width:0!important;
    overflow:visible!important;
}
.ctf-2fa-manual{
    display:block!important;
    width:100%!important;
    margin:14px 0!important;
}
.ctf-2fa-manual .ctf-2fa-secret,
.ctf-2fa-secret{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding:12px 14px!important;
    background:#111827!important;
    color:#ffffff!important;
    border:1px solid #334155!important;
    border-radius:8px!important;
    font:700 15px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
    letter-spacing:.08em!important;
    overflow-wrap:anywhere!important;
    word-break:break-all!important;
    opacity:1!important;
    -webkit-text-fill-color:#ffffff!important;
}
.ctf-security-2fa-setup .ctf-2fa-manual>span{
    display:block!important;
    margin-bottom:7px!important;
    color:#334155!important;
    font-weight:700!important;
}
.ctf-wrap.ctf-forum-dark .ctf-security-2fa-setup .ctf-2fa-manual>span{
    color:#e2e8f0!important;
}
@media(max-width:680px){
    .ctf-2fa-qr-wrap{
        grid-template-columns:1fr!important;
    }
    .ctf-2fa-qr{
        justify-self:center!important;
    }
}

/* 0.7.00 – otpauth-Link lesbar darstellen */
.ctf-security-2fa-setup details{
    width:100%!important;
    box-sizing:border-box!important;
}
.ctf-security-2fa-setup .ctf-2fa-uri{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin:9px 0!important;
    padding:12px 14px!important;
    background:#111827!important;
    color:#ffffff!important;
    border:1px solid #334155!important;
    border-radius:8px!important;
    font:600 12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
    letter-spacing:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-all!important;
    opacity:1!important;
    visibility:visible!important;
    -webkit-text-fill-color:#ffffff!important;
}
.ctf-security-2fa-setup details[open] .ctf-2fa-uri{
    display:block!important;
}

/* 0.7.01 – Passkeys */
.ctf-security-passkey{opacity:1!important}
.ctf-passkey-message{display:none;margin:10px 0;padding:9px 11px;border-radius:8px;font-size:13px}
.ctf-passkey-message:not(:empty){display:block}
.ctf-passkey-message.is-ok{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.ctf-passkey-message.is-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.ctf-passkey-list{display:grid;gap:9px;margin-top:14px}
.ctf-passkey-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:12px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}
.ctf-passkey-row>div{display:grid;gap:3px}.ctf-passkey-row span{font-size:12px;color:#64748b}
.ctf-passkey-row details{text-align:right}.ctf-passkey-row details form{min-width:260px;margin-top:9px;text-align:left}
.ctf-passkey-empty{padding:11px;border-radius:8px;background:#fff;color:#64748b}
.ctf-passkey-login-separator{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:#94a3b8}
.ctf-passkey-login-separator:before,.ctf-passkey-login-separator:after{content:"";height:1px;background:#e2e8f0;flex:1}
.ctf-passkey-login{width:100%}
@media(max-width:680px){.ctf-passkey-row{display:block}.ctf-passkey-row details{margin-top:9px;text-align:left}.ctf-passkey-row details form{min-width:0}}

/* Moderation: Beiträge verschieben */
.ctf-move-reply{display:inline-block;vertical-align:middle}.ctf-move-reply summary{cursor:pointer}.ctf-move-reply form{min-width:320px;max-width:520px}.ctf-move-reply label{display:block;margin:8px 0}.ctf-move-reply select,.ctf-move-reply input{width:100%;box-sizing:border-box}.ctf-move-new{margin-top:8px}.ctf-move-reply:not([open]) .ctf-move-new{display:none}


/* 0.7.04 – tägliches Punkt-Spiel / Case Opening */
.ctf-point-game{max-width:1100px;margin:30px auto}.ctf-point-game-card{overflow:hidden;border:1px solid rgba(127,127,127,.22);border-radius:22px;padding:28px;background:var(--ctf-card-bg,#fff);box-shadow:0 16px 45px rgba(0,0,0,.08)}
.ctf-point-game-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:26px}.ctf-point-game-head h2{font-size:32px;margin:5px 0 8px}.ctf-point-game-head p{margin:0;max-width:700px}.ctf-point-game-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.12em;padding:5px 9px;border-radius:999px;background:rgba(127,127,127,.12)}
.ctf-point-game-balance{min-width:145px;text-align:center;padding:14px 18px;border-radius:16px;background:rgba(127,127,127,.1);font-size:19px}.ctf-point-game-balance strong{font-size:28px}.ctf-point-game-balance small{display:block;margin-top:3px;font-size:12px;opacity:.72}
.ctf-case-window{position:relative;overflow:hidden;border-radius:18px;border:2px solid rgba(127,127,127,.24);padding:18px 0;background:rgba(20,20,24,.96);box-shadow:inset 0 0 35px rgba(0,0,0,.55)}.ctf-case-window:before,.ctf-case-window:after{content:"";position:absolute;z-index:3;top:0;bottom:0;width:90px;pointer-events:none}.ctf-case-window:before{left:0;background:linear-gradient(90deg,rgba(20,20,24,1),rgba(20,20,24,0))}.ctf-case-window:after{right:0;background:linear-gradient(270deg,rgba(20,20,24,1),rgba(20,20,24,0))}
.ctf-case-pointer{position:absolute;z-index:5;left:50%;top:0;bottom:0;width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 14px rgba(255,255,255,.8)}.ctf-case-pointer:before{content:"▼";position:absolute;top:-2px;left:50%;transform:translateX(-50%);font-size:20px;color:#fff}.ctf-case-pointer:after{content:"▲";position:absolute;bottom:-2px;left:50%;transform:translateX(-50%);font-size:20px;color:#fff}
.ctf-case-belt{display:flex;gap:12px;width:max-content;transform:translateX(0);will-change:transform;padding:4px 0}.ctf-case-item{width:116px;min-width:116px;height:126px;box-sizing:border-box;border-radius:13px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(180deg,#31323a,#202127);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:inset 0 -4px 0 rgba(255,255,255,.05)}.ctf-case-item span{font-size:25px}.ctf-case-item strong{font-size:31px;line-height:1.1;margin-top:4px}.ctf-case-item small{text-transform:uppercase;font-size:10px;letter-spacing:.08em;opacity:.7}.ctf-case-item.uncommon{background:linear-gradient(180deg,#343b51,#242938)}.ctf-case-item.rare{background:linear-gradient(180deg,#473956,#2d2635)}.ctf-case-item.jackpot{background:linear-gradient(180deg,#55482f,#332c20)}.ctf-case-item.is-winner{outline:3px solid #fff;box-shadow:0 0 28px rgba(255,255,255,.75);transform:scale(1.04)}
.ctf-point-game-result{text-align:center;margin:22px 0 14px;font-size:17px}.ctf-point-game-result strong{font-size:22px}.ctf-point-game-result.is-win{font-size:21px}.ctf-point-game-result.is-error{font-weight:700}.ctf-point-game .ctf-point-game-spin{display:block;margin:0 auto;min-width:220px;font-size:16px}.ctf-point-game-security{text-align:center;font-size:12px;opacity:.68;margin:18px 0 0}
.ctf-forum-dark .ctf-point-game-card{background:#18191d;color:#f3f3f4}.ctf-forum-dark .ctf-point-game-balance,.ctf-forum-dark .ctf-point-game-kicker{background:rgba(255,255,255,.08)}
@media(max-width:700px){.ctf-point-game-card{padding:18px 12px}.ctf-point-game-head{display:block}.ctf-point-game-balance{margin-top:16px}.ctf-case-item{width:96px;min-width:96px;height:112px}.ctf-case-window:before,.ctf-case-window:after{width:45px}.ctf-point-game-head h2{font-size:27px}}


/* Casino Manager – offiziell verifizierter Anbietervertreter */
.ctf-casino-manager-badge{display:inline-flex;align-items:center;gap:6px;margin:7px 0 3px;padding:6px 9px;border-radius:999px;background:#eef7ff;border:1px solid #b9dbf4;color:#135b86;font-size:12px;font-weight:800;line-height:1.2;text-align:left}.ctf-casino-manager-badge.is-compact{max-width:170px;justify-content:center;white-space:normal}.ctf-casino-manager-check{display:inline-grid;place-items:center;flex:0 0 auto;width:17px;height:17px;border-radius:50%;background:#135b86;color:#fff;font-size:11px}.ctf-profile-identity>.ctf-casino-manager-badge{margin:0 0 14px}.ctf-forum-dark .ctf-casino-manager-badge{background:#102b3d;border-color:#27597a;color:#b9e2ff}.ctf-forum-dark .ctf-casino-manager-check{background:#67bfff;color:#07131d}.ctf-casino-manager-admin-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.ctf-casino-manager-admin-form label{display:flex;flex-direction:column;gap:4px;min-width:260px}.ctf-casino-manager-admin-form input[type=text]{min-width:260px}

/* 0.7.10 – Beitragskarten, Rollen und Moderationsaktionen aufgeräumt */
.ctf-post{
    grid-template-columns:170px minmax(0,1fr);
    border-color:#dde3eb;
    border-radius:15px;
    box-shadow:0 5px 22px rgba(15,23,42,.045);
}
.ctf-user{
    padding:20px 16px;
    background:linear-gradient(180deg,#f8fafc 0%,#f4f6f9 100%);
}
.ctf-user .ctf-avatar{margin-bottom:9px}
.ctf-user .ctf-avatar img{
    border-radius:12px;
    box-shadow:0 0 0 3px #fff,0 3px 10px rgba(15,23,42,.10);
}
.ctf-user-name{
    display:block;
    font-size:14px;
    line-height:1.25;
    margin:2px 0 8px;
    overflow-wrap:anywhere;
}
.ctf-user-name a{font-weight:800;text-decoration:none}
.ctf-user-meta{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex-wrap:wrap;
    margin:7px 0 5px;
}
.ctf-user-online,
.ctf-user-rank{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:auto!important;
    margin:0!important;
    padding:4px 8px;
    border:1px solid #e1e7ef;
    border-radius:999px;
    background:#fff;
    color:#526071!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1.2;
}
.ctf-user-online{color:#15803d!important;border-color:#bbf7d0;background:#f0fdf4}
.ctf-user-online .ctf-online-dot{width:7px;height:7px;margin:0;box-shadow:none}
.ctf-user-rank.ctf-rank-administrator{
    color:#991b1b!important;
    border-color:#fecaca;
    background:#fff1f2;
}
.ctf-user-rank.ctf-rank-administrator::before{content:"👑"}
.ctf-user-rank.ctf-rank-moderator{
    color:#1d4ed8!important;
    border-color:#bfdbfe;
    background:#eff6ff;
}
.ctf-user-rank.ctf-rank-moderator::before{content:"🛡"}
.ctf-user-rank.ctf-rank-casino-manager::before{content:none}
.ctf-user-postcount{
    display:block;
    margin-top:9px!important;
    color:#8a94a3!important;
    font-size:11px!important;
}
.ctf-casino-manager-badge.is-compact{
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:100%;
    box-sizing:border-box;
    margin:6px 0 8px!important;
    padding:7px 8px!important;
    border:1px solid #93c5fd!important;
    border-radius:10px!important;
    background:#eff6ff!important;
    color:#075985!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1.3!important;
    text-align:center;
}
.ctf-casino-manager-badge.is-compact .ctf-casino-manager-check{
    flex:0 0 auto;
    display:inline-grid;
    place-items:center;
    width:17px;
    height:17px;
    border-radius:50%;
    background:#0f6fa8;
    color:#fff;
    font-size:11px;
}
.ctf-post-body{padding:21px 22px 20px}
.ctf-post-body h1{font-size:27px;line-height:1.15;margin-bottom:9px}
.ctf-post-topline{padding-bottom:12px;border-bottom:1px solid #eef1f5;margin-bottom:18px}
.ctf-post-share{border-radius:9px;padding:7px 11px}
.ctf-post-actions{
    display:block;
    margin-top:20px;
    padding-top:14px;
    border-top:1px solid #eef1f5;
}
.ctf-post-main-actions{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
}
.ctf-action-btn,
.ctf-reaction-btn{
    min-height:36px;
    border-color:#dde3eb;
    box-shadow:0 1px 2px rgba(15,23,42,.025);
    transition:background .15s ease,border-color .15s ease,transform .12s ease;
}
.ctf-action-btn:hover,
.ctf-reaction-btn:hover{background:#f8fafc;border-color:#c8d2df;transform:translateY(-1px)}
.ctf-edit-btn{color:#e11d48!important;border-color:#fecdd3!important;background:#fff7f9!important}
.ctf-quote-btn{font-weight:800}
.ctf-report>summary{
    display:inline-flex;
    align-items:center;
    min-height:36px;
    box-sizing:border-box;
    padding:7px 10px;
    border:1px solid transparent;
    border-radius:8px;
    color:#64748b;
    font-weight:700;
    list-style:none;
}
.ctf-report>summary::-webkit-details-marker{display:none}
.ctf-report>summary:hover{background:#f8fafc;color:#334155}
.ctf-report[open]>summary{background:#f1f5f9;color:#334155}
.ctf-report form{
    margin-top:9px!important;
    padding:13px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    background:#f8fafc;
}
.ctf-post-mod-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
    padding:10px 11px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    background:#f8fafc;
}
.ctf-mod-actions-label{
    display:inline-flex;
    align-items:center;
    height:28px;
    padding:0 8px;
    border-radius:7px;
    background:#e2e8f0;
    color:#475569;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.ctf-post-mod-actions .ctf-move-reply>summary{
    border-color:#dbe4ef;
    background:#fff;
}
.ctf-post-mod-actions .ctf-danger{background:#fff1f2!important;border-color:#fecaca!important;color:#b91c1c!important}
.ctf-modbar{
    gap:7px;
    border-color:#dbe4ef;
    background:#f8fafc;
    border-radius:11px;
    padding:10px 11px;
}
.ctf-modbar>strong{
    padding:5px 8px;
    border-radius:7px;
    background:#e2e8f0;
    color:#475569;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.ctf-wrap.ctf-forum-dark .ctf-user{background:linear-gradient(180deg,#121a24,#0f1720)!important}
.ctf-wrap.ctf-forum-dark .ctf-user-online{background:#0d2a1c!important;border-color:#245c3c!important;color:#8ee0ad!important}
.ctf-wrap.ctf-forum-dark .ctf-user-rank{background:#151f2b!important;border-color:#334155!important;color:#cbd5e1!important}
.ctf-wrap.ctf-forum-dark .ctf-user-rank.ctf-rank-administrator{background:#32191b!important;border-color:#6b2b30!important;color:#ff9b98!important}
.ctf-wrap.ctf-forum-dark .ctf-user-rank.ctf-rank-moderator{background:#13233d!important;border-color:#27466f!important;color:#8fbcff!important}
.ctf-wrap.ctf-forum-dark .ctf-casino-manager-badge.is-compact{background:#10283a!important;border-color:#285d82!important;color:#9dd8ff!important}
.ctf-wrap.ctf-forum-dark .ctf-post-topline,
.ctf-wrap.ctf-forum-dark .ctf-post-actions{border-color:#263342!important}
.ctf-wrap.ctf-forum-dark .ctf-post-mod-actions,
.ctf-wrap.ctf-forum-dark .ctf-report form,
.ctf-wrap.ctf-forum-dark .ctf-modbar{background:#111b27!important;border-color:#334155!important}
.ctf-wrap.ctf-forum-dark .ctf-mod-actions-label,
.ctf-wrap.ctf-forum-dark .ctf-modbar>strong{background:#243244!important;color:#cbd5e1!important}

@media(max-width:760px){
    .ctf-post{grid-template-columns:1fr}
    .ctf-user{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;text-align:left;padding:14px 16px}
    .ctf-user .ctf-avatar{grid-row:1/5;margin:0}
    .ctf-user-name{margin:0 0 3px}
    .ctf-user-meta{justify-content:flex-start;margin:2px 0}
    .ctf-casino-manager-badge.is-compact{width:auto;max-width:100%;justify-content:flex-start;margin:3px 0 4px!important}
    .ctf-user-postcount{margin-top:2px!important}
    .ctf-post-body{padding:17px 16px}
    .ctf-post-main-actions,.ctf-post-mod-actions{gap:6px}
}

/* 0.7.13 – Eigene Profilbilder auch in der Admin-Userverwaltung */
.ctf-admin-avatar{object-fit:cover;border-radius:50%;vertical-align:middle;display:inline-block}

/* 0.7.42 – username-less passkey */
.ctf-passkey-login-hint{display:block;margin-top:7px;color:#64748b;font-size:12px;line-height:1.45}
.ctf-wrap.ctf-forum-dark .ctf-passkey-login-hint{color:#94a3b8}


/* 0.7.43 Messenger dark mode fix */
.ctf-wrap.ctf-forum-dark.ctf-messenger-layout{color:var(--ctfd-text)!important;}
.ctf-wrap.ctf-forum-dark .ctf-messenger-sidebar-head span,
.ctf-wrap.ctf-forum-dark .ctf-pm-conversations small,
.ctf-wrap.ctf-forum-dark .ctf-pm-empty-state,
.ctf-wrap.ctf-forum-dark .ctf-pm-empty-state p{color:var(--ctfd-muted)!important;}
.ctf-wrap.ctf-forum-dark .ctf-pm-conversations>a{color:var(--ctfd-text)!important;background:var(--ctfd-surface)!important;}
.ctf-wrap.ctf-forum-dark .ctf-pm-conversations>a:hover{background:var(--ctfd-surface-3)!important;}
.ctf-wrap.ctf-forum-dark .ctf-pm-empty-state{background:var(--ctfd-surface)!important;}


/* CasinoTester frontend authentication – 0.7.44 */
.ctf-auth-modern{--ctf-border:#24364d;--ctf-bg:#0d1927;--ctf-text:#f4f7fb;--ctf-muted:#9cabc0;--ctf-accent:#1fc76a;max-width:720px;margin:42px auto;padding:34px;background:linear-gradient(145deg,#0d1927 0%,#12223a 100%);border:1px solid #24364d;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.24);color:#f4f7fb}
.ctf-auth-modern .ctf-auth-kicker{display:inline-flex;padding:6px 10px;margin-bottom:12px;border:1px solid #31506f;border-radius:999px;background:#13263b;color:#a9d6ff;font-size:11px;font-weight:900;letter-spacing:.08em}
.ctf-auth-modern h2{margin:0 0 8px;color:#fff;font-size:36px;line-height:1.08}.ctf-auth-modern .ctf-auth-intro{margin:0 0 24px;color:#aebbd0;line-height:1.6}.ctf-auth-modern .ctf-required-note{color:#8392a8;font-size:13px}
.ctf-auth-modern form{padding:22px;border:1px solid #263a52;border-radius:16px;background:#0a1522}.ctf-auth-modern label{color:#e9eef6}.ctf-auth-modern input[type=text],.ctf-auth-modern input[type=email],.ctf-auth-modern input[type=password]{background:#101f30!important;border:1px solid #31465e!important;color:#fff!important;min-height:48px;outline:none}.ctf-auth-modern input:focus{border-color:#1fc76a!important;box-shadow:0 0 0 3px rgba(31,199,106,.14)}
.ctf-auth-modern .ctf-btn{background:#1fc76a!important;color:#07130c!important;min-height:48px;text-align:center}.ctf-auth-modern .ctf-action-btn{background:#13243a;color:#eef4fb;border-color:#31465e;min-height:46px}.ctf-auth-modern .ctf-inline,.ctf-auth-modern .ctf-passkey-login-hint,.ctf-auth-modern .ctf-auth-links,.ctf-auth-modern .ctf-auth-register-hint{color:#9cabc0}.ctf-auth-modern a{color:#72b9ff}.ctf-auth-modern .ctf-message{background:#102d22;border-color:#245d42;color:#dff8ea}.ctf-auth-modern .ctf-message.ctf-error{background:#321a20;border-color:#713342;color:#ffdce4}
@media(max-width:760px){.ctf-auth-modern{margin:20px 12px;padding:22px 16px;border-radius:17px}.ctf-auth-modern h2{font-size:29px}.ctf-auth-modern form{padding:16px}.ctf-auth-modern .ctf-auth-links{gap:10px}}


/* 0.2.27 – Forum-Statistiken vollständig im globalen Darkmode */
.ctf-wrap.ctf-forum-dark .ctf-widget:has(.ctf-stats-inner),
.ctf-wrap.ctf-forum-dark .ctf-stats,
.ctf-wrap.ctf-forum-dark .ctf-stats-inner,
.ctf-wrap.ctf-forum-dark .ctf-stats-grid,
.ctf-wrap.ctf-forum-dark .ctf-stats-grid > *,
.ctf-wrap.ctf-forum-dark [class*="ctf-stat-"] {
  background:var(--ctfd-surface)!important; color:var(--ctfd-text)!important; border-color:var(--ctfd-border)!important;
}
.ctf-wrap.ctf-forum-dark .ctf-stats-inner :is(h1,h2,h3,h4,p,span,strong,small,div),
.ctf-wrap.ctf-forum-dark .ctf-stats-grid :is(h1,h2,h3,h4,p,span,strong,small,div){color:var(--ctfd-text)!important;}
.ctf-wrap.ctf-forum-dark .ctf-stats-inner small,
.ctf-wrap.ctf-forum-dark .ctf-stats-grid small{color:var(--ctfd-muted)!important;}

/* 0.2.45 – sidebar statistics counters readable in dark mode */
.ctf-wrap.ctf-forum-dark .ctf-sidebar-stats strong,
.ctf-wrap.ctf-forum-dark .ctf-widget .ctf-sidebar-stats strong,
.ctn-forum-shortcode-shell .ctf-wrap.ctf-forum-dark .ctf-sidebar-stats strong {
 color:#f4f7fb!important; opacity:1!important; font-weight:900!important;
}
.ctf-wrap.ctf-forum-dark .ctf-sidebar-stats span,
.ctf-wrap.ctf-forum-dark .ctf-widget .ctf-sidebar-stats span {
 color:#94a3b8!important; opacity:1!important;
}
