.tk-overlay { position: fixed; inset: 0; z-index: 2147482000; display: none; }
.tk-overlay.tk-open { display: block; }

.tk-backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,160,120,0.22), rgba(0,0,0,0.94) 70%);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.tk-panel {
    position: absolute; left: 0; right: 0; bottom: 0; top: 4vh;
    margin: 0 auto; width: 100%; max-width: 560px;
    display: flex; flex-direction: column;
    background: linear-gradient(170deg, rgba(8,18,16,0.97), rgba(4,6,8,0.99));
    border: 1px solid rgba(60,230,170,0.25); border-bottom: none;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 60px rgba(0,255,170,0.12);
    font-family: Vazirmatn, Tahoma, sans-serif; color: #eef6f3; direction: rtl;
    animation: tk-rise 0.35s cubic-bezier(.2,.8,.2,1);
}

@keyframes tk-rise { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.tk-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid rgba(60,230,170,0.12);
}
.tk-head-title { flex: 1; font-size: 15px; font-weight: 800; letter-spacing: 1px; color: #7dffd0; text-align: center; }
.tk-icon {
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.06); color: #d7fff0; font-size: 16px; font-family: inherit;
}

.tk-body { padding: 16px 16px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

.tk-search { display: flex; gap: 8px; }
.tk-input {
    flex: 1; box-sizing: border-box; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(60,230,170,0.2); border-radius: 12px;
    padding: 11px 13px; color: #fff; font-size: 13px; font-family: inherit; outline: none;
    direction: ltr; text-align: left;
}
.tk-input:focus { border-color: rgba(60,230,170,0.6); box-shadow: 0 0 0 3px rgba(60,230,170,0.12); }
.tk-btn-small {
    border: none; border-radius: 12px; padding: 0 16px; cursor: pointer;
    background: linear-gradient(135deg, #00a878, #006b4f); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700;
}

.tk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tk-stat {
    border-radius: 14px; padding: 12px 8px; text-align: center;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.tk-stat-num { font-size: 22px; font-weight: 800; }
.tk-stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.tk-stat-pending .tk-stat-num { color: #ffcf6b; }
.tk-stat-review .tk-stat-num { color: #7ec8ff; }
.tk-stat-closed .tk-stat-num { color: #7dffb0; }

.tk-card {
    cursor: pointer; border-radius: 16px; padding: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(60,230,170,0.16);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tk-card:hover { transform: translateY(-2px); border-color: rgba(60,230,170,0.5); box-shadow: 0 8px 24px rgba(0,255,170,0.1); }
.tk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-card-title { font-size: 14px; font-weight: 700; margin: 8px 0 6px; color: #f2fffb; }
.tk-card-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: rgba(255,255,255,0.5); }
.tk-card-foot { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.tk-num {
    font-family: 'Courier New', monospace; font-size: 13px; font-weight: 800; letter-spacing: 1px;
    color: #7dffd0; direction: ltr; text-align: left;
}
.tk-num-big { font-size: 20px; text-shadow: 0 0 12px rgba(60,230,170,0.5); }

.tk-chip {
    font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; white-space: nowrap;
    border: 1px solid transparent;
}
.tk-chip-pending { background: rgba(255,207,107,0.12); color: #ffcf6b; border-color: rgba(255,207,107,0.4); }
.tk-chip-review { background: rgba(126,200,255,0.12); color: #7ec8ff; border-color: rgba(126,200,255,0.4); }
.tk-chip-closed { background: rgba(125,255,176,0.12); color: #7dffb0; border-color: rgba(125,255,176,0.4); }

.tk-badge {
    font-size: 11px; border-radius: 8px; padding: 3px 9px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
}
.tk-badge-reply { background: rgba(60,230,170,0.15); color: #7dffd0; }

.tk-skeleton {
    height: 92px; border-radius: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    background-size: 200% 100%; animation: tk-shimmer 1.4s linear infinite;
}
@keyframes tk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.tk-empty { text-align: center; padding: 40px 10px; }
.tk-empty-icon { font-size: 40px; opacity: 0.7; }
.tk-empty-text { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 10px; }

.tk-error {
    font-size: 13px; color: #ffb3ad; text-align: center; padding: 12px;
    background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.3); border-radius: 12px;
}
.tk-note { font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,0.55); padding: 4px 2px; }
.tk-foot { font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 8px; }

.tk-hero { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; }

.tk-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 12px 6px; position: relative; }
.tk-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.tk-step-dot {
    width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.18); z-index: 1;
}
.tk-step-label { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; }
.tk-step-on .tk-step-dot { background: #3ce6aa; border-color: #3ce6aa; box-shadow: 0 0 10px rgba(60,230,170,0.6); }
.tk-step-on .tk-step-label { color: #bff7e0; }
.tk-step-now .tk-step-dot { animation: tk-pulse 1.6s ease-in-out infinite; }
.tk-step-now .tk-step-label { color: #7dffd0; font-weight: 700; }
@keyframes tk-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(60,230,170,0.5); } 50% { box-shadow: 0 0 0 7px rgba(60,230,170,0); } }

.tk-sec { font-size: 12.5px; font-weight: 800; color: #7dffd0; margin-top: 10px; letter-spacing: 0.5px; }

.tk-info { display: flex; flex-direction: column; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 4px 12px; }
.tk-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 12.5px; }
.tk-row:last-child { border-bottom: none; }
.tk-row-label { color: rgba(255,255,255,0.5); }
.tk-row-value { color: #fff; text-align: left; }

.tk-bubble { max-width: 86%; border-radius: 16px; padding: 10px 12px; font-size: 13px; line-height: 1.8; }
.tk-bubble-team {
    align-self: flex-start; background: linear-gradient(135deg, rgba(0,168,120,0.22), rgba(0,107,79,0.16));
    border: 1px solid rgba(60,230,170,0.35); border-bottom-right-radius: 4px;
}
.tk-bubble-user {
    align-self: flex-end; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-bottom-left-radius: 4px;
}
.tk-bubble-who { font-size: 10.5px; font-weight: 800; color: #7dffd0; margin-bottom: 4px; }
.tk-bubble-user .tk-bubble-who { color: rgba(255,255,255,0.6); }
.tk-bubble-text { white-space: pre-wrap; word-break: break-word; color: #f0fff9; }
.tk-bubble-time { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 6px; text-align: left; direction: ltr; }

.tk-file {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04); border-radius: 10px; padding: 9px 11px; font-size: 12px;
}
.tk-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.tk-file-time { color: rgba(255,255,255,0.45); font-size: 11px; white-space: nowrap; }

