/* TurkishDidac — Ortak arayüz stilleri (Bootstrap 5 üzerine) */
:root {
    /* Logo renkleri */
    --td-primary: #0e284a; /* lacivert */
    --td-accent: #10adca;  /* turkuaz */
}

.td-brand { color: var(--td-primary); letter-spacing: .2px; }
.td-brand span { color: var(--td-accent); }

.td-narrow { max-width: 640px; }
.td-card { border: 0; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .06); }

.btn-primary {
    --bs-btn-bg: var(--td-primary);
    --bs-btn-border-color: var(--td-primary);
    --bs-btn-hover-bg: #173a66;
    --bs-btn-hover-border-color: #173a66;
    --bs-btn-active-bg: #0a1e38;
}

.td-step { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.td-step-active { background: var(--td-primary); color: #fff; }
.td-step-idle { background: #e9ecef; color: #6c757d; }

.td-login { max-width: 440px; }
.td-nav-name { max-width: 14rem; }
.td-doc-meta dt { font-weight: 500; color: #6c757d; }
.td-reject summary { list-style: none; }
.td-reject summary::-webkit-details-marker { display: none; }

details.td-domains summary { cursor: pointer; }
details.td-domains code { font-size: .8rem; }

.td-logo { height: 32px; width: auto; }
a { color: #0b7f96; }
.nav-tabs .nav-link.active { border-top: 3px solid var(--td-accent); }
.td-actions { min-width: 11rem; }
.td-reject-form { min-width: 16rem; }
.btn-outline-primary { --bs-btn-color: var(--td-primary); --bs-btn-border-color: var(--td-primary); --bs-btn-hover-bg: var(--td-primary); --bs-btn-hover-border-color: var(--td-primary); }

/* ---------------------------------------------------------------
 * Proje havuzu ve detay
 * ------------------------------------------------------------- */
:root {
    --td-cat-stem: #10adca;
    --td-cat-language_culture: #2f6db3;
    --td-cat-gamification: #e08a00;
    --td-cat-art_drama: #b8457d;
}

.td-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; vertical-align: -.2em; }
.td-icon-sm { width: 1rem; height: 1rem; margin-right: .3rem; }
.td-icon-xl { width: 2.5rem; height: 2.5rem; }
.td-empty-icon { color: var(--td-accent); }

.td-hero {
    background: linear-gradient(135deg, var(--td-primary) 0%, #173f6e 60%, #0f6f8a 100%);
    color: #fff;
}
.td-hero-lead { color: rgba(255, 255, 255, .85); max-width: 46rem; font-size: 1.05rem; }
.td-hero-meta { color: rgba(255, 255, 255, .75); font-size: .875rem; }
.td-hero .td-cat { background: rgba(255, 255, 255, .15); color: #fff; }

/* Kategori rozetleri */
.td-cat {
    display: inline-flex; align-items: center; gap: .1rem;
    padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    text-decoration: none; line-height: 1.2;
}
.td-cat-stem             { background: #e3f6fa; color: #0a7186; }
.td-cat-language_culture { background: #e6eef8; color: #24558c; }
.td-cat-gamification     { background: #fdf1de; color: #965c00; }
.td-cat-art_drama        { background: #f8e8f0; color: #8e3460; }
.td-cat-pill { border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.td-cat-pill:hover { border-color: currentColor; }
.td-cat-pill.active { border-color: currentColor; box-shadow: 0 0 0 2px rgba(16, 173, 202, .25); }

/* Proje kartları */
.td-project-card { border-top: 4px solid var(--td-accent); transition: transform .15s ease, box-shadow .15s ease; }
.td-project-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 2rem rgba(14, 40, 74, .12); }
.td-border-stem             { border-top-color: var(--td-cat-stem); }
.td-border-language_culture { border-top-color: var(--td-cat-language_culture); }
.td-border-gamification     { border-top-color: var(--td-cat-gamification); }
.td-border-art_drama        { border-top-color: var(--td-cat-art_drama); }
.td-project-title a { color: var(--td-primary); text-decoration: none; }
.td-project-card:hover .td-project-title a { color: #0b7f96; }
.td-age { font-size: .8rem; color: #5c6b7a; display: inline-flex; align-items: center; white-space: nowrap; }
.td-chip { background: #f1f4f8; color: #4a5866; border-radius: .5rem; padding: .15rem .5rem; font-size: .75rem; }
.td-chip-more { background: #e3f6fa; color: #0a7186; font-weight: 600; }

#projectResults { transition: opacity .15s; }
#projectResults.td-loading { opacity: .45; pointer-events: none; }
.td-js .td-js-hide { display: none; }

/* Detay sayfası */
.td-back { display: inline-flex; align-items: center; color: var(--td-primary); text-decoration: none; font-weight: 500; }
.td-back:hover { color: #0b7f96; }

.td-facts dt { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.td-facts dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.td-fact {
    display: flex; align-items: center; gap: .75rem; height: 100%;
    background: rgba(255, 255, 255, .1); border-radius: .75rem; padding: .75rem 1rem;
}
.td-fact .td-icon { width: 1.5rem; height: 1.5rem; color: var(--td-accent); }

.td-steps { counter-reset: none; }
.td-step-item { display: flex; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.td-step-item:last-child { padding-bottom: 0; }
.td-step-item:not(:last-child)::before {
    content: ""; position: absolute; left: 1.125rem; top: 2.5rem; bottom: .25rem;
    width: 2px; background: #dbe7ef;
}
.td-step-num {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; flex-shrink: 0;
    background: var(--td-primary); color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px #e3f6fa;
}
.td-step-body { padding-top: .35rem; font-size: 1.05rem; line-height: 1.65; color: #1f2d3a; }
.td-safety {
    display: inline-flex; align-items: center; margin-top: .5rem;
    font-size: .8rem; font-weight: 600; color: #8a5300;
    background: #fff4e0; border-radius: .5rem; padding: .2rem .55rem;
}

.td-materials li { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed #e3e8ee; }
.td-materials li:last-child { border-bottom: 0; }
.td-materials .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.td-materials .form-check-input:checked { background-color: var(--td-accent); border-color: var(--td-accent); }
.td-materials .form-check-input:checked + label { color: #8a97a3; text-decoration: line-through; }
.td-materials label { cursor: pointer; }

@media (min-width: 992px) { .td-sticky { position: sticky; top: 1.5rem; } }

.td-related { transition: box-shadow .15s; border-left: 4px solid var(--td-accent); }
.td-related:hover { box-shadow: 0 .5rem 1.25rem rgba(14, 40, 74, .12); }

.td-prose { font-size: 1.05rem; line-height: 1.7; }

/* Yazdırma: sınıfta kâğıda basmaya uygun sade görünüm */
@media print {
    body { background: #fff !important; }
    .td-card { box-shadow: none !important; border: 1px solid #ccc !important; }
    .td-hero { background: none !important; color: #000 !important; border: 1px solid #ccc; }
    .td-hero-lead, .td-hero-meta, .td-facts dt { color: #333 !important; }
    .td-fact { background: none !important; border: 1px solid #ddd; }
    .td-sticky { position: static !important; }
    .td-step-num { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------
 * Proje havuzu v2 — mockup düzeni (sol panel + kart ızgarası)
 * ------------------------------------------------------------- */
.td-text-navy { color: var(--td-primary) !important; }
.td-text-accent { color: #0a7f96; }
.td-link-accent { color: #0a7f96; text-decoration: none; }
.td-link-accent:hover { text-decoration: underline; }

.btn-accent {
    --bs-btn-bg: var(--td-accent); --bs-btn-border-color: var(--td-accent); --bs-btn-color: var(--td-primary);
    --bs-btn-hover-bg: #0e9bb5; --bs-btn-hover-border-color: #0e9bb5; --bs-btn-hover-color: var(--td-primary);
    --bs-btn-active-bg: #0c879e; --bs-btn-active-color: #fff;
}

.td-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a6e82; }
.td-page-title { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: .02em; color: var(--td-primary); }

.td-search .input-group-text { background: #fff; border-right: 0; color: #4e5f70; }
.td-search .form-control { border-left: 0; min-height: 46px; }
.td-search .form-control:focus { box-shadow: none; border-color: #dee2e6; }
.td-search:focus-within { box-shadow: 0 0 0 .2rem rgba(16, 173, 202, .25); border-radius: .375rem; }

/* Filtre paneli */
@media (min-width: 992px) { .td-filter-card { position: sticky; top: 1.5rem; } }
.td-legend { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4e5f70; margin-bottom: .5rem; }
.td-sep { border-color: #e3e8ee; opacity: 1; margin: 1rem 0; }
.td-check { padding: .3rem .5rem .3rem 2rem; margin: 0; border-radius: .5rem; }
.td-check:hover { background: #f4f7fa; }
.td-check .form-check-input:checked { background-color: var(--td-primary); border-color: var(--td-primary); }
.td-check .form-check-label { cursor: pointer; }
.td-swatch { width: .65rem; height: .65rem; border-radius: 3px; display: inline-block; }
.td-swatch-stem { background: var(--td-cat-stem); }
.td-swatch-language_culture { background: var(--td-primary); }
.td-swatch-gamification { background: #f5b547; }
.td-swatch-art_drama { background: #e58db4; }
.td-observer { font-size: .66rem; font-weight: 600; color: #4e5f70; border: 1px solid #d3dae2; border-radius: 4px; padding: 0 .3rem; }
.td-age-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.td-age-btn { border: 1px solid #d3dae2; color: var(--td-primary); font-weight: 600; font-size: .85rem; min-height: 40px; background: #fff; }
.td-age-btn:hover { border-color: var(--td-primary); color: var(--td-primary); }
.btn-check:checked + .td-age-btn { background: var(--td-primary); border-color: var(--td-primary); color: #fff; }
.btn-check:focus-visible + .td-age-btn { box-shadow: 0 0 0 .2rem rgba(16, 173, 202, .35); }

/* Kartlar (bant + ikon) */
.td-project-card { border-top: 0 !important; overflow: hidden; }
.td-card-band { height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
.td-band-stem             { background: #e3f6fa; }
.td-band-language_culture { background: #e8eef6; }
.td-band-gamification     { background: #fdf3e2; }
.td-band-art_drama        { background: #faeef4; }
.td-card-band .td-cat-stem             { background: var(--td-accent); color: var(--td-primary); }
.td-card-band .td-cat-language_culture { background: var(--td-primary); color: #fff; }
.td-card-band .td-cat-gamification     { background: #f5b547; color: var(--td-primary); }
.td-card-band .td-cat-art_drama        { background: #f2c6da; color: #6e1f45; }
.td-card-icon {
    width: 58px; height: 58px; border-radius: 16px; background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(14, 40, 74, .10);
}
.td-band-stem .td-card-icon { color: #0a6e82; }
.td-band-language_culture .td-card-icon { color: var(--td-primary); }
.td-band-gamification .td-card-icon { color: #8a5300; }
.td-band-art_drama .td-card-icon { color: #8e3460; }
.td-icon-lg { width: 30px; height: 30px; }
.td-project-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--td-primary); min-height: 2.7em; }
.td-dot { color: #c4ccd5; margin: 0 .25rem; }
.td-detail-btn { min-height: 44px; margin-top: .75rem !important; border-radius: .6rem; }
.td-pagination .page-link { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--td-primary); border-radius: .6rem !important; margin: 0 .2rem; }
.td-pagination .active .page-link { background: var(--td-primary); border-color: var(--td-primary); color: #fff; }

/* ---------------------------------------------------------------
 * Dil seçici ve menü rozetleri
 * ------------------------------------------------------------- */
.td-lang { position: relative; }
.td-lang > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; }
.td-lang > summary::-webkit-details-marker { display: none; }
.td-lang-code { font-weight: 700; font-size: .75rem; letter-spacing: .04em; }
.td-lang-menu {
    position: absolute; right: 0; top: calc(100% + .4rem); z-index: 1050; min-width: 13rem;
    background: #fff; border: 1px solid #e3e8ee; border-radius: .75rem; padding: .35rem;
    box-shadow: 0 .75rem 2rem rgba(14, 40, 74, .15); margin: 0;
}
.td-lang-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .5rem; color: #1f2d3a; text-decoration: none; min-height: 40px; }
.td-lang-menu a:hover { background: #f1f4f8; }
.td-lang-menu a.active { background: #e3f6fa; color: var(--td-primary); font-weight: 600; }
.td-lang-menu .td-lang-code { width: 1.6rem; color: #4e5f70; }
.td-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.td-flag-emoji { font-size: 1rem; line-height: 1; }
.td-badge-unread { background: var(--td-accent); color: var(--td-primary); font-size: .68rem; margin-left: .2rem; vertical-align: 1px; }

/* ---------------------------------------------------------------
 * Mesajlaşma (iki kolonlu sohbet)
 * ------------------------------------------------------------- */
.td-chat { height: calc(100vh - 220px); min-height: 520px; overflow: hidden; }
.td-chat > .row { height: 100%; }
.td-chat-list { flex-direction: column; border-right: 1px solid #e3e8ee; min-height: 0; height: 100%; background: #fff; }
.td-chat-list-head { padding: 1rem 1.25rem; border-bottom: 1px solid #e3e8ee; }
.td-chat-items { overflow-y: auto; flex: 1; min-height: 0; }
.td-chat-item {
    display: flex; gap: .75rem; align-items: center; padding: .8rem 1.25rem; min-height: 64px;
    text-decoration: none; color: inherit; border-bottom: 1px solid #f1f4f8;
}
.td-chat-item:hover { background: #f6f9fb; }
.td-chat-item.active { background: #e3f6fa; box-shadow: inset 3px 0 0 var(--td-accent); }
.td-chat-item-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.td-chat-name { font-weight: 600; color: var(--td-primary); }
.td-chat-time { font-size: .72rem; color: #6c7a88; white-space: nowrap; }
.td-chat-preview { font-size: .85rem; color: #5c6b7a; }
.td-chat-cc { font-size: .65rem; font-weight: 700; color: #0a6e82; background: #e3f6fa; border-radius: 4px; padding: 0 .3rem; margin-right: .4rem; }

.td-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--td-primary); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.td-avatar-lg { width: 44px; height: 44px; }

.td-chat-pane { flex-direction: column; min-height: 0; height: 100%; background: #f4f7fa; }
.td-chat-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; background: #fff; border-bottom: 1px solid #e3e8ee; }
.td-chat-back { color: var(--td-primary); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: -.75rem; }
.min-w-0 { min-width: 0; }

.td-chat-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.td-chat-thread:focus-visible { outline: 2px solid var(--td-accent); outline-offset: -2px; }
.td-chat-privacy { align-self: center; max-width: 34rem; text-align: center; font-size: .75rem; color: #5c6b7a; background: #fff8e6; border-radius: .5rem; padding: .4rem .75rem; margin-bottom: .5rem; }
.td-chat-empty { align-self: center; color: #6c7a88; font-size: .9rem; margin-top: 2rem; }

.td-msg { display: flex; flex-direction: column; max-width: min(75%, 560px); }
.td-msg-mine { align-self: flex-end; align-items: flex-end; }
.td-msg-theirs { align-self: flex-start; align-items: flex-start; }
.td-msg-bubble { padding: .6rem .9rem; border-radius: 1rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(14, 40, 74, .08); }
.td-msg-mine .td-msg-bubble { background: var(--td-primary); color: #fff; border-bottom-right-radius: .3rem; }
.td-msg-theirs .td-msg-bubble { background: #fff; color: #1f2d3a; border-bottom-left-radius: .3rem; }
.td-msg-meta { display: flex; align-items: center; gap: .5rem; font-size: .7rem; color: #6c7a88; margin-top: .2rem; padding: 0 .3rem; }
.td-msg-read { color: #0a7f96; font-weight: 700; letter-spacing: -.1em; }
.td-link-btn { border: 0; background: none; padding: .25rem .1rem; color: #0a6e82; font-size: .72rem; font-weight: 600; cursor: pointer; min-height: 28px; }
.td-link-btn:hover { text-decoration: underline; }
.td-link-btn:disabled { color: #6c7a88; cursor: progress; }

.td-translation { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed #c9d6df; }
.td-translation-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0a6e82; margin-bottom: .15rem; }
.td-translation-text { white-space: pre-line; }
.td-translation-error { color: #b02a37; font-size: .8rem; }

.td-chat-composer { padding: .75rem 1.25rem 1rem; background: #fff; border-top: 1px solid #e3e8ee; }
.td-chat-composer textarea { resize: none; min-height: 44px; max-height: 160px; border-radius: 1.25rem; padding: .6rem 1rem; }
.td-chat-send { min-height: 44px; border-radius: 1.25rem; padding-inline: 1.25rem; }

.td-chat-placeholder { margin: auto; text-align: center; color: #5c6b7a; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.td-chat-placeholder-icon { width: 72px; height: 72px; border-radius: 50%; background: #e3f6fa; color: #0a6e82; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 991.98px) {
    .td-chat { height: calc(100vh - 160px); border-radius: .75rem; }
    .td-msg { max-width: 88%; }
}

/* ---------------------------------------------------------------
 * Proje Ekle (mobil öncelikli form)
 * ------------------------------------------------------------- */
.td-form-narrow { max-width: 760px; }
.td-form-step { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 700; color: var(--td-primary); margin-bottom: 1rem; }
.td-form-step > span:first-child {
    width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--td-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0;
}
.td-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .td-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.td-choice {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    min-height: 76px; border: 2px solid #e3e8ee; background: #fff; color: var(--td-primary); font-weight: 600; font-size: .9rem; border-radius: .75rem;
}
.td-choice:hover { border-color: var(--td-accent); color: var(--td-primary); }
.btn-check:checked + .td-choice { border-color: var(--td-primary); background: #e3f6fa; color: var(--td-primary); }
.btn-check:focus-visible + .td-choice { box-shadow: 0 0 0 .2rem rgba(16, 173, 202, .35); }

.td-photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.td-photo-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; font-weight: 600; border-radius: .75rem; }
.td-photo-actions input:disabled + .td-photo-btn, .td-photo-btn:has(+ input:disabled) { opacity: .5; pointer-events: none; }
.td-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0 0; }
@media (min-width: 576px) { .td-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.td-photo-item { position: relative; aspect-ratio: 1; border-radius: .6rem; overflow: hidden; background: #f1f4f8; }
.td-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-photo-size { position: absolute; left: .35rem; bottom: .35rem; background: rgba(14, 40, 74, .8); color: #fff; font-size: .68rem; padding: .05rem .4rem; border-radius: .35rem; }
.td-photo-remove {
    position: absolute; top: .3rem; right: .3rem; width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .92); color: #b02a37; font-size: 1.25rem; line-height: 1; font-weight: 700; cursor: pointer;
}
.td-consent { background: #fff8e6; border-radius: .6rem; padding: .75rem .75rem .75rem 2.25rem; }
.td-submit-bar { position: sticky; bottom: 0; z-index: 10; background: rgba(244, 247, 250, .96); padding: .75rem 0 1rem; backdrop-filter: blur(4px); }
.td-progress-bar { width: 0; background: var(--td-accent); transition: width .2s; }

/* ---------------------------------------------------------------
 * Proje detayı: galeri
 * ------------------------------------------------------------- */
.td-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .td-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.td-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: .6rem; overflow: hidden; background: #f1f4f8; }
.td-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.td-gallery a:hover img { transform: scale(1.03); }

/* ---------------------------------------------------------------
 * Profil, rozetler, sertifika
 * ------------------------------------------------------------- */
.td-avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; display: flex; }
.td-edit-profile > summary { list-style: none; }
.td-edit-profile > summary::-webkit-details-marker { display: none; }

.td-badge {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.td-badge-first_step { background: #e3f6fa; color: #0a6e82; }
.td-badge-ambassador { background: var(--td-accent); color: var(--td-primary); }
.td-badge-master     { background: var(--td-primary); color: #fff; }
.td-badge-sage       { background: linear-gradient(135deg, #0e284a, #10adca); color: #fff; }
.td-badge-locked     { background: #f1f4f8 !important; color: #8794a1 !important; }
.td-badge-list li { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .5rem 0; border-bottom: 1px dashed #e3e8ee; }
.td-badge-list li:last-child { border-bottom: 0; }
.td-progress { height: .55rem; background: #e9eef3; }
.td-progress .progress-bar { background: var(--td-accent); }
.td-progress-0 { width: 0; } .td-progress-10 { width: 10%; } .td-progress-20 { width: 20%; } .td-progress-30 { width: 30%; }
.td-progress-40 { width: 40%; } .td-progress-50 { width: 50%; } .td-progress-60 { width: 60%; } .td-progress-70 { width: 70%; }
.td-progress-80 { width: 80%; } .td-progress-90 { width: 90%; } .td-progress-100 { width: 100%; }
.td-cert-card { border: 2px dashed #d3dae2 !important; }
.td-cert-open { border: 2px solid var(--td-accent) !important; background: linear-gradient(180deg, #f2fbfd, #fff); }
.td-profile-projects .td-card-icon { width: 46px; height: 46px; border-radius: 12px; }
.td-profile-projects a:hover { background: #f8fafc; }

/* ---------------------------------------------------------------
 * Moderatör: proje sekmesi
 * ------------------------------------------------------------- */
.td-mod-project { padding: 1.1rem 1.25rem; border-bottom: 1px solid #eef2f6; }
.td-mod-project:last-child { border-bottom: 0; }
.td-mod-thumb { width: 72px; height: 72px; border-radius: .5rem; overflow: hidden; display: block; background: #f1f4f8; }
.td-mod-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------
 * Ana sayfa
 * ------------------------------------------------------------- */
.td-home-hero .display-5 { max-width: 34rem; line-height: 1.15; }
.td-home-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.td-home-stats > div { background: rgba(255, 255, 255, .1); border-radius: .9rem; padding: 1.1rem 1.25rem; }
.td-home-stats dt { font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .75); text-transform: uppercase; letter-spacing: .04em; }
.td-home-stats dd { margin: 0; font-size: 2rem; font-weight: 800; color: #fff; }
.td-chip-lg { font-size: .9rem; padding: .45rem .8rem; background: #fff; border: 1px solid #e3e8ee; display: inline-flex; align-items: center; }
