/* TurKTeamV2 — sayfa bileşenleri (konu/postbit, profil, kullanıcı paneli, DM, editör).
   Kaynak: images/turkteam/turkteam.css bölümleri; renkler Sinisterly paletine çekildi.
   v2.css'ten önce yüklenir, v2.css üstüne ince ayar yapar. */

:root {
    --tt-red-hi: #811919;
    --tt-red: #6e1313;
    --tt-red-lo: #500c0c;
    --tt-red-edge: #270808;
    --tt-accent: #ec3737;
    --tt-panel: #1c1c1c;
    --tt-panel-2: #212121;
    --tt-row: #1e1e1e;
    --tt-line: #292929;
    --tt-edge: #111111;
    --tt-text: #e6e6e6;
    --tt-muted: #888888;
    --tt-bar: linear-gradient(180deg, #811919 0%, #6e1313 30%, #5c100f 50%, #500c0c 70%, #521010 100%);
}


/* ---------- Konu sayfası ---------- */

.tt_threadbar {
    margin: 0 0 10px;
}

.tt_usersbrowsing {
    background: linear-gradient(180deg, #d6eeaa, #c5e494);
    border: 1px solid #9fc066;
    border-radius: 3px;
    color: #55702b;
    display: inline-block;
    font-size: 12px;
    padding: 11px 12px;
}

.tt_usersbrowsing a,
.tt_usersbrowsing a span {
    font-style: italic;
    font-weight: 700;
}

.tt_browsing br {
    display: none;
}

.tt_threadbar .float_right {
    padding-top: 6px !important;
}

.tt_threadbar .float_right + .float_right {
    margin-right: 12px;
}

.tt_threadhead {
    align-items: center;
    background: var(--tt-bar);
    border: 1px solid var(--tt-red-edge);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 3px #111, 0 6px 16px rgba(0, 0, 0, 0.45);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 4px 3px 12px;
    min-height: 56px;
    padding: 0 12px 0 16px;
}

.tt_threadhead h1 {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.tt_threadhead .tt_search {
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.tt_threadhead .tt_search .button {
    background: linear-gradient(180deg, #3a3a3a, #1c1c1c) !important;
}

.tt_threadsearch input.textbox,
.tt_threadsearch input.textbox:focus {
    width: 180px;
}

.tt_threadsub,
.tt_threadfoot {
    margin: 0 0 10px;
}

.tt_threadsub a {
    color: #bbb;
}

.tt_threadfoot {
    background: #171717;
    border: 1px solid var(--tt-edge);
    border-radius: 3px;
    margin-top: 10px;
    padding: 8px 10px;
}

.tt_nextprev {
    font-weight: 700;
    padding-top: 6px;
    text-align: center;
}

.tt_nextprev span {
    color: #555;
    margin: 0 6px;
}

#posts_container {
    background: transparent;
    padding: 0;
}

/* ---------- Postbit ---------- */

.tt_post {
    background: #1b1b1b;
    border: 1px solid var(--tt-edge);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025), 0 6px 18px rgba(0, 0, 0, 0.5);
    margin: 0 0 16px;
    overflow: hidden;
}

.tt_post_main {
    display: flex;
}

.tt_post .post_author {
    background: linear-gradient(180deg, #1c1c1c, #171717);
    border: 0;
    border-right: 1px solid #0e0e0e;
    box-shadow: 1px 0 0 #262626;
    box-sizing: border-box;
    flex: 0 0 230px;
    overflow: visible;
    padding: 0 16px 16px;
    position: relative;
    text-align: center;
}

.tt_author_cover {
    background: linear-gradient(180deg, rgba(122, 16, 16, 0.55), rgba(23, 23, 23, 1) 96%), url(../turkteam/banner.jpg) 70% 45% / 420px auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    height: 74px;
    margin: 0 -16px;
}

.tt_avatar_wrap {
    display: inline-block;
    margin: -52px auto 10px;
    position: relative;
}

.tt_post .post_author div.author_avatar {
    float: none;
    margin: 0;
}

.tt_post .post_author div.author_avatar img {
    background: #111;
    border: 3px solid #181818;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #9b1b1b, 0 8px 18px rgba(0, 0, 0, 0.7);
    display: block;
    height: 112px;
    object-fit: cover;
    padding: 0;
    width: 112px;
}

.tt_avatar_wrap .tt_dot {
    border: 3px solid #181818;
    bottom: -3px;
    height: 12px;
    position: absolute;
    right: -3px;
    width: 12px;
}

.tt_dot {
    border-radius: 50%;
    display: inline-block;
    flex: none;
    height: 9px;
    width: 9px;
}

.tt_dot_on {
    background: #3bd13b;
    box-shadow: 0 0 8px rgba(80, 255, 80, 0.8);
}

.tt_dot_off {
    background: #5a5a5a;
}

.tt_post .post_author div.author_information {
    float: none;
    padding: 0;
    text-align: center;
}

.tt_post_name a,
.tt_post_name a span,
.tt_post_name a strong,
.tt_post_name a em {
    font-size: 17px;
    font-style: italic;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.tt_usertitle {
    color: #bdbdbd;
    font-size: 12px;
    margin: 2px 0 6px;
}

.tt_groupimg {
    margin: 0 0 4px;
}

.tt_groupimg img {
    max-width: 100%;
}

.tt_stars {
    line-height: 1;
}

.tt_stars img {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
    vertical-align: middle;
}

.tt_post .post_author div.author_statistics {
    border: 0;
    color: #8d8d8d;
    float: none;
    font-size: 11px;
    margin: 12px 0 0;
    padding: 0;
}

.tt_chips {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}

.tt_chip,
a.tt_chip:link,
a.tt_chip:visited {
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff !important;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    padding: 6px 4px 5px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.tt_chip b,
.tt_chip b * {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700 !important;
}

.tt_chip b a {
    color: #fff !important;
}

.tt_chip small {
    font-size: 9.5px;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-transform: uppercase;
}

.tt_chip_posts { background: linear-gradient(180deg, #f8ac2b, #dd8106); }
.tt_chip_rep { background: linear-gradient(180deg, #59b85b, #378f39); }
.tt_chip_warn { background: linear-gradient(180deg, #e05656, #b92f2f); }

a.tt_chip:hover {
    filter: brightness(1.1);
}

.tt_userdetails {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    text-align: left;
}

.tt_userdetails li {
    border-top: 1px dashed #2c2c2c;
    display: flex;
    font-size: 11.5px;
    justify-content: space-between;
    padding: 6px 2px;
}

.tt_userdetails li span {
    color: #7f7f7f;
}

.tt_userdetails li b {
    color: #d6d6d6;
    font-weight: 500;
}

.tt_post .post_content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 0;
}

.tt_post .post_head.tt_post_head {
    align-items: center;
    background: linear-gradient(180deg, #252525, #1f1f1f);
    border-bottom: 1px solid #111;
    box-shadow: inset 0 -1px 0 #2a2a2a;
    display: flex;
    font-size: 12px;
    gap: 14px;
    margin: 0;
    min-height: 44px;
    padding: 0 16px;
}

.tt_post_subj {
    color: #fff;
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_post_subj img {
    margin-right: 6px;
    vertical-align: middle;
}

.tt_post .post_head span.post_date {
    color: #8f8f8f;
    white-space: nowrap;
}

.tt_post .post_head span.post_date i {
    color: #b52222;
    margin-right: 3px;
}

.tt_post_num .float_right {
    float: none !important;
}

.tt_post_num a:link,
.tt_post_num a:visited {
    background: #2a0c0c;
    border: 1px solid #4a1010;
    border-radius: 3px;
    color: #ff8080 !important;
    display: inline-block;
    font-weight: 700;
    padding: 2px 8px;
}

.tt_post_num a:hover {
    background: #8a1515;
    color: #fff !important;
}

.tt_post .post_body {
    color: #e6e6e6;
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;
    min-height: 150px;
    padding: 18px 20px;
}


/* ---------- Profil ---------- */

.tt_profile_avatar img {
    background: #111;
    border: 3px solid #181818;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #9b1b1b, 0 8px 18px rgba(0, 0, 0, 0.7);
    display: block;
    height: auto;
    max-width: 150px;
}

.tt_stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tt_stat,
a.tt_stat:link,
a.tt_stat:visited {
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff !important;
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 30px;
    min-width: 40px;
    padding: 0 12px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.tt_stat *,
.tt_stat a {
    color: #fff !important;
    font-weight: 700 !important;
}

.tt_stat_posts { background: linear-gradient(180deg, #f8ac2b, #dd8106); }
.tt_stat_rep { background: linear-gradient(180deg, #59b85b, #378f39); }
.tt_stat_warn { background: linear-gradient(180deg, #e05656, #b92f2f); }
.tt_stat_act { background: linear-gradient(180deg, #4a4a4a, #2b2b2b); }

a.tt_stat:hover {
    filter: brightness(1.12);
}

.tt_profile_card {
    background: #1d1d1d;
    border: 1px solid var(--tt-edge);
    border-radius: 0 0 3px 3px;
    border-top: 0;
    display: flex;
    gap: 22px;
    margin: 0 0 14px;
    padding: 20px 18px;
}

.tt_profile_avatar {
    flex: none;
}

.tt_profile_info {
    flex: 1;
}

.tt_profile_name,
.tt_profile_name a,
.tt_profile_name span {
    color: #8a8a8a;
    font-size: 34px;
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
}

.tt_profile_title {
    color: #c9c9c9;
    margin: 2px 0 4px;
}

.tt_profile_group img {
    margin: 2px 0;
}

.tt_profile_group br {
    display: none;
}

.tt_profile_meta {
    color: #cfcfcf;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px 16px;
    margin: 6px 0;
}

.tt_profile_meta strong {
    color: #9a9a9a;
    font-weight: 500;
}

.tt_profile_status {
    margin: 4px 0 10px;
}

.tt_status_on,
a.tt_status_on:link,
a.tt_status_on:visited,
.tt_status_off {
    background: linear-gradient(180deg, #f8ac2b, #e88a0c);
    border-radius: 2px;
    color: #fff !important;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
}

.tt_status_off {
    background: linear-gradient(180deg, #555, #3a3a3a);
}

.tt_profile_info .tt_stats {
    justify-content: flex-start;
}

.tt_profile_actions {
    align-self: flex-start;
    flex: none;
}

.tt_tabs {
    display: flex;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.tt_tabs li a {
    background: linear-gradient(180deg, #232323, #1a1a1a);
    border: 1px solid #333;
    border-left-width: 0;
    color: #fff !important;
    display: block;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 16px;
}

.tt_tabs li:first-child a {
    border-left-width: 1px;
}

.tt_tabs li a:hover,
.tt_tabs li a.active {
    background: var(--tt-bar);
    border-color: var(--tt-red-edge);
}

.tt_infotable td.trow1,
.tt_infotable td.trow2 {
    font-size: 12px;
    padding: 14px 10px;
}

.tt_infotable td strong {
    color: #f0f0f0;
}

.tt_empty {
    background: #1d1d1d;
    border: 1px solid var(--tt-edge);
    border-radius: 3px;
    color: var(--tt-muted);
    padding: 16px;
}

.tt_tabpanel .tborder {
    margin-bottom: 14px !important;
}


/* ---------- Kullanıcı Kontrol Paneli ---------- */

/* Outer UCP shell only — never display:contents (breaks nested MyBB tables). */
.tt_ucp_layout,
table:has(> tbody > tr > .tt_ucp_nav),
table:has(> tr > .tt_ucp_nav) {
    border-collapse: separate;
    border-spacing: 0;
    display: block;
    margin: 0 0 18px !important;
    width: 100%;
}

.tt_ucp_layout > tbody,
table:has(> tbody > tr > .tt_ucp_nav) > tbody {
    display: block;
    width: 100%;
}

.tt_ucp_layout > tbody > tr,
.tt_ucp_layout > tr,
table:has(> tbody > tr > .tt_ucp_nav) > tbody > tr,
table:has(> tr > .tt_ucp_nav) > tr {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    width: 100%;
}

.tt_ucp_nav {
    flex: 0 0 250px;
    min-width: 0;
    width: 250px !important;
}

.tt_ucp_nav + td,
.tt_ucp_main {
    flex: 1 1 auto;
    min-width: 0;
    vertical-align: top;
    width: auto !important;
}

.tt_ucp_sidebar {
    background: var(--tt-panel);
    border: 1px solid var(--tt-edge);
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 12px;
}

.tt_ucp_side_head {
    background: var(--tt-bar);
    border-bottom: 1px solid var(--tt-red-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 14px;
}

.tt_ucp_side_head .fa {
    margin-right: 8px;
    opacity: 0.9;
}

.tt_ucp_side_nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 10px;
}

.tt_ucp_side_nav > .usercp_nav_item,
.tt_ucp_group_body > .usercp_nav_item {
    align-items: center;
    border-left: 3px solid transparent;
    color: #b8b8b8 !important;
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.4;
    padding: 9px 14px;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tt_ucp_side_nav > .usercp_nav_item:hover,
.tt_ucp_group_body > .usercp_nav_item:hover {
    background: rgba(183, 50, 62, 0.1);
    border-left-color: #c9404d;
    color: #fff !important;
}

.tt_ucp_side_nav > .usercp_nav_item .fa,
.tt_ucp_group_body > .usercp_nav_item .fa {
    color: #7a7a7a;
    flex: 0 0 16px;
    font-size: 13px;
    text-align: center;
    width: 16px;
}

.tt_ucp_side_nav > .usercp_nav_item:hover .fa,
.tt_ucp_group_body > .usercp_nav_item:hover .fa {
    color: #db5e69;
}

.tt_ucp_group {
    border-top: 1px solid #2a2a2a;
    margin: 0;
}

.tt_ucp_group > summary {
    align-items: center;
    color: #d87880;
    cursor: pointer;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.04em;
    list-style: none;
    padding: 12px 14px 8px;
    text-transform: uppercase;
    user-select: none;
}

.tt_ucp_group > summary::-webkit-details-marker {
    display: none;
}

.tt_ucp_group > summary::after {
    color: #666;
    content: "\f107";
    font-family: FontAwesome;
    margin-left: auto;
    transition: transform 0.15s ease;
}

.tt_ucp_group[open] > summary::after {
    transform: rotate(180deg);
}

.tt_ucp_group_body {
    display: flex;
    flex-direction: column;
    padding: 0 0 6px;
}

.usercp_nav_item {
    background-image: none !important;
    padding-left: 14px !important;
}

.usercp_nav_sub_pmfolder,
.usercp_nav_trash_pmfolder {
    padding-left: 28px !important;
}

.usercp_nav_trash_pmfolder .fa:before {
    content: "\f1f8";
}

.usercp_nav_sub_pmfolder .fa:before {
    content: "\f07b";
}

.tt_ucp_hero {
    align-items: center;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(140, 20, 20, 0.28), transparent 55%),
        linear-gradient(180deg, #232323, #1a1a1a);
    border: 1px solid var(--tt-edge);
    border-radius: 4px;
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 22px 20px;
    position: relative;
}

.tt_ucp_hero:before {
    background: var(--tt-bar);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.tt_ucp_hero_avatar .usercp_container,
.tt_ucp_avatar {
    background: #141414;
    border: 2px solid #3a1212;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.tt_ucp_hero_avatar img,
.tt_ucp_avatar img {
    display: block;
    height: 96px;
    object-fit: cover;
    width: 96px;
}

.tt_ucp_eyebrow {
    color: #c86771;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tt_ucp_hero_name {
    color: #f2f2f2;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.tt_ucp_hero_name a {
    color: inherit !important;
}

.tt_ucp_hero_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
}

.tt_ucp_hero_meta span {
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.5;
}

.tt_ucp_hero_meta strong {
    color: #d0d0d0;
    font-weight: 600;
    margin-right: 4px;
}

.tt_ucp_hero_meta .fa {
    color: #a84848;
    margin-right: 5px;
    width: 14px;
}

.tt_ucp_hero_extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt_ucp_chip {
    background: #191919;
    border: 1px solid #333;
    border-radius: 4px;
    color: #cfcfcf;
    display: inline-flex;
    font-size: 11.5px;
    gap: 6px;
    padding: 6px 10px;
}

.tt_ucp_chip a {
    color: #e99898 !important;
}

.tt_ucp_hero_extra i {
    color: #8d8d8d;
    display: block;
    font-size: 11px;
    font-style: normal;
    margin-top: 4px;
    overflow-wrap: anywhere;
    width: 100%;
}

.tt_ucp_hero_extra > br {
    display: none;
}

.tt_ucp_panel {
    background: var(--tt-panel);
    border: 1px solid var(--tt-edge);
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.tt_ucp_panel_head {
    align-items: center;
    background: var(--tt-bar);
    border-bottom: 1px solid var(--tt-red-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.tt_ucp_panel_head .fa {
    margin-right: 7px;
}

.tt_ucp_panel_head a:link,
.tt_ucp_panel_head a:visited {
    color: #efd0d0 !important;
    font-size: 11px;
    font-weight: 500;
}

.tt_ucp_panel_head a:hover {
    color: #fff !important;
}

.tt_ucp_panel_body {
    padding: 14px;
}

.tt_ucp_table_wrap {
    overflow-x: auto;
}

.tt_ucp_table.tborder,
.tt_ucp_panel .tborder {
    border: 0 !important;
    border-radius: 0;
    margin: 0 !important;
}

.tt_ucp_actions {
    margin-top: 12px;
    text-align: right;
}

.usercp_notepad {
    background: #151515;
    border: 1px solid #080808;
    border-radius: 3px;
    box-sizing: border-box;
    color: #ddd;
    font: inherit;
    min-height: 140px;
    padding: 10px;
    width: 100%;
}

.tt_ucp_nav + td .tborder,
.tt_ucp_main .tborder {
    margin-bottom: 14px;
}

.tt_ucp_nav + td fieldset,
.tt_ucp_main fieldset {
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 4px;
    margin: 0 0 12px;
    padding: 12px 14px;
}

.tt_ucp_nav + td fieldset legend,
.tt_ucp_main fieldset legend {
    color: #e2a0a0;
    font-size: 12px;
    padding: 0 6px;
}

@media (max-width: 900px) {
    .tt_ucp_layout > tbody > tr,
    .tt_ucp_layout > tr,
    table:has(> tbody > tr > .tt_ucp_nav) > tbody > tr,
    table:has(> tr > .tt_ucp_nav) > tr {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .tt_ucp_nav {
        flex: 0 0 auto;
        width: 100% !important;
    }

    .tt_ucp_sidebar {
        position: static;
    }

    .tt_ucp_side_nav {
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
    }

    .tt_ucp_side_nav > .usercp_nav_item {
        border: 1px solid #303030;
        border-radius: 4px;
        padding: 9px 10px;
    }

    .tt_ucp_group {
        border: 1px solid #303030;
        border-radius: 4px;
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .tt_ucp_hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 16px;
    }
}


/* ---------- DM (Agarla tarzı) ---------- */

.tt_dm_app {
    --dm-line: #2a2a2a;
    --dm-side: #191919;
    --dm-hover: #222;
    --dm-mine: linear-gradient(180deg, #5a1414, #430e0e);
    --dm-mine-edge: #6e1a1a;
    background: var(--tt-panel);
    border: 1px solid var(--tt-edge);
    border-radius: 4px;
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    /* fixed height so the message pane scrolls inside instead of growing the page */
    height: clamp(520px, calc(100vh - 220px), 780px);
    overflow: hidden;
    position: relative;
}

.tt_dm_app button {
    font-family: inherit;
}

.tt_dm_sidebar {
    background: var(--dm-side);
    border-right: 1px solid var(--dm-line);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.tt_dm_side_head {
    align-items: center;
    background: var(--tt-bar);
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    justify-content: space-between;
    padding: 10px 14px;
}

.tt_dm_side_actions {
    display: flex;
    gap: 6px;
}

.tt_dm_iconbtn {
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 30px;
}

.tt_dm_iconbtn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.tt_dm_iconbtn[hidden] {
    display: none;
}

.tt_dm_search {
    background: #121212;
    border: 0;
    border-bottom: 1px solid var(--dm-line);
    box-sizing: border-box;
    color: #ddd;
    flex: 0 0 auto;
    font: inherit;
    font-size: 12.5px;
    padding: 11px 14px;
    width: 100%;
}

.tt_dm_search:focus {
    background: #0e0e0e;
    outline: none;
}

.tt_dm_list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.tt_dm_list_empty,
.tt_dm_loading {
    color: var(--tt-muted);
    font-size: 12.5px;
    line-height: 1.6;
    padding: 28px 18px;
    text-align: center;
}

.tt_dm_list_empty > i.fa {
    color: #444;
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.tt_dm_link {
    background: none;
    border: 0;
    color: #e06b75;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 0;
}

.tt_dm_link:hover {
    color: #ff8b95;
    text-decoration: underline;
}

.tt_dm_item {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #242424;
    border-left: 3px solid transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    text-align: left;
    width: 100%;
}

.tt_dm_item:hover {
    background: var(--dm-hover);
}

.tt_dm_item.is-active {
    background: #261a1b;
    border-left-color: #c9404d;
}

.tt_dm_item_av {
    align-items: center;
    background: #2a2a2a;
    border-radius: 50%;
    color: #888;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.tt_dm_item_av.is-group {
    background: linear-gradient(135deg, #5a1414, #2a0a0a);
    color: #f0b5b5;
}

.tt_dm_item_av.is-sm {
    flex-basis: 30px;
    font-size: 12px;
    height: 30px;
    width: 30px;
}

.tt_dm_item_av img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tt_dm_item_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tt_dm_item_top,
.tt_dm_item_bottom {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.tt_dm_item_title {
    color: #e8e8e8;
    flex: 1;
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_dm_item_time {
    color: #777;
    flex: 0 0 auto;
    font-size: 10.5px;
}

.tt_dm_item_prev {
    color: #888;
    flex: 1;
    font-size: 11.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_dm_item.is-unread .tt_dm_item_title {
    color: #fff;
    font-weight: 700;
}

.tt_dm_item.is-unread .tt_dm_item_prev {
    color: #cfcfcf;
}

.tt_dm_item.is-unread .tt_dm_item_time {
    color: #e06b75;
}

.tt_dm_item_badge {
    background: #c9404d;
    border-radius: 10px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    min-width: 18px;
    padding: 1px 6px;
    text-align: center;
}

/* thread */

.tt_dm_thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    position: relative;
}

.tt_dm_empty {
    align-items: center;
    color: var(--tt-muted);
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 13px;
    gap: 8px;
    justify-content: center;
    padding: 28px 18px;
    text-align: center;
}

.tt_dm_empty > i.fa {
    color: #3a3a3a;
    font-size: 54px;
}

.tt_dm_empty strong {
    color: #ddd;
    font-size: 16px;
}

.tt_dm_empty .button {
    margin-top: 6px;
}

.tt_dm_thread_head {
    align-items: center;
    background: #1c1c1c;
    border-bottom: 1px solid var(--dm-line);
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 62px;
    padding: 10px 14px;
}

.tt_dm_thread_head .tt_dm_item_av {
    flex-basis: 38px;
    height: 38px;
    width: 38px;
}

.tt_dm_head_text {
    flex: 1;
    min-width: 0;
}

.tt_dm_head_text strong {
    color: #f0f0f0;
    display: block;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_dm_head_text strong a {
    color: inherit;
}

.tt_dm_head_text strong a:hover {
    color: #ff8b95;
}

.tt_dm_head_sub {
    color: #888;
    font-size: 11px;
    min-height: 15px;
}

.tt_dm_head_sub [hidden] {
    display: none;
}

.tt_dm_typing {
    color: #e06b75;
    font-style: italic;
}

.tt_dm_thread_actions {
    display: flex;
    gap: 6px;
}

.tt_dm_thread_head .tt_dm_iconbtn {
    background: #262626;
    border-color: #333;
}

.tt_dm_thread_head .tt_dm_iconbtn:hover {
    background: #333;
}

.tt_dm_back {
    display: none;
}

.tt_dm_messages {
    background: linear-gradient(180deg, #171717, #141414);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 16px 16px;
}

.tt_dm_thread_empty {
    padding-top: 80px;
}

.tt_dm_older {
    color: #666;
    font-size: 11px;
    padding: 4px 0 10px;
    text-align: center;
}

.tt_dm_day {
    margin: 14px 0 10px;
    position: relative;
    text-align: center;
}

.tt_dm_day::before {
    border-top: 1px solid #262626;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
}

.tt_dm_day span {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #999;
    font-size: 10.5px;
    padding: 2px 10px;
    position: relative;
}

.tt_dm_row {
    align-items: flex-end;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.tt_dm_row.is-cont {
    margin-top: 2px;
}

.tt_dm_row.is-mine {
    justify-content: flex-end;
}

.tt_dm_row_av {
    flex: 0 0 28px;
    height: 28px;
    width: 28px;
}

.tt_dm_row_av img,
.tt_dm_row_av i {
    border-radius: 50%;
    height: 28px;
    object-fit: cover;
    width: 28px;
}

.tt_dm_row_av i {
    align-items: center;
    background: #2a2a2a;
    color: #888;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
}

.tt_dm_bubble {
    background: #232323;
    border: 1px solid #303030;
    border-radius: 14px 14px 14px 4px;
    box-sizing: border-box;
    color: #ddd;
    max-width: min(78%, 560px);
    padding: 7px 11px 5px;
    width: fit-content;
}

.tt_dm_row.is-cont .tt_dm_bubble {
    border-top-left-radius: 4px;
}

.tt_dm_row.is-mine .tt_dm_bubble {
    background: var(--dm-mine);
    border-color: var(--dm-mine-edge);
    border-radius: 14px 14px 4px 14px;
    color: #f3e3e3;
}

.tt_dm_row.is-mine.is-cont .tt_dm_bubble {
    border-top-right-radius: 4px;
}

.tt_dm_bubble_name {
    color: #e99898;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tt_dm_bubble_text {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tt_dm_bubble_text a {
    color: #ff9aa3;
    text-decoration: underline;
}

.tt_dm_row.is-mine .tt_dm_bubble_text a {
    color: #ffd0d4;
}

.tt_dm_bubble_time {
    color: #8a8a8a;
    font-size: 10px;
    margin-top: 2px;
    text-align: right;
}

.tt_dm_row.is-mine .tt_dm_bubble_time {
    color: #c79a9a;
}

.tt_dm_receipt {
    color: #888;
    font-size: 10.5px;
    margin-top: 3px;
    text-align: right;
}

.tt_dm_jump {
    background: #c9404d;
    border: 0;
    border-radius: 14px;
    bottom: 78px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    font-size: 11.5px;
    left: 50%;
    padding: 6px 12px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 5;
}

.tt_dm_jump[hidden] {
    display: none;
}

.tt_dm_composer {
    align-items: flex-end;
    background: #1a1a1a;
    border-top: 1px solid var(--dm-line);
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 10px 12px;
}

.tt_dm_composer textarea {
    background: #121212;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    box-sizing: border-box;
    color: #ddd;
    flex: 1;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    max-height: 160px;
    min-height: 40px;
    overflow-y: auto;
    padding: 9px 14px;
    resize: none;
}

.tt_dm_composer textarea:focus {
    border-color: #6e1a1a;
    outline: none;
}

.tt_dm_composer textarea:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tt_dm_composer .tt_dm_send {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    min-width: 0;
    padding: 0;
    width: 40px;
}

.tt_dm_composer .tt_dm_send:disabled {
    cursor: default;
    opacity: 0.5;
}

/* toast */

.tt_dm_toast {
    background: #2c1515;
    border: 1px solid #642525;
    border-left: 3px solid #c9404d;
    border-radius: 4px;
    bottom: 80px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    color: #f0b5b5;
    font-size: 12.5px;
    left: 50%;
    line-height: 1.45;
    max-width: min(420px, calc(100% - 24px));
    opacity: 0;
    padding: 12px 16px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.tt_dm_toast.is-ok {
    background: #15261a;
    border-color: #2d5a38;
    border-left-color: #4caf70;
    color: #b8e0c2;
}

.tt_dm_toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* modal */

.tt_dm_modal_overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.72);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 16px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 30;
}

.tt_dm_modal {
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    max-width: 440px;
    overflow: hidden;
    width: 100%;
}

.tt_dm_modal_head {
    align-items: center;
    background: var(--tt-bar);
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    font-size: 13px;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 14px;
}

.tt_dm_modal_head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_dm_modal_body {
    display: grid;
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
}

.tt_dm_modal_foot {
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 14px;
}

.tt_dm_modal_foot .button:disabled {
    opacity: 0.6;
}

.tt_dm_field {
    display: grid;
    gap: 6px;
}

.tt_dm_field > span {
    color: #c8c8c8;
    font-size: 12px;
    font-weight: 600;
}

.tt_dm_field input {
    background: #121212;
    border: 1px solid #2c2c2c;
    border-radius: 4px;
    box-sizing: border-box;
    color: #eee;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

.tt_dm_field input:focus {
    border-color: #6e1a1a;
    outline: none;
}

.tt_dm_hint {
    color: #888;
    font-size: 11.5px;
    line-height: 1.5;
    margin: 0;
}

.tt_dm_picker {
    position: relative;
}

.tt_dm_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tt_dm_chips:not(:empty) {
    margin-bottom: 8px;
}

.tt_dm_chip {
    align-items: center;
    background: #3a1515;
    border: 1px solid #6a2a2a;
    border-radius: 12px;
    color: #f3d0d0;
    display: inline-flex;
    font-size: 12px;
    gap: 4px;
    padding: 3px 4px 3px 10px;
}

.tt_dm_chip button {
    background: none;
    border: 0;
    color: #d99;
    cursor: pointer;
    font-size: 11px;
    padding: 0 4px;
}

.tt_dm_chip button:hover {
    color: #fff;
}

.tt_dm_sugg {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    left: 0;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
}

.tt_dm_sugg[hidden] {
    display: none;
}

.tt_dm_sugg button {
    background: none;
    border: 0;
    border-bottom: 1px solid #242424;
    color: #ddd;
    cursor: pointer;
    display: block;
    font-size: 12.5px;
    padding: 9px 12px;
    text-align: left;
    width: 100%;
}

.tt_dm_sugg button:hover,
.tt_dm_sugg button:first-child {
    background: #261a1b;
}

.tt_dm_btn_ghost {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ddd;
    cursor: pointer;
    font: inherit;
    padding: 8px 12px;
}

.tt_dm_btn_ghost:hover {
    background: #333;
}

.tt_dm_inline {
    align-items: flex-start;
    display: flex;
    gap: 8px;
}

.tt_dm_inline .tt_dm_picker {
    flex: 1;
}

.tt_dm_inline > .button {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
}

.tt_dm_mem_count {
    color: #888;
    font-size: 11.5px;
}

.tt_dm_mem_list {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.tt_dm_mem_row {
    align-items: center;
    background: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 7px 10px;
}

.tt_dm_mem_who {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.tt_dm_mem_who > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tt_dm_mem_row b {
    color: #eee;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_dm_mem_row em {
    color: #888;
    font-size: 10.5px;
    font-style: normal;
}

.tt_dm_mem_row em.is-admin {
    color: #e0a050;
}

.tt_dm_mem_row em.is-creator {
    color: #e06b75;
}

.tt_dm_mem_actions {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.tt_dm_mini {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #ddd;
    cursor: pointer;
    font-size: 10.5px;
    padding: 4px 7px;
}

.tt_dm_mini:hover {
    background: #333;
}

.tt_dm_mini.is-danger:hover,
.tt_dm_mini.is-armed,
.tt_dm_leave.is-armed {
    background: #5a1414;
    border-color: #8a2a2a;
    color: #fff;
}

.tt_dm_leave {
    justify-self: start;
    margin-top: 4px;
}

/* mobile: list OR thread, never both squeezed */

@media (max-width: 800px) {
    .tt_dm_app {
        grid-template-columns: 1fr;
        height: calc(100vh - 140px);
        min-height: 460px;
    }

    .tt_dm_sidebar {
        border-right: 0;
    }

    .tt_dm_app .tt_dm_thread {
        display: none;
    }

    .tt_dm_app.is-thread-open .tt_dm_sidebar {
        display: none;
    }

    .tt_dm_app.is-thread-open .tt_dm_thread {
        display: flex;
    }

    .tt_dm_back {
        display: inline-flex;
    }

    .tt_dm_bubble {
        max-width: 86%;
    }

    .tt_dm_messages {
        padding: 10px;
    }
}


/* ---------- SCEditor toolbar (icon mode) ---------- */
div.sceditor-toolbar {
    line-height: 0;
    overflow: hidden;
}

.sceditor-button {
    box-sizing: content-box;
    overflow: hidden;
}

.sceditor-button.has-icon > div {
    display: none !important;
}

.sceditor-button.has-icon svg {
    display: inline-block !important;
    height: 16px;
    width: 16px;
}


/* ---------- UCP davet bağlantısı ---------- */

.tt_invite {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.tt_invite label {
    color: #cfcfcf;
    font-size: 11.5px;
    font-weight: 700;
}

.tt_invite_row {
    display: flex;
    gap: 6px;
    max-width: 520px;
}

.tt_invite_row input.textbox {
    box-sizing: border-box;
    flex: 1;
    font-size: 12px;
    height: 32px;
    min-width: 0;
    padding: 0 10px;
}

.tt_invite_row .button {
    flex: none;
    height: 32px;
    padding: 0 14px;
}

.tt_invite_desc {
    color: var(--tt-muted);
    font-size: 11px;
}


/* Dar ekran: konu / postbit / editör (v1 "Dar ekran" bölümünden) */
@media (max-width: 700px) {
    .tt_post_main,
    .tt_profile_card,
    .tt_threadhead {
        flex-direction: column;
    }

    /* Konu yorumları: kompakt mobil postbit */
    .tt_post {
        margin: 0 0 10px;
    }

    .tt_post .post_author {
        align-items: center;
        border-bottom: 1px solid #0e0e0e;
        border-right: 0;
        box-shadow: none;
        display: flex;
        flex-basis: auto;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 10px 12px;
        text-align: left;
    }

    .tt_author_cover {
        display: none;
    }

    .tt_avatar_wrap {
        flex: 0 0 auto;
        margin: 0;
    }

    .tt_post .post_author div.author_avatar img {
        border-radius: 6px;
        border-width: 2px;
        box-shadow: 0 0 0 1px #9b1b1b, 0 2px 8px rgba(0, 0, 0, 0.55);
        height: 42px;
        width: 42px;
    }

    .tt_avatar_wrap .tt_dot {
        border-width: 2px;
        bottom: -2px;
        height: 10px;
        right: -2px;
        width: 10px;
    }

    .tt_post .post_author div.author_information {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .tt_post_name a,
    .tt_post_name a span,
    .tt_post_name a strong,
    .tt_post_name a em {
        display: inline-block;
        font-size: 14px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tt_usertitle {
        font-size: 11px;
        margin: 1px 0 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tt_groupimg,
    .tt_stars,
    .tt_post .post_author div.author_statistics {
        display: none;
    }

    .tt_post .post_head.tt_post_head {
        flex-wrap: wrap;
        gap: 4px 10px;
        min-height: 0;
        padding: 8px 12px;
    }

    .tt_post_subj {
        font-size: 12px;
        width: 100%;
    }

    .tt_post .post_body {
        font-size: 13px;
        line-height: 1.55;
        padding: 12px;
    }

    .tt_post .post_controls {
        padding: 8px 10px;
    }

    .postbit_buttons > a:link,
    .postbit_buttons > a:visited {
        font-size: 11px;
        margin: 0 4px 4px 0;
        padding: 5px 8px;
    }

    /* Hızlı yanıt / SCEditor mobilde şişmesin */
    .sceditor-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    div.sceditor-toolbar {
        max-height: 68px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .sceditor-container iframe,
    .sceditor-container textarea {
        height: 140px !important;
        max-height: 180px !important;
        min-height: 120px !important;
    }

    #quick_reply_form textarea,
    textarea#message {
        max-height: 180px;
        min-height: 110px !important;
    }

    .tt_threadhead {
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .tt_tabs {
        flex-wrap: wrap;
    }
}
