/* ============================================
   Destomedya Ctrl — Custom styles (Bootstrap 5 üstüne)
   ============================================ */

:root {
    --brand-start: #ef6b34;
    --brand-end:   #8b45ff;
    --brand-gradient: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    --sidebar-bg:     #14141c;
    --sidebar-fg:     rgba(255,255,255,0.85);
    --sidebar-muted:  rgba(255,255,255,0.45);
    --sidebar-active: rgba(139, 69, 255, 0.18);
    --sidebar-width:  256px;
    --topbar-height:  60px;
    --content-bg:     #f6f5f1;
    --border-color:   #e5e3de;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--content-bg);
    color: #14141c;
}
a { color: #6b3fd1; text-decoration: none; }
a:hover { text-decoration: underline; }
a.sidebar-brand,
a.sidebar-brand:hover,
a.sidebar-link,
a.sidebar-link:hover { text-decoration: none; }

/* Smooth scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); background-clip: content-box; border: 2px solid transparent; }

/* Global focus ring (Bootstrap default yerine brand rengi) */
.btn:focus-visible, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.18rem rgba(139, 69, 255, 0.22) !important;
    border-color: rgba(139, 69, 255, 0.5);
}

/* Softer page background + transitions */
.main, .content { transition: background .3s ease; }

/* ============ Layout ============ */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ============ Sidebar ============ */
.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-fg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 1px 0 0 rgba(0,0,0,0.06);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 22px 24px 18px;
    font-size: 20px;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Hamburger (3 span'lı, hover animasyonlu) — topbar'da kullanılır */
.hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease;
}
.hamburger:hover { background: #f3f1ec; border-color: #ded9ca; }
.hamburger span {
    display: block;
    height: 2.5px;
    background: #555;
    border-radius: 2px;
    transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1), background .25s ease;
    transform-origin: left center;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger:hover span { background: var(--brand-end); }
.hamburger:hover span:nth-child(1) { width: 14px; transform: translateX(2px); }
.hamburger:hover span:nth-child(2) { width: 22px; transform: translateX(-1px); }
.hamburger:hover span:nth-child(3) { width: 18px; transform: translateX(3px); }
.hamburger:active span { background: var(--brand-start); }
/* Mobile'da topbar-toggle var, bu hamburger sadece desktop */
@media (max-width: 991px) { .hamburger--topbar { display: none; } }
.sidebar-brand strong {
    color: transparent;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
}
.sidebar-brand span {
    color: var(--sidebar-muted);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 3px;
}
.sidebar-nav {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-section__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.35);
    padding: 8px 14px 4px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--sidebar-fg);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}
.sidebar-link i {
    font-size: 16px;
    color: var(--sidebar-muted);
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
}
.sidebar-link.active {
    background: var(--sidebar-active);
    color: #fff;
    position: relative;
}
.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--brand-gradient);
    border-radius: 2px;
}
.sidebar-link.active i { color: #fff; }

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: background .2s ease;
    position: relative;
}
.sidebar-user:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}
.sidebar-user__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-user__avatar.has-img { background: #333; }
.sidebar-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user__info { flex: 1; min-width: 0; overflow: hidden; }
.sidebar-user__name {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user__role { font-size: 11px; color: var(--sidebar-muted); }
.sidebar-user__icon {
    color: var(--sidebar-muted);
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s ease;
}
.sidebar-user:hover .sidebar-user__icon { opacity: 1; }

/* Generic avatar (used across app via AvatarUploadHelper::Render) */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0ede6;
    flex-shrink: 0;
    vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--initial {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.avatar--sm { width: 24px; height: 24px; font-size: 11px; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--xl { width: 120px; height: 120px; font-size: 36px; }

/* Account page avatar */
.account-avatar-wrap {
    display: inline-block;
    position: relative;
}
.account-avatar__img,
.account-avatar__initial {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(20,20,28,0.08);
}
.account-avatar__initial {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 48px;
}

/* Meta user chip — for todo rows, task table, notes, etc. */
.meta-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
.meta-user__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.meta-user__initial {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* user-load-card avatar image support */
.user-load-card__avatar.has-img { background: #333; overflow: hidden; }
.user-load-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Topbar ============ */
.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
}
.topbar-title {
    flex: 1;
    font-weight: 600;
    color: #14141c;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-user-name { font-size: 14px; color: #555; }

/* ============ Content ============ */
.content {
    flex: 1;
    padding: 28px 32px 60px;
    max-width: 1600px;
    width: 100%;
}

/* ============ Page head ============ */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.page-title {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 800;
    color: #14141c;
}
.page-subtitle {
    margin: 0;
    color: #888;
    font-size: 14px;
}
.page-head__actions { display: flex; gap: 10px; }

/* ============ Buttons — brand gradient primary ============ */
.btn-primary {
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(139, 69, 255, 0.22);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(90deg, var(--brand-end), var(--brand-start));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139, 69, 255, 0.32);
}

/* ============ Dashboard cards ============ */
.dashboard-card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
}
.dashboard-card .card-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: #14141c;
}
.dashboard-todo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ede6;
}
.dashboard-todo-item:last-child { border-bottom: none; }
.dashboard-todo-item__title { font-weight: 600; font-size: 14px; }
.dashboard-todo-item__meta { margin-top: 2px; }

.project-mini-card {
    display: block;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.project-mini-card:hover {
    border-color: #c8bbf0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 255, 0.1);
    text-decoration: none;
}
.project-mini-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.project-mini-card__head h6 { margin: 0; font-size: 15px; font-weight: 700; }
.project-mini-card__sub { margin-bottom: 10px; }
.project-mini-card__counts {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
}
.empty-state i { font-size: 36px; display: block; margin-bottom: 10px; opacity: 0.6; }
.empty-state p { margin: 0 0 12px; font-size: 13px; }

/* Ekip yükü kartı (dashboard) */
.user-load-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.user-load-card:hover {
    border-color: #c8bbf0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 255, 0.1);
    text-decoration: none;
}
.user-load-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.user-load-card__body { flex: 1; min-width: 0; }
.user-load-card__name { font-weight: 600; font-size: 14px; color: #14141c; }
.user-load-card__role { font-size: 11px; }
.user-load-card__stats {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.user-load-card__stats .badge { font-size: 10px; padding: 3px 7px; }

/* ============ Project detail ============ */
.project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.project-head__breadcrumb a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
}
.project-head__breadcrumb a:hover { color: var(--brand-start); }
.project-head__title {
    margin: 6px 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #14141c;
}
.project-head__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}
.project-head__meta a { color: #6b3fd1; text-decoration: none; }
.project-head__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.avatar-group { display: flex; }
.avatar-group .avatar {
    margin-left: -8px;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20,20,28,0.1);
}
.avatar-group .avatar:first-child { margin-left: 0; }
.avatar-group .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #fff;
}

/* Split panel */
.project-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: flex-start;
}
.project-split__sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: sticky;
    top: calc(var(--topbar-height) + 16px);
}
.project-split__content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    min-height: 600px;
}

.module-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
    text-align: left;
    position: relative;
}
.module-card:hover {
    border-color: #c8bbf0;
    transform: translateY(-1px);
}
.module-card.is-active {
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(139, 69, 255, 0.18);
}
.module-card.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: var(--brand-gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.module-card__icon {
    font-size: 20px;
    color: #6b3fd1;
}
.module-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}
.module-card__label {
    font-size: 13px;
    font-weight: 600;
    color: #14141c;
}
.module-card__badge {
    background: var(--brand-gradient);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.module-loading {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.module-head h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #14141c;
}
.inline-form {
    background: #fafaf5;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* ============ Todo groups ============ */
.todo-group {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
}
.todo-group__head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    user-select: none;
}
.todo-group__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s;
}
.todo-group__toggle:hover { background: rgba(0,0,0,0.02); }
.todo-group__handle {
    cursor: grab;
    color: #bbb;
}
.todo-group__name {
    flex: 1;
    font-weight: 600;
}
.todo-group__progress {
    font-size: 11px;
    color: #888;
    background: #f0ede6;
    padding: 2px 8px;
    border-radius: 10px;
}
.todo-group__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}
.todo-group__actions .btn-link { font-size: 14px; text-decoration: none; }
.todo-group__chevron { color: #bbb; }
.todo-group__body {
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border-color);
}

/* ============ Todo lists (3. seviye) ============ */
.todo-lists { display: flex; flex-direction: column; gap: 8px; }
.todo-list {
    border: 1px solid #eae5d5;
    border-radius: 6px;
    background: #fbfaf5;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.todo-list.is-revision-list {
    border-left: 3px solid var(--brand-start);
    background: #fff;
}
.todo-list.is-focused {
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb, 201, 162, 39), 0.35);
    border-color: var(--brand-start);
}
.todo-list__head {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 2px;
    user-select: none;
    font-size: 13px;
}
.todo-list__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background .2s;
}
.todo-list__toggle:hover { background: rgba(0,0,0,0.03); }
.todo-list__handle { cursor: grab; color: #bbb; }
.todo-list__name { flex: 1; font-weight: 600; }
.todo-list__progress {
    font-size: 10px;
    color: #666;
    background: #f0ede6;
    padding: 2px 7px;
    border-radius: 10px;
}
.todo-list__actions { display: flex; gap: 2px; }
.todo-list__actions .btn-link { font-size: 13px; text-decoration: none; }
.todo-list__chevron { color: #ccc; font-size: 12px; }
.todo-list__body {
    padding: 4px 12px 10px;
    border-top: 1px dashed #eae5d5;
}
.rev-todo-link { color: var(--brand-start); }
.rev-todo-link:hover { text-decoration: underline !important; }
.empty-state--sm { padding: 10px 0; text-align: center; }

/* ============ Todo note badge + modal ============ */
.todo-note-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-start, #c9a227);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 0 0 2px #fff;
}
.todo-notes-modal__head {
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.todo-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}
.todo-note {
    background: #fbfaf5;
    border: 1px solid #eae5d5;
    border-left: 3px solid var(--brand-start, #c9a227);
    border-radius: 6px;
    padding: 10px 12px;
}
.todo-note__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.todo-note__body { font-size: 13px; color: #333; white-space: pre-wrap; word-break: break-word; }
.todo-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0ede6;
}
.todo-row:last-child { border-bottom: none; }
.todo-row.is-faded { opacity: 0.5; }
.todo-row.is-strike .todo-row__title { text-decoration: line-through; }
/* "Kapanmış işleri gizle" toggle açıkken done/cancelled satırlar gizlenir */
.module-wrap.is-hide-closed .todo-row.is-faded { display: none; }
.todo-row.is-focus-flash,
.note-item.is-focus-flash,
.meet-item.is-focus-flash {
    animation: focusFlash 2.2s ease-out;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}
@keyframes focusFlash {
    0%   { background: rgba(139, 69, 255, 0.28); box-shadow: 0 0 0 4px rgba(139, 69, 255, 0.35); }
    40%  { background: rgba(139, 69, 255, 0.18); box-shadow: 0 0 0 3px rgba(139, 69, 255, 0.2); }
    100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
}
/* geriye uyumluluk */
@keyframes todoFocusFlash {
    0%   { background: rgba(139, 69, 255, 0.28); box-shadow: 0 0 0 4px rgba(139, 69, 255, 0.35); }
    40%  { background: rgba(139, 69, 255, 0.18); box-shadow: 0 0 0 3px rgba(139, 69, 255, 0.2); }
    100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
}
.todo-row__body { flex: 1; }
.todo-row__title { font-weight: 600; font-size: 14px; }
.todo-row__meta { display: flex; gap: 12px; margin-top: 4px; color: #888; }
.todo-row__meta i { margin-right: 3px; }
.add-todo-link {
    display: block;
    padding: 8px 0;
    color: #888;
    text-decoration: none;
}
.add-todo-link:hover { color: var(--brand-start); }
.add-todo-form { margin-top: 8px; }

/* ============ Drawer ============ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1040;
}
.drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.3, 0, 0.2, 1);
    z-index: 1050;
}
.drawer.is-open {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}
.drawer-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.member-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.member-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.member-check input { margin: 0; }

/* ============ Guest / Login ============ */
.guest-body {
    background: linear-gradient(135deg, #f6f5f1 0%, #e8e5dc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guest-wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.guest-card {
    background: #fff;
    padding: 36px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(20, 15, 40, 0.15);
}
.guest-brand {
    text-align: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.guest-brand strong {
    color: transparent;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
}
.guest-brand span {
    color: #aaa;
    font-weight: 300;
    margin-left: 4px;
    letter-spacing: 4px;
}
.guest-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
}
.guest-subtitle {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin: 0 0 28px;
}
.guest-form { display: flex; flex-direction: column; }
.guest-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

/* ============ Ana sidebar — collapsed (hamburger ile küçültülmüş) ============ */
.sidebar { transition: width .25s ease, box-shadow .25s ease; }

/*
 * Collapsed davranışı:
 * - Grid'de sidebar sütunu yok (tek sütun = 1fr).
 * - Main'e padding-left: 72px veriyoruz ki içerik iconların yanına kaymasın.
 * - Sidebar position: fixed + width: 72px, her zaman overlay olarak duruyor.
 * - Hover'da width 256px'e açılıyor; main padding'i 72px'te sabit kaldığı için
 *   içerik hiçbir zaman itilmiyor, sidebar üzerine yayılıyor.
 */
.layout.is-sidebar-collapsed {
    grid-template-columns: 1fr;
}
.layout.is-sidebar-collapsed .main { padding-left: 72px; }
.layout.is-sidebar-collapsed .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 72px;
    z-index: 1200;
    overflow: hidden;
}
.layout.is-sidebar-collapsed .sidebar-brand { padding: 22px 0 18px; justify-content: center; }
.layout.is-sidebar-collapsed .sidebar-brand strong { font-size: 14px; letter-spacing: 0; }
.layout.is-sidebar-collapsed .sidebar-brand span,
.layout.is-sidebar-collapsed .sidebar-section__label,
.layout.is-sidebar-collapsed .sidebar-link span,
.layout.is-sidebar-collapsed .sidebar-user__info,
.layout.is-sidebar-collapsed .sidebar-user__icon,
.layout.is-sidebar-collapsed .sidebar-link__badge { display: none; }
.layout.is-sidebar-collapsed .sidebar-nav { padding: 10px 8px; gap: 6px; }
.layout.is-sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
    position: relative;
}
.layout.is-sidebar-collapsed .sidebar-link i { font-size: 18px; }
.layout.is-sidebar-collapsed .sidebar-section { padding: 6px 0; }
.layout.is-sidebar-collapsed .sidebar-footer { padding: 10px 6px; }
.layout.is-sidebar-collapsed .sidebar-user {
    justify-content: center;
    gap: 0;
    padding: 6px;
}

/* Hover açılımı — sidebar width büyür, main hiç etkilenmez çünkü padding-left sabit 72px */
.layout.is-sidebar-collapsed .sidebar:hover {
    width: var(--sidebar-width);
    box-shadow: 10px 0 40px rgba(0,0,0,0.35);
    overflow: visible;
}
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-brand { justify-content: flex-start; padding: 22px 24px 18px; }
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-brand strong { font-size: 20px; letter-spacing: 0.5px; }
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-brand span,
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-section__label,
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-link span,
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-user__info,
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-user__icon,
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-link__badge { display: inline-flex; }
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-nav { padding: 12px 14px; gap: 4px; }
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-link {
    justify-content: flex-start;
    padding: 10px 12px;
    gap: 10px;
}
.layout.is-sidebar-collapsed .sidebar:hover .sidebar-user { justify-content: flex-start; gap: 10px; padding: 10px 12px; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width);
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.2,.9,.25,1);
        box-shadow: 8px 0 30px rgba(0,0,0,0.25);
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-backdrop {
        position: fixed; inset: 0;
        background: rgba(10,10,14,0.5);
        opacity: 0; pointer-events: none;
        transition: opacity .3s ease;
        z-index: 1099;
    }
    .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

    .topbar { padding: 0 16px; }
    .topbar-toggle { display: inline-flex; }
    .topbar-title { font-size: 14px; }

    .content { padding: 16px; }

    .page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .page-title { font-size: 22px; }
    .page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .page-head__actions .btn { flex: 1; }

    .project-split { grid-template-columns: 1fr; gap: 12px; }
    .project-split__sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .module-card { padding: 10px; min-height: 70px; }
    .module-card__icon { font-size: 18px; }
    .module-card__label { font-size: 11px; }

    .project-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .project-head__actions { justify-content: flex-start; }
    .project-head__title { font-size: 20px; }
    .project-head__meta { flex-wrap: wrap; }

    .drawer { width: 100vw; }

    /* Tables → daha sıkıştırılmış */
    .table { font-size: 13px; }
    .table th, .table td { padding: 8px 6px; }

    /* Topbar bell + user adı gizle (yer dar) */
    .topbar-user-name { display: none !important; }
    .notif-dropdown { width: calc(100vw - 24px); right: -200px; }

    /* FAB pozisyon */
    .qa-fab { right: 16px; bottom: 16px; }
    .qa-fab__btn { width: 50px; height: 50px; font-size: 22px; }

    /* Alarm bell */
    .alarm-bell { width: calc(100vw - 24px); min-width: auto; left: 12px; transform: none; }
    .alarm-bell.is-visible { transform: none; }
    @keyframes bellWobble {
        0%, 100% { transform: translateX(0); }
        15% { transform: translateX(-6px); }
        30% { transform: translateX(6px); }
        45% { transform: translateX(-4px); }
        60% { transform: translateX(4px); }
        75% { transform: translateX(-2px); }
        90% { transform: translateX(2px); }
    }

    /* Modals */
    .global-search__panel { margin: 16px 12px 0; }

    /* Reminder calendar: list view daha okunaklı mobilde */
    .fc .fc-toolbar.fc-header-toolbar { flex-wrap: wrap; gap: 8px; }
    .fc .fc-toolbar-title { font-size: 16px !important; }

    /* Chat: sidebar üstten, mesajlar altta */
    .chat-wrap { height: calc(100vh - var(--topbar-height) - 90px); }

    /* Account avatar küçült */
    .account-avatar__img, .account-avatar__initial { width: 100px; height: 100px; font-size: 36px; }
}

@media (max-width: 600px) {
    /* Tablo'yu kart şekline döndür (Bootstrap responsive yetmediğinde) */
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* Reminder upcoming list daha sıkı */
    .reminder-upcoming-item { padding: 10px 12px; }

    /* Modüller içinde başlık+aksiyon stack */
    .module-head { flex-wrap: wrap; gap: 8px; }
    .module-head h3 { font-size: 15px; }

    /* Form rows tek sütun */
    .row.g-2 > [class*="col-md-"] { width: 100%; }
}

/* ============ Balance / unpaid amount ============ */
.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe7c2 100%);
    color: #a85b00;
    font-weight: 600;
    font-size: 11px;
    border: 1px solid #ffd29e;
    line-height: 1.6;
    box-shadow: 0 1px 2px rgba(168,91,0,0.08);
}
.balance-pill i { font-size: 12px; }
.balance-amount {
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
}
.balance-amount--pending { color: #a85b00; }
.balance-amount--paid { color: #1b8a54; font-size: 12px; }
.balance-amount--paid i { margin-right: 3px; }

/* ============ Modern UI polish ============ */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(20,20,28,0.04);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: 0 4px 18px rgba(20,20,28,0.06); }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
}
.btn {
    border-radius: 8px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--brand-gradient);
    border: none;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-gradient);
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(139,69,255,0.25);
}
.btn-light {
    border: 1px solid transparent;
    background: #f3f1ec;
}
.btn-light:hover {
    background: #ebe8e0;
    border-color: #ded9ca;
}
.badge { font-weight: 600; letter-spacing: 0.2px; }

/* Form controls — finer feel */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #dcd9d0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: #b0aba0; }

/* Page head refinements */
.page-head { margin-bottom: 22px; }
.page-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0;
}
.page-subtitle {
    color: #8a8679;
    margin: 2px 0 0;
    font-size: 13px;
}

/* Table polish */
.table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a8679;
    font-weight: 700;
    border-bottom-width: 1px;
}
.table-hover > tbody > tr:hover { background: #faf8f2; }

/* Empty state refinements */
.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: #8a8679;
}
.empty-state i {
    font-size: 36px;
    color: #c7c2b4;
    display: block;
    margin-bottom: 8px;
}

/* Module card refinements */
.module-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20,20,28,0.08);
}

/* Subtle fade-in for loaded modules */
#moduleContent > * {
    animation: fadeInUp .35s ease both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Toasts — rounded */
.toast { border-radius: 10px; }

/* ============ Reminder drawer (sağdan slide) ============ */
.reminder-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,10,14,0.5);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1050;
}
.reminder-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.reminder-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 440px; max-width: 100vw;
    background: #fff;
    box-shadow: -8px 0 30px rgba(20,20,28,0.12);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2,.9,.25,1);
    z-index: 1060;
    display: flex;
    flex-direction: column;
}
.reminder-drawer.is-open { transform: translateX(0); }
.reminder-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.reminder-drawer__body { flex: 1; padding: 22px; overflow-y: auto; }
.reminder-drawer__footer {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    background: #fbfaf5;
}

/* Upcoming reminders list */
.reminder-upcoming-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background .15s ease;
}
.reminder-upcoming-item:last-child { border-bottom: none; }
.reminder-upcoming-item:hover { background: #faf8f2; }
.reminder-upcoming-item__date {
    flex-shrink: 0;
    width: 46px;
    text-align: center;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 8px;
    padding: 6px 0;
    line-height: 1.1;
}
.reminder-upcoming-item__day { font-size: 18px; font-weight: 700; }
.reminder-upcoming-item__month { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }

/* FullCalendar tweaks */
.fc { font-family: inherit; }
.fc .fc-toolbar-title { font-size: 18px !important; font-weight: 700; }
.fc .fc-button {
    background: #f3f1ec !important;
    border: 1px solid #ded9ca !important;
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
}
.fc .fc-button-primary:not(:disabled):hover { filter: brightness(.96); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--brand-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.fc .fc-daygrid-day.fc-day-today { background: rgba(239, 107, 52, 0.06); }
.fc .fc-daygrid-event {
    background: var(--brand-gradient);
    border: none;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
}
.fc .fc-daygrid-event:hover { filter: brightness(1.1); }
.fc-h-event .fc-event-title { font-weight: 600; }

@media (max-width: 600px) {
    .reminder-drawer { width: 100vw; }
}

/* ============ Notification bell (topbar) ============ */
.notif-wrap { position: relative; }
.notif-btn {
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #555;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.notif-btn:hover {
    background: #f3f1ec;
    border-color: #ded9ca;
    color: #14141c;
}
.notif-btn.has-unread {
    color: var(--brand-start);
    animation: notifPulse 2.2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: rotate(0deg); }
    8%  { transform: rotate(12deg); }
    16% { transform: rotate(-12deg); }
    24% { transform: rotate(8deg); }
    32% { transform: rotate(-8deg); }
    40% { transform: rotate(0deg); }
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(231,76,60,0.4);
}

/* Dropdown */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(20,20,28,0.15);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1200;
}
.notif-wrap.is-open .notif-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.notif-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.notif-dropdown__head strong { font-size: 14px; }
.notif-dropdown__list {
    max-height: 440px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0ede6;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
    position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #faf8f2; text-decoration: none; }
.notif-item.is-unread { background: rgba(239, 107, 52, 0.04); }
.notif-item.is-unread:hover { background: rgba(239, 107, 52, 0.08); }
.notif-item__avatar,
.notif-item__initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.notif-item__initial {
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #14141c;
    margin-bottom: 2px;
}
.notif-item__desc {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notif-item__time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.notif-item__dot {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-start);
    box-shadow: 0 0 0 2px rgba(239, 107, 52, 0.25);
}

/* ============ Alarm bell (bottom popup + shake) ============ */
.alarm-bell {
    position: fixed;
    left: 50%;
    bottom: -140px;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid var(--brand-start);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.35);
    padding: 14px 18px 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 340px;
    max-width: 480px;
    z-index: 2000;
    cursor: pointer;
    transition: bottom .45s cubic-bezier(.3,.9,.2,1.1), opacity .25s;
    opacity: 0;
    pointer-events: none;
}
.alarm-bell.is-visible {
    bottom: 24px;
    opacity: 1;
    pointer-events: auto;
}
.alarm-bell.is-shaking .alarm-bell__icon {
    animation: bellShake 0.9s ease-in-out 2;
    transform-origin: top center;
}
.alarm-bell.is-shaking {
    animation: bellWobble 0.9s ease-in-out 2;
}
@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-18deg); }
    20% { transform: rotate(18deg); }
    30% { transform: rotate(-14deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    70% { transform: rotate(-6deg); }
    80% { transform: rotate(6deg); }
    90% { transform: rotate(-2deg); }
}
@keyframes bellWobble {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    15% { transform: translateX(calc(-50% - 6px)) rotate(-2deg); }
    30% { transform: translateX(calc(-50% + 6px)) rotate(2deg); }
    45% { transform: translateX(calc(-50% - 4px)) rotate(-1.5deg); }
    60% { transform: translateX(calc(-50% + 4px)) rotate(1.5deg); }
    75% { transform: translateX(calc(-50% - 2px)) rotate(-1deg); }
    90% { transform: translateX(calc(-50% + 2px)) rotate(1deg); }
}
.alarm-bell__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(239, 107, 52, 0.4);
}
.alarm-bell__body { flex: 1; min-width: 0; }
.alarm-bell__title {
    font-size: 14px;
    font-weight: 700;
    color: #14141c;
    line-height: 1.3;
    margin-bottom: 2px;
}
.alarm-bell__sub {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.alarm-bell__close {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #999;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.alarm-bell__close:hover { background: #f3f1ec; color: #333; }

@media (max-width: 600px) {
    .alarm-bell { min-width: auto; width: calc(100vw - 24px); }
    .notif-dropdown { width: calc(100vw - 24px); right: -80px; }
}

/* Sidebar link inline badge */
.sidebar-link { position: relative; }
.sidebar-link__badge {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============ Messages / Chat UI ============ */
.chat-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100dvh - var(--topbar-height) - 100px);
    min-height: 500px;
    max-height: calc(100dvh - var(--topbar-height) - 80px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,20,28,0.04);
    position: relative;
}

/* Mobile (≤768px): tek sütun, sidebar default gizli, hamburger ile aç/kapat */
@media (max-width: 768px) {
    .chat-wrap {
        grid-template-columns: 1fr;
        height: calc(100dvh - var(--topbar-height) - 30px);
        max-height: calc(100dvh - var(--topbar-height) - 30px);
        min-height: 0;
        border-radius: 8px;
    }
    /* Sidebar default gizli */
    .chat-sidebar {
        display: none;
    }
    /* Açıkken: tam ekran kapla, ana içeriğin yerine geç */
    .chat-wrap.is-sidebar-open .chat-sidebar {
        display: flex;
        position: absolute;
        inset: 0;
        z-index: 30;
        background: #fbfaf5;
    }
    /* Sidebar açıkken ana içerik gizlensin (focus dağılmasın) */
    .chat-wrap.is-sidebar-open .chat-main {
        display: none;
    }
    /* Hiç konuşma seçili değilse: sidebar normal flow'da görünsün, chat-main gizlensin */
    .chat-wrap.is-no-active .chat-sidebar {
        display: flex;
    }
    .chat-wrap.is-no-active .chat-main {
        display: none;
    }
    .chat-main { width: 100%; min-width: 0; }
    .chat-mobile-toggle { display: inline-flex !important; }
}
.chat-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #14141c;
    padding: 4px 8px;
    margin-right: 8px;
    cursor: pointer;
}
/* Chat-main içinde sol üst köşede sidebar toggle (sadece mobile'da görünür) */
.chat-main__sidebar-toggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: #14141c;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 1px 3px rgba(20,20,28,0.06);
    padding: 0;
}
.chat-main__sidebar-toggle:hover { background: #f6f5f1; }
@media (max-width: 768px) {
    .chat-main__sidebar-toggle { display: inline-flex; }
    /* Toggle ile chat header'ın çakışmaması için sol padding */
    .chat-main__head { padding-left: 56px; }
    .chat-empty.chat-empty--full { padding-top: 60px; }
}
/* Sidebar header'ında geri butonu — mobile'da sidebar açıkken kapatmak için */
.chat-sidebar__back {
    display: none;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #14141c;
    padding: 4px 8px;
    margin-right: 6px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .chat-wrap.is-sidebar-open .chat-sidebar__back { display: inline-flex; }
}

/* Sol: konuşma listesi */
.chat-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background: #fbfaf5;
    min-width: 0;
}
.chat-sidebar__head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
}
.chat-sidebar__head input { flex: 1; min-width: 0; }

.chat-section { border-bottom: 1px solid #f0ede6; padding: 6px 0 8px; }
.chat-section:last-child { border-bottom: none; }
.chat-section__head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #888;
}
.chat-section__head i { font-size: 12px; }
.chat-section__empty { padding: 6px 16px; }

.chat-convo__hash {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f3f1ec;
    color: #6b3fd1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.chat-convo--channel .chat-convo__name::before { content: '# '; color: #bbb; font-weight: 400; }
.chat-main__avatar--hash {
    background: #f3f1ec !important;
    color: #6b3fd1 !important;
    font-size: 22px !important;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.chat-main__actions { display: flex; gap: 6px; }

/* Mention pill in chat */
.chat-msg__content .mention {
    background: rgba(139, 69, 255, 0.15);
    color: #6b3fd1;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.chat-msg__content .mention--all {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

/* Group/channel sender avatar + name inside bubble */
.chat-msg.is-theirs { align-items: flex-end; gap: 8px; }
.chat-msg__sender {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 4px;
}
.chat-msg__sender img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg__initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}
.chat-msg__name {
    font-size: 11px;
    font-weight: 700;
    color: #6b3fd1;
    margin-bottom: 2px;
}

/* Message hover actions */
.chat-msg__bubble { position: relative; }
.chat-msg__actions {
    position: absolute;
    top: -10px;
    right: 4px;
    display: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.chat-msg:hover .chat-msg__actions { display: flex; }
.chat-msg.is-mine .chat-msg__actions { right: auto; left: 4px; }
.chat-msg__action {
    background: transparent;
    border: none;
    padding: 3px 6px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
}
.chat-msg__action:hover { background: #f3f1ec; }

/* Composer mention dropdown override (position above) */
.chat-composer { position: relative; }
.chat-composer__mention-dropdown {
    bottom: 100%;
    margin-bottom: 8px;
    left: 0;
    right: 60px;
}
.chat-sidebar__list {
    flex: 1;
    overflow-y: auto;
}
.chat-convo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0ede6;
    transition: background .15s ease;
    min-width: 0;
}
.chat-convo:last-child { border-bottom: none; }
.chat-convo:hover { background: #fff; text-decoration: none; }
.chat-convo.is-active {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--brand-start);
}
.chat-convo.has-unread .chat-convo__name { font-weight: 700; }
.chat-convo__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.chat-convo__avatar--initial {
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.chat-convo__body { flex: 1; min-width: 0; }
.chat-convo__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.chat-convo__name {
    font-size: 14px;
    font-weight: 600;
    color: #14141c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.chat-convo__time { font-size: 11px; color: #999; flex-shrink: 0; }
.chat-convo__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
}
.chat-convo__preview {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.chat-convo__badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Sağ: aktif sohbet */
.chat-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    position: relative;
}
.chat-main__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}
.chat-main__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-main__avatar--initial {
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.chat-main__info { flex: 1; min-width: 0; }
.chat-main__name { font-weight: 700; font-size: 15px; }
.chat-main__role { margin: 0; }

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 20px 24px;
    background: #f9f7f1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
}
.chat-main {
    min-height: 0;
}
.chat-main__head, .chat-composer {
    flex-shrink: 0;
}
.chat-day {
    text-align: center;
    margin: 12px 0 8px;
}
.chat-day span {
    display: inline-block;
    padding: 4px 12px;
    background: #eae5d5;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
}
.chat-msg {
    display: flex;
    margin-bottom: 2px;
}
.chat-msg.is-mine { justify-content: flex-end; }
.chat-msg.is-theirs { justify-content: flex-start; }
.chat-msg__bubble {
    max-width: 72%;
    padding: 9px 13px 6px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(20,20,28,0.06);
    animation: chatBubbleIn .2s ease;
}
@keyframes chatBubbleIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.is-mine .chat-msg__bubble {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--brand-gradient) border-box;
    border: 2px solid transparent;
    color: #14141c;
    border-bottom-right-radius: 4px;
}
.chat-msg.is-mine .chat-msg__bubble .mention {
    background: rgba(139, 69, 255, 0.15);
    color: #6b3fd1;
}
.chat-msg.is-mine .chat-msg__bubble .mention--all {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}
.chat-msg.is-theirs .chat-msg__bubble {
    background: #fff;
    color: #14141c;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}
/* Optimistic UI — pending/failed durumlar */
.chat-msg.is-pending .chat-msg__bubble { opacity: 0.55; font-style: italic; }
.chat-msg.is-failed  .chat-msg__bubble { border-color: #e74c3c !important; background: rgba(231,76,60,0.08) !important; }
.chat-msg.is-failed  .chat-msg__bubble::after { content: "⚠ gönderilemedi"; display: block; font-size: 10px; color: #c0392b; margin-top: 4px; }
.chat-msg__content { white-space: pre-wrap; }
.chat-msg__time {
    font-size: 10px;
    opacity: 0.75;
    text-align: right;
    margin-top: 2px;
}

.chat-composer {
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}
.chat-composer form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
}
.chat-composer__emoji-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f6f5f1;
    border: 1px solid #eae5d5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 0;
    transition: background .15s;
}
.chat-composer__emoji-btn:hover {
    background: #eae5d5;
    color: #14141c;
}
.chat-composer__emoji-grid {
    position: absolute;
    bottom: 56px;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20,20,28,0.12);
    padding: 10px;
    grid-template-columns: repeat(8, 32px);
    gap: 2px;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
}
.chat-composer__emoji-grid button {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    font-size: 19px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background .1s;
}
.chat-composer__emoji-grid button:hover {
    background: #f6f5f1;
}
@media (max-width: 768px) {
    .chat-composer__emoji-grid {
        grid-template-columns: repeat(7, 32px);
    }
}
.chat-composer textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 160px;
    border-radius: 22px;
    padding: 12px 18px;
    background: #f6f5f1;
    border: 1px solid #eae5d5;
    font-size: 13.5px;
    transition: background .15s, border-color .15s;
}
.chat-composer textarea:focus {
    background: #fff;
    border-color: rgba(139,69,255,0.4);
    outline: none;
}
.chat-composer button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}
.chat-empty i { font-size: 40px; display: block; margin-bottom: 8px; color: #ccc; }
.chat-empty--full {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

@media (max-width: 900px) {
    .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - var(--topbar-height) - 100px); }
    .chat-sidebar { display: none; }
    .chat-sidebar.is-open { display: flex; }
}

/* ============ Mentions ============ */
.mention {
    background: rgba(139, 69, 255, 0.12);
    color: #6b3fd1;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}
.mention-dropdown {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(20,20,28,0.15);
    max-height: 230px;
    overflow-y: auto;
    z-index: 1100;
}
.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0ede6;
    transition: background .15s;
}
.mention-item:last-child { border-bottom: none; }
.mention-item.is-active,
.mention-item:hover { background: rgba(139, 69, 255, 0.08); }
.mention-item__avatar,
.mention-item__initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.mention-item__initial {
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.mention-item__name { flex: 1; font-weight: 600; font-size: 13px; color: #14141c; }
.mention-item__slug { font-size: 11px; color: #999; }

/* ============ Activity feed ============ */
.activity-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.activity-feed::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.activity-feed__day {
    list-style: none;
    margin: 16px 0 8px 50px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fff;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding-right: 12px;
}
.activity-item {
    list-style: none;
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}
.activity-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
    margin-left: 4px;
}
.activity-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.activity-item__initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.activity-item__body { flex: 1; min-width: 0; padding-top: 4px; }
.activity-item__summary { font-size: 13px; line-height: 1.4; color: #333; }
.activity-item__time { font-size: 11px; color: #999; margin-top: 2px; }

/* ============ Global search modal (Cmd+K) ============ */
.global-search {
    position: fixed; inset: 0;
    z-index: 2100;
    display: none;
}
.global-search.is-open { display: block; }
.global-search__backdrop {
    position: absolute; inset: 0;
    background: rgba(10,10,14,0.55);
    backdrop-filter: blur(2px);
    animation: fadeBackdrop .2s ease;
}
@keyframes fadeBackdrop { from { opacity: 0; } to { opacity: 1; } }
.global-search__panel {
    position: relative;
    max-width: 640px;
    margin: 80px auto 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(20,20,28,0.35);
    overflow: hidden;
    animation: gsPanelIn .25s cubic-bezier(.2,.9,.25,1);
}
@keyframes gsPanelIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.global-search__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.global-search__head i { font-size: 20px; color: #888; }
.global-search__head input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}
.global-search__head kbd {
    background: #f3f1ec;
    border: 1px solid #ded9ca;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    color: #666;
}
.global-search__results {
    max-height: 440px;
    overflow-y: auto;
}
.global-search__hint {
    padding: 30px 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}
.global-search__hint kbd {
    background: #f3f1ec;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #ded9ca;
    font-size: 11px;
    color: #1a1a1a;
}
.global-search__hint code {
    background: #f3f1ec;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--brand-end);
}
.search-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fbfaf5;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: #14141c;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.search-badge:hover {
    background: #fff;
    border-color: var(--brand-end);
    color: var(--brand-end);
    transform: translateY(-1px);
}
.search-badge:active { transform: translateY(0); }
.search-badge i { font-size: 13px; }
.gs-group {
    border-bottom: 1px solid #f0ede6;
    padding: 8px 0 4px;
}
.gs-group:last-child { border-bottom: none; }
.gs-group__head {
    padding: 4px 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    font-weight: 700;
}
.gs-item {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
}
.gs-item:hover, .gs-item.is-active {
    background: rgba(139, 69, 255, 0.08);
    border-left-color: var(--brand-end);
    text-decoration: none;
}
.gs-item__title { font-size: 13.5px; font-weight: 600; color: #14141c; }
.gs-item__sub { font-size: 11.5px; color: #888; margin-top: 1px; }

/* ============ Quick-add FAB ============ */
.qa-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
}
.qa-fab__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139,69,255,0.35);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qa-fab__btn:hover { transform: translateY(-2px) scale(1.05); }
.qa-fab.is-open .qa-fab__btn { transform: rotate(45deg); }
.qa-fab__menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(20,20,28,0.18);
    padding: 6px;
    min-width: 240px;
    opacity: 0;
    transform: translateY(8px) scale(.96);
    pointer-events: none;
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease;
}
.qa-fab.is-open .qa-fab__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.qa-fab__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #14141c;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .15s;
}
.qa-fab__item i { font-size: 16px; color: #6b3fd1; width: 20px; text-align: center; }
.qa-fab__item:hover { background: #f6f5f1; text-decoration: none; }
.qa-fab__item kbd {
    background: #f3f1ec;
    border: 1px solid #ded9ca;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    color: #888;
}

/* ============ Attachments ============ */
.attachments-list { display: flex; flex-direction: column; gap: 4px; }
.attachment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fbfaf5;
    border: 1px solid #eae5d5;
    border-radius: 6px;
}
.attachment-row__icon {
    font-size: 22px;
    color: #6b3fd1;
    flex-shrink: 0;
}
.attachment-row__body { flex: 1; min-width: 0; }
.attachment-row__name {
    font-size: 13px;
    font-weight: 600;
    color: #14141c;
    text-decoration: none;
    word-break: break-all;
}
.attachment-row__name:hover { color: var(--brand-end); text-decoration: underline; }
.attachment-row__meta { font-size: 11px; color: #888; margin-top: 1px; }
.attachments-upload .btn {
    border: 1px dashed #ded9ca;
    background: transparent;
}
.attachments-upload .btn:hover { background: #f3f1ec; border-color: var(--brand-end); }

/* ============ Kanban board ============ */
.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}
.board-head__left { display: flex; align-items: center; gap: 14px; }
.board-head__breadcrumb {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.board-head__breadcrumb a { color: #6b3fd1; text-decoration: none; }
.board-head__title { margin: 0; font-size: 22px; font-weight: 700; }

.board-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.board-filter { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.board-filter label { font-size: 11px; font-weight: 600; }
.board-filter--toggle { align-self: center; min-width: auto; }
.board-filter--spacer { flex: 1; min-width: 0; }

.board-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 14px;
    align-items: flex-start;
}
.board-col {
    background: #fbfaf5;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.board-col--waiting     { border-top: 3px solid #ffb84d; }
.board-col--in_progress { border-top: 3px solid #4e9eff; }
.board-col--done        { border-top: 3px solid #2ecc71; }
.board-col--cancelled   { border-top: 3px solid #e74c3c; }

.board-col__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #444;
}
.board-col__head i { font-size: 15px; }
.board-col__title { flex: 1; }
.board-col__count {
    background: rgba(0,0,0,0.06);
    color: #555;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}
.board-col__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
    padding: 2px;
}
.board-col__add {
    margin-top: 8px;
    background: transparent;
    border: 1px dashed #ded9ca;
    border-radius: 8px;
    padding: 8px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.board-col__add:hover {
    background: #fff;
    border-color: var(--brand-end);
    color: var(--brand-end);
}

/* Card */
.board-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(20,20,28,0.04);
    cursor: grab;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    position: relative;
}
.board-card:hover {
    box-shadow: 0 6px 18px rgba(20,20,28,0.08);
    border-color: #ded9ca;
    transform: translateY(-1px);
}
.board-card:active { cursor: grabbing; }
.board-card--ghost {
    opacity: 0.5;
    background: #f0ede6;
}
.board-card--chosen { box-shadow: 0 12px 28px rgba(139,69,255,0.25); }
.board-card--dragging {
    transform: rotate(2deg);
    box-shadow: 0 20px 40px rgba(20,20,28,0.25);
}

.board-card__title {
    font-size: 13.5px;
    font-weight: 600;
    color: #14141c;
    line-height: 1.35;
    margin-bottom: 6px;
    word-wrap: break-word;
}
.board-card__list-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #6b3fd1;
    background: rgba(139, 69, 255, 0.1);
    padding: 1px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.board-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #888;
}
.board-card__assignee img,
.board-card__assignee .board-card__initial {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 10px;
}
.board-card__due {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f1ec;
    color: #666;
}
.board-card__due.is-overdue {
    background: rgba(231,76,60,0.12);
    color: #c0392b;
    font-weight: 700;
}
.board-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #999;
}

/* Inline add form */
.board-add-form {
    background: #fff;
    border: 1px solid var(--brand-end);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(139,69,255,0.15);
}

/* Responsive: sütunları yatay scroll olarak göster */
@media (max-width: 1100px) {
    .board-columns {
        grid-template-columns: repeat(4, 280px);
        overflow-x: auto;
        padding-bottom: 12px;
    }
}
@media (max-width: 600px) {
    .board-head { flex-direction: column; align-items: stretch; }
    .board-filters { padding: 10px; }
    .board-filter { min-width: 120px; }
    .board-columns { grid-template-columns: repeat(4, 260px); gap: 10px; }
}

/* ============ Client detail page ============ */
.client-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.client-head__left { display: flex; align-items: flex-start; gap: 14px; }
.client-head__info { min-width: 0; }
.client-head__breadcrumb { font-size: 12px; color: #888; margin-bottom: 4px; }
.client-head__breadcrumb a { color: #6b3fd1; text-decoration: none; }
.client-head__title { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.client-head__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}
.client-head__meta a { color: #6b3fd1; text-decoration: none; }

/* Stat cards */
.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(20,20,28,0.04);
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
a.stat-card:hover,
.stat-card--link:hover {
    text-decoration: none;
    color: inherit;
    border-color: var(--brand-end);
    box-shadow: 0 6px 18px rgba(20,20,28,0.08);
    transform: translateY(-1px);
}
.stat-card--link.is-active {
    border-color: var(--brand-end);
    box-shadow: 0 0 0 2px rgba(139, 69, 255, 0.15);
}
.stat-card__label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-card__value { font-size: 22px; font-weight: 700; color: #14141c; margin: 4px 0 2px; }
.stat-card__sub { font-size: 11px; color: #999; }
.stat-card--success { border-left: 3px solid #2ecc71; }
.stat-card--success .stat-card__value { color: #1b8a54; }
.stat-card--warning { border-left: 3px solid #ffb84d; }
.stat-card--warning .stat-card__value { color: #a85b00; }
.stat-card--danger { border-left: 3px solid #e74c3c; }
.stat-card--danger .stat-card__value { color: #c0392b; }

/* Info rows (right column details) */
.info-row {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0ede6;
    font-size: 13px;
    align-items: flex-start;
}
.info-row:last-child { border-bottom: none; }
.info-row__label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 64px;
    flex-shrink: 0;
    padding-top: 2px;
}
.info-row--vertical { flex-direction: column; gap: 2px; }
.info-row--vertical .info-row__label { width: auto; margin-bottom: 2px; }
.info-row code { background: #f3f1ec; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #6b3fd1; }

/* Dashboard subscription groups widget */
.sub-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.sub-group {
    background: #fbfaf5;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    border-top: 3px solid #ddd;
}
.sub-group--danger  { border-top-color: #e74c3c; }
.sub-group--warning { border-top-color: #ffb84d; }
.sub-group--info    { border-top-color: #4e9eff; }
.sub-group__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}
.sub-group__head i { font-size: 15px; }
.sub-group__head strong { flex: 1; font-size: 13px; }
.sub-group__list { display: flex; flex-direction: column; gap: 6px; }
.sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #eae5d5;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
}
.sub-item:hover {
    border-color: var(--brand-end);
    transform: translateX(2px);
    text-decoration: none;
}
.sub-item__icon {
    font-size: 16px;
    color: #6b3fd1;
    flex-shrink: 0;
}
.sub-item__body { flex: 1; min-width: 0; }
.sub-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #14141c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-item__meta {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-item__days {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f1ec;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-group--danger  .sub-item__days { background: rgba(231,76,60,0.12); color: #c0392b; }
.sub-group--warning .sub-item__days { background: rgba(255,184,77,0.18); color: #a85b00; }
.sub-group--info    .sub-item__days { background: rgba(78,158,255,0.14); color: #1e5fa5; }

/* spin animation for refresh button */
.bi.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Subscription rows */
.subscription-list { display: flex; flex-direction: column; gap: 8px; }
.subscription-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fbfaf5;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: background .15s, border-color .15s;
}
.subscription-row:hover { background: #fff; border-color: #ded9ca; }
.subscription-row__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.subscription-row__body { flex: 1; min-width: 0; }
.subscription-row__name { font-weight: 600; font-size: 14px; color: #14141c; }
.subscription-row__meta { margin-top: 1px; }
.subscription-row__urgency { flex-shrink: 0; }
.subscription-row__actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Drawer form section titles */
.drawer-form__section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #888;
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-form__template-block {
    background: rgba(139, 69, 255, 0.05);
    border: 1px dashed rgba(139, 69, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
}

/* ============ Template admin ============ */
.template-list { padding: 0; }
.template-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0ede6;
}
.template-item:last-child { border-bottom: none; }
.template-item__body { flex: 1; min-width: 0; }
.template-item__actions { display: flex; gap: 4px; }

.tpl-preview {
    background: #fbfaf5;
    border: 1px solid #eae5d5;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
}
.tpl-preview__group { margin-bottom: 10px; }
.tpl-preview__group:last-child { margin-bottom: 0; }
.tpl-preview__list {
    margin: 4px 0 4px 22px;
    color: #666;
    font-size: 12px;
}

/* ============ Expense categories (admin) ============ */
.category-list { margin: 0; padding: 0; }
.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0ede6;
}
.category-item:last-child { border-bottom: none; }
.category-item__swatch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.category-item__body { flex: 1; min-width: 0; }
.category-item__actions { display: flex; gap: 4px; }

.icon-suggestions { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-chip {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: border-color .15s, background .15s;
}
.icon-chip:hover { border-color: var(--brand-end); color: var(--brand-end); background: #f6f5f1; }

.color-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.color-chip {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: transform .15s;
}
.color-chip:hover { transform: scale(1.1); }

.cat-preview { padding: 10px; background: #fbfaf5; border: 1px dashed var(--border-color); border-radius: 8px; }

/* Expense list category chip */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat-color) 14%, #fff);
    color: var(--cat-color);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
}
.cat-chip i { font-size: 12px; }

/* Recurring expense template item */
.ret-list { margin: 0; padding: 0; }
.ret-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0ede6;
}
.ret-item:last-child { border-bottom: none; }
.ret-item.is-inactive { opacity: 0.55; }
.ret-item__swatch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.ret-item__body { flex: 1; min-width: 0; }
.ret-item__actions { display: flex; gap: 4px; }

/* ============ Finance dashboard ============ */
.cat-list { margin: 0; padding: 0; }
.cat-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0ede6;
    font-size: 12px;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cat-list__name { flex: 1; min-width: 0; color: #333; font-weight: 500; }
.cat-list__name i { color: #888; margin-right: 2px; }
.cat-list__amount { font-weight: 700; color: #14141c; }
.cat-list__pct { flex-shrink: 0; }

/* ============ Invoice editor ============ */
.invoice-items-table { font-size: 13px; }
.invoice-items-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #888;
    font-weight: 700;
    padding: 10px 8px;
    background: #fbfaf5;
    white-space: nowrap;
}
.invoice-items-table td { padding: 8px 6px; vertical-align: top; }
.invoice-items-table input,
.invoice-items-table select {
    font-size: 12.5px;
}
.invoice-items-table .inv-item__total {
    padding-top: 12px;
    font-size: 13px;
}

#invoiceForm.is-locked input,
#invoiceForm.is-locked select,
#invoiceForm.is-locked textarea {
    background-color: #f3f1ec !important;
    cursor: not-allowed;
}

.invoice-totals { font-size: 13px; }
.invoice-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f0ede6;
}
.invoice-totals__row:last-child { border-bottom: none; }
.invoice-totals__row--grand {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid #14141c;
    font-size: 16px;
    font-weight: 700;
}
.invoice-totals__row--grand strong { color: var(--brand-end); font-size: 18px; }

/* Help modal table */
.help-table td { padding: 6px 4px; }
.help-table kbd {
    background: #f3f1ec;
    border: 1px solid #ded9ca;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    color: #333;
    font-family: SFMono-Regular, Menlo, monospace;
}

/* ============ Chat sidebar collapse / main close ============ */
.chat-sidebar__head { gap: 6px; }
.chat-sidebar__collapse { flex-shrink: 0; padding: 4px 8px; }
.chat-sidebar__add { flex-shrink: 0; }

.chat-wrap.is-sidebar-collapsed { grid-template-columns: 64px 1fr; }
.chat-wrap.is-sidebar-collapsed .chat-sidebar__search,
.chat-wrap.is-sidebar-collapsed .chat-sidebar__add,
.chat-wrap.is-sidebar-collapsed .chat-section__add,
.chat-wrap.is-sidebar-collapsed .chat-section__label,
.chat-wrap.is-sidebar-collapsed .chat-section__empty,
.chat-wrap.is-sidebar-collapsed .chat-convo__body,
.chat-wrap.is-sidebar-collapsed .chat-convo__preview { display: none !important; }
.chat-wrap.is-sidebar-collapsed .chat-sidebar__head { justify-content: center; padding: 14px 6px; }
.chat-wrap.is-sidebar-collapsed .chat-section__head {
    justify-content: center;
    padding: 10px 0 4px;
}
.chat-wrap.is-sidebar-collapsed .chat-convo {
    padding: 6px 6px;
    justify-content: center;
    position: relative;
}
.chat-wrap.is-sidebar-collapsed .chat-convo__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    padding: 1px 4px;
    font-size: 10px;
}

/* Konuşma seçili değil (sayfa açılışı veya X ile kapatılmış) */
.chat-wrap.is-no-active .chat-main { display: none; }

.chat-main__close { margin-left: 4px; }

/* Şifre kapısı */
.chat-pwd-gate {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.chat-pwd-gate__card {
    max-width: 360px;
    width: 100%;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(20,20,28,0.04);
}
.chat-pwd-gate__icon {
    font-size: 40px;
    color: #d4a63b;
    display: block;
    margin-bottom: 8px;
}

/* Arşiv listesi */
.archive-row:last-child { border-bottom: none !important; }
.archive-row .btn { flex-shrink: 0; }

/* ============ Dashboard: scrollable card bodies + chart boxes ============ */
.dashboard-card__scroll {
    max-height: 460px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}
.dashboard-card__scroll--sm { max-height: 360px; }
.dashboard-card__scroll .dashboard-search {
    position: sticky;
    top: -1rem;
    z-index: 3;
    background: #fff;
    margin: -0.5rem -0.25rem 0.5rem;
    padding: 0.5rem 0.25rem;
    box-shadow: 0 4px 6px -6px rgba(0,0,0,0.15);
}

.chart-box { position: relative; width: 100%; }
.chart-box--sm { height: 240px; }
.chart-box--md { height: 320px; }
.chart-box--lg { height: 420px; }

/* ============ DataTable component ============ */
.dt-wrap { display: flex; flex-direction: column; gap: 10px; }
.dt-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fbfaf5;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}
.dt-search { max-width: 280px; flex: 1 1 200px; }
.dt-page-size { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dt-size { width: auto; padding-right: 28px; }
.dt-info { margin-left: auto; white-space: nowrap; }
.dt-export { flex-shrink: 0; }

.dt-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 12px 12px 14px;
    background: #fbfaf5;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    flex-wrap: wrap;
}
.dt-footer .btn { min-width: 34px; padding: 4px 10px; }
.dt-dots { padding: 0 6px; }

.dt-th-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.dt-th-sortable:hover { background: rgba(139,69,255,0.06); }
.dt-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    color: var(--brand-end);
    min-width: 10px;
}

/* DataTable container: toolbar/footer ile arasında seamless birlik */
.dt-wrap > table.data-table {
    border-radius: 0;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    margin-bottom: 0;
    background: #fff;
}

/* ============ Modern warm-themed table row treatment ============
 * Bootstrap'in default striped/hover grilerini kapat; temanın warm cream tonlarıyla
 * subtle hover + neredeyse görünmez bottom border + accent-left on hover.
 */
.data-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-color-state: inherit;
    --bs-table-bg-state: transparent;
}
.data-table > :not(caption) > * > * { background-color: transparent !important; }
.data-table thead th {
    background: linear-gradient(180deg, #fbfaf5 0%, #f6f3eb 100%);
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    font-weight: 600;
    font-size: 11.5px;
    color: #6e6e78;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 14px;
    white-space: nowrap;
}
.data-table tbody td {
    border: none;
    padding: 14px;
    vertical-align: middle;
    color: #14141c;
}
.data-table tbody tr {
    transition: background .18s ease;
    border-bottom: 1px solid #f0ede6;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(239,107,52,0.04) 0%, rgba(139,69,255,0.04) 50%, rgba(139,69,255,0.01) 100%);
}
.data-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 0 var(--brand-end);
}

/* Row içi link rengini tutarlı hale getir */
.data-table tbody a { color: inherit; text-decoration: none; }
.data-table tbody a.fw-semibold:hover,
.data-table tbody td > a:hover { color: var(--brand-end); }

/* ============ Row actions dropdown ============ */
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.row-actions__trigger {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #6e6e78;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    transition: background .15s, color .15s, border-color .15s;
}
.row-actions__trigger:hover,
.row-actions__trigger[aria-expanded="true"] {
    background: #f3f1ec;
    color: #14141c;
    border-color: #ded9ca;
}
.row-actions__trigger::after { display: none; } /* bootstrap caret gizle */

.row-actions__menu {
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(20,20,28,0.12);
    border-radius: 10px;
}
.row-actions__menu .dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #14141c;
}
.row-actions__menu .dropdown-item i { width: 18px; font-size: 14px; color: #8a8a95; }
.row-actions__menu .dropdown-item:hover { background: #fbfaf5; color: #14141c; }
.row-actions__menu .dropdown-item:hover i { color: var(--brand-end); }
.row-actions__menu .dropdown-item.text-danger:hover { background: rgba(231,76,60,0.07); color: #c0392b; }
.row-actions__menu .dropdown-item.text-danger:hover i { color: #c0392b; }
.row-actions__menu .dropdown-divider { margin: 4px 0; border-top-color: #f0ede6; }
.row-actions__menu .dropdown-item--open { color: var(--brand-end); font-weight: 600; }
.row-actions__menu .dropdown-item--open i { color: var(--brand-end); }

/* Invoices — vadesi geçmiş satır vurgusu */
.invoice-row--overdue { background: rgba(231, 76, 60, 0.05) !important; }
.invoice-row--overdue:hover { background: rgba(231, 76, 60, 0.12) !important; }
.invoice-row--overdue td:first-child { border-left: 3px solid #e74c3c; }

/* ============ Cashbox cards ============ */
.cashbox-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--cb-color, #3498db);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(20,20,28,0.04);
    transition: transform .15s, box-shadow .15s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cashbox-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,20,28,0.1); }
.cashbox-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.cashbox-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cb-color, #3498db) 15%, #fff);
    color: var(--cb-color, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cashbox-card__title { flex: 1; min-width: 0; }
.cashbox-card__name { font-weight: 600; color: #14141c; }
.cashbox-card__body { display: flex; flex-direction: column; gap: 4px; }
.cashbox-card__balance {
    font-size: 22px;
    font-weight: 800;
    color: var(--cb-color, #3498db);
    letter-spacing: -0.5px;
}
.cashbox-card__actions { display: flex; gap: 4px; flex-shrink: 0; }
.cashbox-card__actions .btn { padding: 4px 8px; }

/* ============ Projects list table — row polish + health pill + status dropdown ============ */
.project-row__name { font-size: 14.5px; color: #14141c; }
.project-row__name:hover { color: var(--brand-end); }
.project-row__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 11.5px;
}
.project-row__meta i { margin-right: 2px; }
.project-row__actions { display: inline-flex; gap: 4px; }
.project-row__actions .btn { padding: 5px 9px; }

.project-load { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.project-load .badge { font-size: 11px; padding: 4px 7px; }

/* Sağlık pill'i — skor + renkli nokta */
.health-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 12.5px;
    background: rgba(20,20,28,0.05);
    color: #14141c;
    min-width: 56px;
    justify-content: center;
}
.health-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #95a5a6; flex-shrink: 0; }
.health-pill--good { background: rgba(39,174,96,0.12);  color: #1b8a54; }
.health-pill--good .health-pill__dot { background: #27ae60; }
.health-pill--warn { background: rgba(243,156,18,0.14); color: #a85b00; }
.health-pill--warn .health-pill__dot { background: #f39c12; }
.health-pill--bad  { background: rgba(231,76,60,0.14);  color: #c0392b; }
.health-pill--bad  .health-pill__dot { background: #e74c3c; animation: healthPulse 1.4s ease-in-out infinite; }
@keyframes healthPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.75; }
}

/* Status badge olarak dropdown trigger */
/* Dropdown içeren satırlar .table-responsive içinde: dropdown açıkken overflow'u
   geçici olarak visible yap ki menü clip edilip yatay/dikey scroll tetiklemesin. */
.table-responsive:has(.dropdown.show),
.table-responsive:has(.dropdown-menu.show) { overflow: visible !important; }

/* Proposals tablosu — satır altı client/project linkleri */
.proposal-meta { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.proposal-meta__link {
    color: #6a6a70;
    text-decoration: none;
    transition: color .15s ease;
}
.proposal-meta__link:hover { color: var(--brand-end); text-decoration: underline; }
.proposal-meta__sep { color: #c9c6bd; }

/* Client detail — tab navigasyonu (warm theme ile uyumlu) */
.client-tabs {
    border-bottom: 1px solid var(--border-color);
    gap: 2px;
    flex-wrap: wrap;
}
.client-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #6a6a70;
    font-weight: 500;
    padding: 10px 16px;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.client-tabs .nav-link:hover {
    color: var(--brand-end);
    background: rgba(139, 69, 255, 0.05);
}
.client-tabs .nav-link.active {
    color: #14141c;
    background: #fff;
    border-color: var(--border-color);
    border-bottom-color: #fff;
    margin-bottom: -1px;
    font-weight: 600;
}
.client-tabs .nav-link .tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 10px;
    background: #eeece6;
    color: #6a6a70;
    text-align: center;
}
.client-tabs .nav-link.active .tab-count {
    background: var(--brand-gradient);
    color: #fff;
}
.client-tab-content {
    padding-top: 4px;
}

.project-status-btn,
.proposal-status-btn {
    border: none;
    cursor: pointer;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform .15s, filter .15s;
}
.project-status-btn:hover,
.proposal-status-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.project-status-btn.dropdown-toggle::after,
.proposal-status-btn.dropdown-toggle::after { margin-left: 6px; opacity: 0.75; }
.project-status-dropdown .dropdown-menu,
.proposal-status-dropdown .dropdown-menu { min-width: 160px; }
.project-status-dropdown .dropdown-item.active,
.proposal-status-dropdown .dropdown-item.active { background: rgba(139,69,255,0.12); color: #6b3fd1; }
.project-status-dropdown .dropdown-item .badge,
.proposal-status-dropdown .dropdown-item .badge { font-size: 8px; padding: 1px 6px; vertical-align: middle; }

/* Dashboard list-group variant for load (scrollable kart) */
.dashboard-card__scroll--sm { max-height: 380px; }

/* ============ Dashboard: project health cards ============ */
.health-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-left: 4px solid #95a5a6;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: #14141c;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    height: 100%;
}
.health-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20,20,28,0.08); }
.health-card--good { border-left-color: #27ae60; }
.health-card--warn { border-left-color: #f39c12; }
.health-card--bad  { border-left-color: #e74c3c; background: rgba(231,76,60,0.03); }
.health-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.health-card__title { flex: 1; min-width: 0; }
.health-card__title strong { display: block; font-size: 14px; margin-bottom: 2px; }
.health-card__score .badge { font-size: 13px; padding: 4px 9px; }
.health-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #555;
}
.health-card__meta i { margin-right: 2px; }
.health-card__flags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.health-flag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(20,20,28,0.05);
    border-radius: 10px;
    font-size: 11px;
    color: #555;
}
.health-card--bad .health-flag { background: rgba(231,76,60,0.1); color: #c0392b; }

/* ============ Dashboard: response lag card ============ */
.response-lag__big {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand-end);
    letter-spacing: -1px;
}

/* ============ Dashboard: client load list ============ */
.client-load-row { padding: 10px 0; border-bottom: 1px solid #f0ede6; }
.client-load-row:last-child { border-bottom: none; }
.client-load-row a { color: #14141c; display: block; }
.client-load-row a:hover { color: var(--brand-end); }
.client-load-row__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.client-load-row__head strong { font-size: 13px; }
.client-load-row__bar {
    width: 100%;
    height: 6px;
    background: rgba(20,20,28,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}
.client-load-row__fill {
    height: 100%;
    background: linear-gradient(90deg, #ef6b34, #8b45ff);
    border-radius: 3px;
    transition: width .3s ease;
}

/* ============ Contact role pills ============ */
.contact-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--cr-color, #6b3fd1) 14%, #fff);
    color: var(--cr-color, #6b3fd1);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.contact-role-pill--sm { font-size: 10.5px; padding: 1px 7px; margin-top: 3px; }
.contact-role-pill i { font-size: 11px; }

/* ============ Client detail: contact cards ============ */
#contactsList { max-height: 480px; overflow-y: auto; }
.contact-card {
    padding: 12px 14px;
    border-bottom: 1px solid #f0ede6;
    transition: background .15s;
}
.contact-card:last-child { border-bottom: none; }
.contact-card:hover { background: #fbfaf5; }
.contact-card--inactive { opacity: 0.55; }
.contact-card__head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.contact-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.contact-card__title { flex: 1; min-width: 0; }
.contact-card__name { font-weight: 600; font-size: 13.5px; }
.contact-card__subtitle { margin-bottom: 2px; }
.contact-card__actions { display: flex; gap: 3px; flex-shrink: 0; }
.contact-card__actions .btn { padding: 3px 7px; font-size: 12px; }
.contact-card__body { margin-top: 8px; padding-left: 46px; }
.contact-card__line {
    font-size: 12.5px;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.contact-card__line a { color: #14141c; text-decoration: none; }
.contact-card__line a:hover { color: var(--brand-end); }
.contact-card__note {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fbfaf5;
    border-left: 2px solid var(--brand-end);
    border-radius: 0 6px 6px 0;
}

/* Kasa hareketleri — satırda kasa chip'i */
.movement-cashbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--cb-color, #3498db) 12%, #fff);
    color: var(--cb-color, #3498db);
    font-size: 12.5px;
    font-weight: 500;
}
.movement-cashbox i { font-size: 13px; }

/* FX input satırı (transfer/payment modal'larında) */
.fx-row { background: rgba(139,69,255,0.05); border-radius: 8px; padding: 10px; }

/* ============ Invoice payments list (Edit page) ============ */
.payments-list {
    max-height: 360px;
    overflow-y: auto;
}
.payment-row {
    border-bottom: 1px solid #f0ede6;
}
.payment-row:last-child { border-bottom: none; }
.payment-row__main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}
.payment-row__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.payment-row__body { flex: 1; min-width: 0; }
.payment-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.payment-row__head strong { font-size: 15px; color: #1b8a54; }
.payment-row__meta { margin-top: 2px; }

/* Attachment toggle button (paperclip) */
.payment-row__att-btn {
    color: #7a7a82;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: background .14s ease, color .14s ease;
}
.payment-row__att-btn:hover { background: #f6f5f1; color: var(--brand-end); }
.payment-row__att-btn.has-files { color: var(--brand-end); font-weight: 600; }
.payment-row__att-btn.is-open { background: rgba(139,69,255,0.1); color: var(--brand-end); }
.payment-row__att-btn span { font-size: 0.8rem; }

/* Expandable attachment box below a payment row */
.payment-row__attachments {
    background: #faf9f5;
    border-top: 1px dashed #e5e3de;
    padding: 10px 14px 12px 62px;
}
.payment-row__attachments .attachments-wrap { max-width: none; }

/* Modal: dekont / evrak picker */
.payment-file-drop {
    display: block;
    border: 2px dashed #d6d3cc;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    background: #faf9f5;
    transition: border-color .15s ease, background .15s ease;
    margin: 0;
}
.payment-file-drop:hover {
    border-color: var(--brand-end);
    background: rgba(139,69,255,0.04);
}
.payment-file-drop__empty i { font-size: 1.6rem; color: #8a8a92; display: block; margin-bottom: 4px; }
.payment-file-drop__empty span { font-size: 0.9rem; color: #14141c; }
.payment-file-drop__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.payment-file-drop__list:empty { margin-top: 0; }

.payment-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 4px 4px 10px;
    font-size: 0.8rem;
    max-width: 100%;
}
.payment-file-chip__name {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payment-file-chip__size { color: #8a8a92; font-size: 0.72rem; }
.payment-file-chip__x {
    border: 0;
    background: transparent;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8a8a92;
    cursor: pointer;
    padding: 0;
}
.payment-file-chip__x:hover { background: #fee; color: #dc2626; }

/* Stat card — tıklanabilir varyasyonu */
a.stat-card { color: inherit; }
a.stat-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(231,76,60,0.15); transition: all .2s; }

/* ============ Quick-add in topbar (overrides fixed FAB) ============ */
.qa-fab--topbar {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: auto;
    display: inline-block;
}
.qa-fab--topbar .qa-fab__btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: transparent;
    color: #555;
    font-size: 18px;
    border: 1px solid transparent;
    box-shadow: none;
}
.qa-fab--topbar .qa-fab__btn:hover {
    background: #f3f1ec;
    border-color: #ded9ca;
    color: #14141c;
    transform: none;
}
.qa-fab--topbar.is-open .qa-fab__btn {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #6b3fd1 0%, #8b45ff 100%);
    color: #fff;
    border-color: transparent;
}
.qa-fab--topbar .qa-fab__menu {
    top: calc(100% + 10px);
    bottom: auto;
    right: 0;
    transform-origin: top right;
    transform: translateY(-6px) scale(.96);
    box-shadow: 0 12px 40px rgba(20,20,28,0.15);
    z-index: 1200;
}
.qa-fab--topbar.is-open .qa-fab__menu {
    transform: translateY(0) scale(1);
}
@media (max-width: 720px) {
    .qa-fab--topbar .qa-fab__menu { right: -40px; }
}

/* ============================================
   Pulse — anlık şimdi sayfası
   ============================================ */
.pulse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.pulse-head__main {
    display: flex;
    align-items: center;
    gap: 18px;
}
.pulse-head__clock {
    font-size: 2.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 110px;
    line-height: 1;
}
.pulse-head__greet {
    font-size: 1.05rem;
    font-weight: 600;
    color: #14141c;
}
.pulse-head__sub {
    font-size: 0.85rem;
    color: #8a8a92;
    margin-top: 2px;
}

.pulse-refresh i.pulse-spin { animation: pulse-spin 1s linear infinite; }
@keyframes pulse-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* KPI strip */
.pulse-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 992px) { .pulse-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pulse-kpi-strip { grid-template-columns: 1fr; } }

.pulse-kpi {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pulse-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20,20,28,0.05);
    border-color: rgba(139, 69, 255, 0.25);
}
.pulse-kpi__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.pulse-kpi__value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: #14141c;
    font-variant-numeric: tabular-nums;
}
.pulse-kpi__label {
    font-size: 0.78rem;
    color: #8a8a92;
    margin-top: 3px;
}

.pulse-kpi--active .pulse-kpi__icon { background: rgba(34, 197, 94, 0.12);   color: #15803d; }
.pulse-kpi--progress .pulse-kpi__icon { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.pulse-kpi--due .pulse-kpi__icon { background: rgba(234, 179, 8, 0.14);       color: #a16207; }
.pulse-kpi--meet .pulse-kpi__icon { background: rgba(139, 69, 255, 0.12);     color: #6b3fd1; }
.pulse-kpi--done .pulse-kpi__icon { background: rgba(239, 107, 52, 0.12);     color: #ef6b34; }

/* Aktif kullanıcı şeridi */
.pulse-active-bar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.pulse-active-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #14141c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}
.pulse-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse-live 2s ease-out infinite;
}
@keyframes pulse-live {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pulse-active-bar__users {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
}
.pulse-active-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    background: #f6f5f1;
    border-radius: 30px;
}
.pulse-active-user__info { line-height: 1.2; }
.pulse-active-user__name { font-size: 0.85rem; font-weight: 600; color: #14141c; }
.pulse-active-user__meta { font-size: 0.72rem; color: #8a8a92; }

/* Avatarlar */
.pulse-avatar {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: #e5e3de;
    line-height: 1;
}
.pulse-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pulse-avatar--initial {
    display: inline-grid;
    place-items: center;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
}
.pulse-avatar--xs  { width: 24px; height: 24px; font-size: 0.72rem; }
.pulse-avatar--sm  { width: 30px; height: 30px; font-size: 0.8rem; }
.pulse-avatar--md  { width: 36px; height: 36px; font-size: 0.9rem; }

/* Pulse kartları */
.pulse-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}
.pulse-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}
.pulse-card .card-header h5 { font-size: 0.98rem; font-weight: 600; }
.pulse-card .card-body { padding: 8px 4px 8px 4px; }
.pulse-card__scroll { max-height: 520px; overflow-y: auto; padding: 8px 14px; }
.pulse-card__scroll--sm { max-height: 320px; }

/* Soft renk badge'leri — Pulse başlıklarındaki sayılar için */
.badge.bg-primary-soft   { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.badge.bg-secondary-soft { background: rgba(100, 116, 139, 0.15); color: #475569; }
.badge.bg-success-soft   { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.badge.bg-warning-soft   { background: rgba(234, 179, 8, 0.18); color: #a16207; }
.badge.bg-info-soft      { background: rgba(139, 69, 255, 0.14); color: #6b3fd1; }

/* Pulse listeleri */
.pulse-list { display: flex; flex-direction: column; gap: 2px; }
.pulse-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none !important;
    transition: background .14s ease;
}
.pulse-list__item:hover {
    background: linear-gradient(90deg, rgba(239,107,52,0.05), rgba(139,69,255,0.05));
    box-shadow: inset 3px 0 0 var(--brand-start);
}
.pulse-list__body { flex: 1; min-width: 0; }
.pulse-list__title {
    font-size: 0.92rem;
    font-weight: 500;
    color: #14141c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pulse-list__sub {
    font-size: 0.78rem;
    color: #8a8a92;
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.pulse-list__time {
    font-size: 0.74rem;
    color: #8a8a92;
    flex: 0 0 auto;
    white-space: nowrap;
}

.pulse-list__item--compact { padding: 8px 10px; gap: 10px; }
.pulse-list__item--compact .pulse-list__title { font-size: 0.86rem; }
.pulse-list__item--compact .pulse-list__sub { font-size: 0.74rem; margin-top: 1px; }

.pulse-list__item--done .pulse-list__title { color: #6a6a70; text-decoration: line-through; }

.pulse-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.5;
}
.pulse-tag--progress { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }

/* Toplantı satırları */
.pulse-meetings { display: flex; flex-direction: column; gap: 2px; }
.pulse-meeting {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none !important;
    transition: background .14s ease;
}
.pulse-meeting:hover {
    background: rgba(139, 69, 255, 0.05);
    box-shadow: inset 3px 0 0 var(--brand-end);
}
.pulse-meeting__time {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-end);
    width: 44px;
    flex: 0 0 auto;
}
.pulse-meeting__title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #14141c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pulse-meeting__sub { font-size: 0.74rem; color: #8a8a92; margin-top: 1px; }
.pulse-meeting--past .pulse-meeting__time,
.pulse-meeting--past .pulse-meeting__title { opacity: 0.55; }

.pulse-group-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a8a92;
    padding: 4px 12px;
    margin-bottom: 4px;
}

/* Activity feed */
.pulse-feed { list-style: none; margin: 0; padding: 0; }
.pulse-feed__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .14s ease;
}
.pulse-feed__item:hover { background: #f6f5f1; }
.pulse-feed__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(139, 69, 255, 0.1);
    color: var(--brand-end);
    font-size: 0.85rem;
    flex: 0 0 auto;
}
.pulse-feed__body { flex: 1; min-width: 0; }
.pulse-feed__text { font-size: 0.86rem; color: #14141c; }
.pulse-feed__text strong { color: var(--brand-end); }
.pulse-feed__meta { font-size: 0.74rem; color: #8a8a92; margin-top: 2px; }
.pulse-feed__time {
    font-size: 0.74rem;
    color: #8a8a92;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Boş durumlar */
.empty-state--sm {
    padding: 24px 12px;
    text-align: center;
}
.empty-state--sm i { font-size: 1.5rem; }

/* ============================================
   Yardım Merkezi — hero, kategori grid, makale, QA
   ============================================ */
.help-hero {
    background: linear-gradient(135deg, rgba(239,107,52,0.06), rgba(139,69,255,0.06));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 28px;
    margin-bottom: 28px;
    position: relative;
}
.help-hero__inner { max-width: 720px; margin: 0 auto; }
.help-hero__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.help-hero__search {
    position: relative;
}
.help-hero__search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a92;
    font-size: 1.1rem;
    z-index: 2;
}
.help-hero__search .form-control {
    padding-left: 44px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: 1rem;
}
.help-hero__hint {
    text-align: center;
    margin-top: 12px;
}
.help-hero__hint kbd {
    background: #fff;
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    color: #14141c;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.help-hero__results {
    margin-top: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.help-hero__results:empty { display: none; }
.help-hero__result-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f1ec;
    transition: background .12s;
}
.help-hero__result-item:last-child { border-bottom: none; }
.help-hero__result-item:hover { background: #fbfaf5; }
.help-hero__result-title { font-weight: 600; color: #14141c; }
.help-hero__result-sub { margin-top: 2px; }

/* Kategori grid */
.help-category-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.help-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(20,20,28,0.06);
    border-color: rgba(139,69,255,0.2);
}
.help-category-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.help-category-card__head i {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(139,69,255,0.1);
    color: var(--brand-end);
    font-size: 1.4rem;
    flex: 0 0 auto;
}
.help-category-card__desc {
    color: #6a6a70;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.help-category-card__list { list-style: none; padding: 0; margin: 0; }
.help-category-card__list li { margin: 4px 0; }
.help-category-card__list a {
    color: #14141c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    transition: color .12s;
}
.help-category-card__list a i { color: #8a8a92; font-size: 0.9rem; }
.help-category-card__list a:hover { color: var(--brand-end); }
.help-category-card__list a:hover i { color: var(--brand-end); }

/* Makale sayfası — 2 kolon */
.help-article-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) {
    .help-article-wrap { grid-template-columns: 1fr; }
}

/* Sol nav */
.help-sidebar-nav {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.help-sidebar-nav__head { padding: 4px 6px 10px; border-bottom: 1px solid #f3f1ec; margin-bottom: 8px; }
.help-sidebar-nav__back {
    font-size: 0.82rem;
    color: #6a6a70;
    text-decoration: none;
}
.help-sidebar-nav__back:hover { color: var(--brand-end); }
.help-sidebar-nav__group { margin-bottom: 6px; }
.help-sidebar-nav__cat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #14141c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.help-sidebar-nav__cat i { color: var(--brand-end); }
.help-sidebar-nav__group ul { list-style: none; padding: 0; margin: 0 0 0 6px; }
.help-sidebar-nav__group li { margin: 2px 0; }
.help-sidebar-nav__group li a {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    color: #6a6a70;
    text-decoration: none;
    font-size: 0.86rem;
    transition: background .12s, color .12s;
    border-left: 2px solid transparent;
}
.help-sidebar-nav__group li a:hover { background: #fbfaf5; color: #14141c; }
.help-sidebar-nav__group li.is-active a {
    background: rgba(139,69,255,0.08);
    color: var(--brand-end);
    border-left-color: var(--brand-end);
    font-weight: 600;
}

/* Makale gövdesi */
.help-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 40px;
    min-height: 400px;
}
.help-article__breadcrumb {
    display: flex;
    gap: 6px;
    font-size: 0.82rem;
    color: #8a8a92;
    margin-bottom: 14px;
}
.help-article__breadcrumb a { color: #8a8a92; text-decoration: none; }
.help-article__breadcrumb a:hover { color: var(--brand-end); }
.help-article__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #14141c;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.help-article__title i { color: var(--brand-end); }
.help-article__summary {
    color: #6a6a70;
    font-size: 1rem;
    margin: 0 0 14px;
    padding: 12px 16px;
    background: #fbfaf5;
    border-left: 3px solid var(--brand-start);
    border-radius: 4px;
}
.help-article__meta {
    font-size: 0.8rem;
    color: #8a8a92;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f1ec;
}
.help-article__meta a { color: var(--brand-end); text-decoration: none; }
.help-article__meta a:hover { text-decoration: underline; }

/* Markdown render stili */
.help-article__body {
    color: #14141c;
    font-size: 0.96rem;
    line-height: 1.7;
}
.help-article__body h1,
.help-article__body h2,
.help-article__body h3,
.help-article__body h4 {
    color: #14141c;
    margin: 26px 0 10px;
    font-weight: 700;
}
.help-article__body h1 { font-size: 1.5rem; }
.help-article__body h2 {
    font-size: 1.25rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f1ec;
}
.help-article__body h3 { font-size: 1.08rem; color: var(--brand-end); }
.help-article__body h4 { font-size: 1rem; }
.help-article__body p { margin: 10px 0; }
.help-article__body ul,
.help-article__body ol { padding-left: 24px; margin: 10px 0; }
.help-article__body li { margin: 4px 0; }
.help-article__body code {
    background: #f3f1ec;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #c0392b;
}
.help-article__body pre {
    background: #14141c;
    color: #f6f5f1;
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
}
.help-article__body pre code { background: transparent; color: inherit; padding: 0; }
.help-article__body blockquote {
    margin: 14px 0;
    padding: 10px 16px;
    background: rgba(239,107,52,0.05);
    border-left: 3px solid var(--brand-start);
    color: #6a6a70;
    border-radius: 4px;
}
.help-article__body blockquote p { margin: 4px 0; }
.help-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.9rem;
}
.help-article__body th,
.help-article__body td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.help-article__body th { background: #fbfaf5; font-weight: 600; }
.help-article__body a { color: var(--brand-end); text-decoration: none; }
.help-article__body a:hover { text-decoration: underline; }
.help-article__body kbd {
    background: #fff;
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.82em;
}
.help-article__body hr { border: none; border-top: 1px solid #f3f1ec; margin: 20px 0; }

/* QA bölümü */
.help-qa {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px dashed var(--border-color);
}
.help-qa__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #14141c;
    display: flex;
    align-items: center;
    gap: 8px;
}
.help-qa__title i { color: var(--brand-end); }
.help-qa .accordion-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    margin-bottom: 8px;
    overflow: hidden;
}
.help-qa .accordion-button {
    background: #fff;
    color: #14141c;
    font-weight: 600;
    padding: 12px 16px;
}
.help-qa .accordion-button:not(.collapsed) {
    background: rgba(139,69,255,0.05);
    color: var(--brand-end);
    box-shadow: none;
}
.help-qa .accordion-button:focus { box-shadow: none; }
.help-qa .accordion-body {
    color: #6a6a70;
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 12px 16px;
    background: #fbfaf5;
}

/* FAQ sayfası */
.faq-group .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-group .accordion-button {
    font-weight: 600;
    padding: 12px 16px;
}
.faq-group .accordion-button:not(.collapsed) {
    background: rgba(139,69,255,0.05);
    color: var(--brand-end);
    box-shadow: none;
}
.faq-group .accordion-button:focus { box-shadow: none; }

